Mon Feb 15 18:20:56 2021 UTC ()
bc-gh: Update to 3.2.7
Note that "DC_ENV_ARGS" will lead to dc exiting; this was new in 3.1.4
and I have reported that upstream.
Upstream changes, less bugfixes (and hence first/second do not make
sense; see the full NEWS.md in the sources if that upsets you):
## 3.2.5
This is a production release that fixes several bugs and adds a couple small
things.
The two most important bugs were bugs that causes `dc` to access memory
out-of-bounds (crash in debug builds). This was found by upgrading to `afl++`
from `afl`. Both were caused by a failure to distinguish between the same two
cases.
Fourth, the pseudo-random number now attempts to seed itself with `/dev/random`
if `/dev/urandom` fails.
## 3.2.0
This is a production release that has one bug fix and a major addition.
The major addition is a way to build a version of `bc`'s math code as a library.
This is done with the `-a` option to `configure.sh`. The API for the library can
be read in `./manuals/bcl.3.md` or `man bcl` once the library is installed with
`make install`.
This library was requested by developers before I even finished version 1.0, but
I could not figure out how to do it until now.
If the library has API breaking changes, the major version of `bc` will be
incremented.
## 3.1.4
This is a production release that fixes one bug, changes two behaviors, and
removes one environment variable.
The behavior that was changed is that `bc` now exits when given `-e`, `-f`,
`--expression` or `--file`. However, if the last one of those is `-f-` (using
`stdin` as the file), `bc` does not exit. If `-f-` exists and is not the last of
the `-e` and `-f` options (and equivalents), `bc` gives a fatal error and exits.
Next, I removed the `BC_EXPR_EXIT` and `DC_EXPR_EXIT` environment variables
since their use is not needed with the behavior change.
Finally, I made it so `bc` does not print the header, though the `-q` and
`--quiet` options were kept for compatibility with GNU `bc`.
(gdt)
diff -r1.9 -r1.10 pkgsrc/math/bc-gh/Makefile
diff -r1.7 -r1.8 pkgsrc/math/bc-gh/distinfo
--- pkgsrc/math/bc-gh/Makefile 2021/02/15 01:07:24 1.9
+++ pkgsrc/math/bc-gh/Makefile 2021/02/15 18:20:56 1.10
| @@ -1,16 +1,16 @@ | | | @@ -1,16 +1,16 @@ |
1 | # $NetBSD: Makefile,v 1.9 2021/02/15 01:07:24 gdt Exp $ | | 1 | # $NetBSD: Makefile,v 1.10 2021/02/15 18:20:56 gdt Exp $ |
2 | | | 2 | |
3 | VERSION= 3.1.2 | | 3 | VERSION= 3.2.7 |
4 | DISTNAME= bc-${VERSION} | | 4 | DISTNAME= bc-${VERSION} |
5 | PKGNAME= bc-gh-${VERSION} | | 5 | PKGNAME= bc-gh-${VERSION} |
6 | CATEGORIES= math | | 6 | CATEGORIES= math |
7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=gavinhoward/} | | 7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=gavinhoward/} |
8 | GITHUB_PROJECT= bc | | 8 | GITHUB_PROJECT= bc |
9 | GITHUB_RELEASE= ${VERSION} | | 9 | GITHUB_RELEASE= ${VERSION} |
10 | EXTRACT_SUFX= .tar.xz | | 10 | EXTRACT_SUFX= .tar.xz |
11 | | | 11 | |
12 | MAINTAINER= yzena.tech@gmail.com | | 12 | MAINTAINER= yzena.tech@gmail.com |
13 | #MAINTAINER+= gdt@NetBSD.org | | 13 | #MAINTAINER+= gdt@NetBSD.org |
14 | HOMEPAGE= https://github.com/gavinhoward/bc | | 14 | HOMEPAGE= https://github.com/gavinhoward/bc |
15 | COMMENT= Implementation of POSIX bc with GNU extensions | | 15 | COMMENT= Implementation of POSIX bc with GNU extensions |
16 | LICENSE= 2-clause-bsd | | 16 | LICENSE= 2-clause-bsd |
--- pkgsrc/math/bc-gh/distinfo 2020/07/10 00:01:29 1.7
+++ pkgsrc/math/bc-gh/distinfo 2021/02/15 18:20:56 1.8
| @@ -1,6 +1,6 @@ | | | @@ -1,6 +1,6 @@ |
1 | $NetBSD: distinfo,v 1.7 2020/07/10 00:01:29 gdt Exp $ | | 1 | $NetBSD: distinfo,v 1.8 2021/02/15 18:20:56 gdt Exp $ |
2 | | | 2 | |
3 | SHA1 (bc-3.1.2.tar.xz) = 30c58747f6a51dd5d6a257dd3f9e0dde6de32e2e | | 3 | SHA1 (bc-3.2.7.tar.xz) = 2736594dce03aab6a22b8ff7063928ae835dafc5 |
4 | RMD160 (bc-3.1.2.tar.xz) = 91498412894c902c1ceb7f2cd495df17c4c68144 | | 4 | RMD160 (bc-3.2.7.tar.xz) = dadbccae82d829bb38c724ec5f6087ab66e0e25f |
5 | SHA512 (bc-3.1.2.tar.xz) = c123a322578e7b2213317db8fd95c5596b45f59f8890ce05d0d25bac983d3038c1bda65c8998b760e15efc0ee3a10241f3ca712442b4f444f691dd6c5065e53d | | 5 | SHA512 (bc-3.2.7.tar.xz) = b516c400625b54b68ed5c1d484d48d80a094495c1d96437129a835dcc5caf2c29d5524d4b67144d11215569bd6ec1ac90113b3fda0d621c8672313119da4f9fa |
6 | Size (bc-3.1.2.tar.xz) = 209820 bytes | | 6 | Size (bc-3.2.7.tar.xz) = 228540 bytes |