head 1.11; access; symbols pkgsrc-2023Q4:1.11.0.18 pkgsrc-2023Q4-base:1.11 pkgsrc-2023Q3:1.11.0.16 pkgsrc-2023Q3-base:1.11 pkgsrc-2023Q2:1.11.0.14 pkgsrc-2023Q2-base:1.11 pkgsrc-2023Q1:1.11.0.12 pkgsrc-2023Q1-base:1.11 pkgsrc-2022Q4:1.11.0.10 pkgsrc-2022Q4-base:1.11 pkgsrc-2022Q3:1.11.0.8 pkgsrc-2022Q3-base:1.11 pkgsrc-2022Q2:1.11.0.6 pkgsrc-2022Q2-base:1.11 pkgsrc-2022Q1:1.11.0.4 pkgsrc-2022Q1-base:1.11 pkgsrc-2021Q4:1.11.0.2 pkgsrc-2021Q4-base:1.11 pkgsrc-2021Q3:1.9.0.6 pkgsrc-2021Q3-base:1.9 pkgsrc-2021Q2:1.9.0.4 pkgsrc-2021Q2-base:1.9 pkgsrc-2021Q1:1.9.0.2 pkgsrc-2021Q1-base:1.9 pkgsrc-2020Q4:1.7.0.4 pkgsrc-2020Q4-base:1.7 pkgsrc-2020Q3:1.7.0.2 pkgsrc-2020Q3-base:1.7 pkgsrc-2020Q2:1.5.0.2 pkgsrc-2020Q2-base:1.5 pkgsrc-2020Q1:1.3.0.2 pkgsrc-2020Q1-base:1.3 pkgsrc-2019Q4:1.3.0.4 pkgsrc-2019Q4-base:1.3 pkgsrc-2019Q3:1.2.0.2 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.1.0.2 pkgsrc-2019Q2-base:1.1; locks; strict; comment @# @; 1.11 date 2021.10.26.10.55.36; author nia; state Exp; branches; next 1.10; commitid vzl6zVlmjiF3hjeD; 1.10 date 2021.10.07.14.27.58; author nia; state Exp; branches; next 1.9; commitid wLkpKfebF6VS3TbD; 1.9 date 2021.02.17.16.51.17; author gdt; state Exp; branches; next 1.8; commitid 1vhobrKxkFbtj5IC; 1.8 date 2021.02.15.18.20.56; author gdt; state Exp; branches; next 1.7; commitid sd7KJjBvKRRZQPHC; 1.7 date 2020.07.10.00.01.29; author gdt; state Exp; branches; next 1.6; commitid GCJFrTegCLRwRsfC; 1.6 date 2020.07.08.13.58.14; author gdt; state Exp; branches; next 1.5; commitid Cf92k0SE2ppzyhfC; 1.5 date 2020.06.19.18.04.05; author gdt; state Exp; branches; next 1.4; commitid 0MfQE7z3H1ILwRcC; 1.4 date 2020.05.16.22.54.21; author gdt; state Exp; branches; next 1.3; commitid WxKtHKOEPufCcw8C; 1.3 date 2019.11.23.17.26.01; author gdt; state Exp; branches; next 1.2; commitid wQSZAczSADiQ10MB; 1.2 date 2019.08.06.11.13.07; author gdt; state Exp; branches; next 1.1; commitid 5dRlSAJatvHysXxB; 1.1 date 2019.06.17.00.35.33; author gdt; state Exp; branches; next ; commitid C4gkDDkdCi9fytrB; desc @@ 1.11 log @math: Replace RMD160 checksums with BLAKE2s checksums All checksums have been double-checked against existing RMD160 and SHA512 hashes @ text @$NetBSD: distinfo,v 1.10 2021/10/07 14:27:58 nia Exp $ BLAKE2s (bc-3.3.0.tar.xz) = 2a83bf29af764eb4863db207f19db5b81ec53a9bf31546bc914404b4cdb43b42 SHA512 (bc-3.3.0.tar.xz) = b8d0b6d6d9c5d4fc62df62d1b9b7e7006a8b430e063fe0d5f646cfaeb4c6fc9c7037b644e853b7ae7d5c5f42f079221e9cdc32564d70c9ddd6bb867ddc7056de Size (bc-3.3.0.tar.xz) = 229580 bytes @ 1.10 log @math: Remove SHA1 hashes for distfiles @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.9 2021/02/17 16:51:17 gdt Exp $ d3 1 a3 1 RMD160 (bc-3.3.0.tar.xz) = 5f1efa9181a6ed91dd00a5db955800e5312b3b6b @ 1.9 log @math/bc-gh: Update to 3.3.0 ## 3.3.0 This is a production release that changes one behavior and fixes documentation bugs. The changed behavior is the treatment of `-e` and `-f` when given through `BC_ENV_ARGS` or `DC_ENV_ARGS`. Now `bc` and `dc` do not exit when those options (or their equivalents) are given through those environment variables. However, `bc` and `dc` still exit when they or their equivalents are given on the command-line. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.8 2021/02/15 18:20:56 gdt Exp $ a2 1 SHA1 (bc-3.3.0.tar.xz) = 86bbc003170814972829ef90c8adf59ec0b0ea50 @ 1.8 log @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`. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.7 2020/07/10 00:01:29 gdt Exp $ d3 4 a6 4 SHA1 (bc-3.2.7.tar.xz) = 2736594dce03aab6a22b8ff7063928ae835dafc5 RMD160 (bc-3.2.7.tar.xz) = dadbccae82d829bb38c724ec5f6087ab66e0e25f SHA512 (bc-3.2.7.tar.xz) = b516c400625b54b68ed5c1d484d48d80a094495c1d96437129a835dcc5caf2c29d5524d4b67144d11215569bd6ec1ac90113b3fda0d621c8672313119da4f9fa Size (bc-3.2.7.tar.xz) = 228540 bytes @ 1.7 log @math/bc-gh: Update to 3.1.2 At my request, upstream added a flag to install all locales, rather than the locales that are installed on the current system. This leads to a consistent PLIST (and more locales). ## 3.1.2 This is a production release that adds a way to install *all* locales. Users do ***NOT*** need to upgrade. For package maintainers wishing to make use of the change, just pass `-l` to `configure.sh`. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.6 2020/07/08 13:58:14 gdt Exp $ d3 4 a6 4 SHA1 (bc-3.1.2.tar.xz) = 30c58747f6a51dd5d6a257dd3f9e0dde6de32e2e RMD160 (bc-3.1.2.tar.xz) = 91498412894c902c1ceb7f2cd495df17c4c68144 SHA512 (bc-3.1.2.tar.xz) = c123a322578e7b2213317db8fd95c5596b45f59f8890ce05d0d25bac983d3038c1bda65c8998b760e15efc0ee3a10241f3ca712442b4f444f691dd6c5065e53d Size (bc-3.1.2.tar.xz) = 209820 bytes @ 1.6 log @math/bc-gh: Update to 3.1.1 Notable upstream changes: ## 3.1.0 The behavior that was adjusted was how code from the `-e` and `-f` arguments (and equivalents) were executed. They used to be executed as one big chunk, but in this release, they are now executed line-by-line. The first bug fix in how output to `stdout` was handled in `SIGINT`. If a `SIGINT` came in, the `stdout` buffer was not correctly flushed. In fact, a clean-up function was not getting called. This release fixes that bug. The second bug is in how `dc` handled input from `stdin`. This affected `bc` as well since it was a mishandling of the `stdin` buffer. The third fixed bug was that `bc` and `dc` could `abort()` (in debug mode) when receiving a `SIGTERM`. This one was a race condition with pushing and popping items onto and out of vectors. The fourth bug fixed was that `bc` could leave extra items on the stack and thus, not properly clean up some memory. (The memory would still get `free()`'ed, but it would not be `free()`'ed when it could have been.) The next two bugs were bugs in `bc`'s parser that caused crashes when executing the resulting code. The last two bugs were crashes in `dc` that resulted from mishandling of strings. ## 3.0.2 This is a production release that adds `utf8` locale symlinks and removes an unused `auto` variable from the `ceil()` function in the [extended math library][16]. ## 3.0.1 The second change is to make the new implementation of `ceil()` in `lib2.bc` much more efficient. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.5 2020/06/19 18:04:05 gdt Exp $ d3 4 a6 4 SHA1 (bc-3.1.1.tar.xz) = 02b380fae3ea3c6f3dcb9036e2cfbb0220442aeb RMD160 (bc-3.1.1.tar.xz) = fc40d42173dd91ebb12ea6c3c8c61995fcd0d653 SHA512 (bc-3.1.1.tar.xz) = 1f770edf619ade8780d0a494934071bfa82d1298043459cab6e3db6a5617e6aad0d7193635c868ef0d0312b808027ad3734cb92b0c8eff826cd5a860eb3fe6d2 Size (bc-3.1.1.tar.xz) = 209328 bytes @ 1.5 log @nbc-gh: Update to 3.0.0 Upstream changes: multiple bug fixes and minor improvements redesign of signal handling (not intended to be user visible) Besides the following, see NEWS in the sources for details. *First, the `2.7.0` release series saw a change in the option parsing. This made me change one error message and add a few others. The error message that was changed removed one format specifier. This means that `printf()` will seqfault on old locale files. Unfortunately, `bc` cannot use any locale files except the global ones that are already installed, so it will use the previous ones while running tests during install. **If `bc` segfaults while running arg tests when updating, it is because the global locale files have not been replaced. Make sure to either prevent the test suite from running on update or remove the old locale files before updating.** Once this is done, `bc` should install without problems.* *Second, **the option to build without signal support has been removed**. See below for the reasons why.* This is a production release with some small bug fixes, a few improvements, three major bug fixes, and a complete redesign of `bc`'s error and signal handling. **Users and package maintainers should update to this version as soon as possible.** @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.4 2020/05/16 22:54:21 gdt Exp $ d3 4 a6 4 SHA1 (bc-3.0.0.tar.xz) = fb38d19ab90641d1c8324ef32ac30431837935ea RMD160 (bc-3.0.0.tar.xz) = 4364ec493901cf45cb6724dbc3bdb7cb84ad0232 SHA512 (bc-3.0.0.tar.xz) = 4961e030274e763aa02541457aa5aab6cd0d61758861b98d2cdac6acc42c3fb55b6adba72749edd3b663225ab844d7ef60809972478992165b071645fe6af65f Size (bc-3.0.0.tar.xz) = 199304 bytes @ 1.4 log @math/bc-gh: Update to 2.7.2 Upstream NEWS highlights: (translations and bugfixes omitted) ## 2.7.2 This is a production release with one major bug fix. The `length()` built-in function can take either a number or an array. If it takes an array, it returns the length of the array. Arrays can be passed by reference. The bug is that the `length()` function would not properly dereference arrays that were references. This is a bug that affects all users. **ALL USERS SHOULD UPDATE `bc`**. ## 2.7.0 There is only one new feature: **`bc` now has a built-in pseudo-random number generator** (PRNG). The PRNG is seeded, making it useful for applications where `/dev/urandom` does not work because output needs to be reproducible. However, it also uses `/dev/urandom` to seed itself by default, so it will start with a good seed by default. On top of that, four functions were added to `bc`'s [extended math library][16] to make using the PRNG easier: * `frand(p)`: Generates a number between `[0,1)` to `p` decimal places. * `ifrand(i, p)`: Generates an integer with bound `i` and adds it to `frand(p)`. * `srand(x)`: Randomizes the sign of `x`. In other words, it flips the sign of `x` with probability `0.5`. * `brand()`: Returns a random boolean value (either `0` or `1`). ## 2.4.0 * The `bc` `&&` and `||` operators were made available to `dc` through the `M` and `m` commands, respectively. * `dc` macros were changed to be tail call-optimized. The last item, tail call optimization, means that if the last thing in a macro is a call to another macro, then the old macro is popped before executing the new macro. This change was made to stop `dc` from consuming more and more memory as macros are executed in a loop. The `q` and `Q` commands still respect the "hidden" macros by way of recording how many macros were removed by tail call optimization. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.3 2019/11/23 17:26:01 gdt Exp $ d3 4 a6 4 SHA1 (bc-2.7.2.tar.xz) = 2332db5d8839202cc2b43e2bebe2654efc093bf1 RMD160 (bc-2.7.2.tar.xz) = f7f6e4ca0f3befc7a064cc1d308857047af7cc15 SHA512 (bc-2.7.2.tar.xz) = c2014b16165bf5f8bdadf42bb60ea967a060753c17e13a7c3569d16d218bb3fb644e6a46950e9e7b3aa5a9f6bee4da9b158694909a0ab1fe390b7bb4dc20b303 Size (bc-2.7.2.tar.xz) = 189020 bytes @ 1.3 log @math/bc-gh: Update to 2.3.1 Upstream changes are basically bug fixes, performance improvmeents, and a few new functions. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.2 2019/08/06 11:13:07 gdt Exp $ d3 4 a6 4 SHA1 (bc-2.3.1.tar.xz) = c76d7e7509663e249cae9674981a91e868c4e8cc RMD160 (bc-2.3.1.tar.xz) = a1418b974933a70281315369cc352be626df8d78 SHA512 (bc-2.3.1.tar.xz) = a704356dfba75d94a3db9ab30ccd4b5cea1ccd8866c20650026148f61e0d799760d04bb6fefec46b3ce93a4a575c81f0668064af498cf7b581edcb82d00eb22e Size (bc-2.3.1.tar.xz) = 161780 bytes @ 1.2 log @math/bc-gh: Update to 2.1.0 Upstream changes: This release is a production release. The following bugs were fixed: A dc bug that caused stack mishandling was fixed. A warning on OpenBSD was fixed. Bugs in ctrl+arrow operations in history were fixed. The ability to paste multiple lines in history was added. A bc bug, mishandling of array arguments to functions, was fixed. A crash caused by freeing the wrong pointer was fixed. A dc bug where strings, in a rare case, were mishandled in parsing was fixed. In addition, the following changes were made: Division was slightly optimized. An option was added to the build to disable printing of prompts. The special case of empty arguments is now handled. This is to prevent errors in scripts that end up passing empty arguments. A harmless bug was fixed. This bug was that, with the pop instructions (mostly) removed (see below), bc would leave extra values on its stack for void functions and in a few other cases. These extra items would not affect anything put on the stack and would not cause any sort of crash or even buggy behavior, but they would cause bc to take more memory than it needed. On top of the above changes, the following optimizations were added: The need for pop instructions in bc was removed. Extra tests on every iteration of the interpreter loop were removed. Updating function and code pointers on every iteration of the interpreter loop was changed to only updating them when necessary. Extra assignments to pointers were removed. Altogether, these changes sped up the interpreter by around 2x. NOTE: This is the last release with new features because this bc is now considered complete. From now on, only bug fixes and new translations will be added to this bc. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.1 2019/06/17 00:35:33 gdt Exp $ d3 4 a6 4 SHA1 (bc-2.1.0.tar.xz) = 4de8fa54182036e8391d9fd9ae2ada4e09664da1 RMD160 (bc-2.1.0.tar.xz) = fe6a4c5fe72eaa7e2a0ed6dfdbdc6d888abd780b SHA512 (bc-2.1.0.tar.xz) = d117c0433b08d7bf4986ff49a39b6cbd1048399e74a3781ba48b27008d18c1cedfaca79c1d0510919b194bc593699ba99a736c377815cb3659cec772b45b1cd1 Size (bc-2.1.0.tar.xz) = 153912 bytes @ 1.1 log @math/bc-gh: Import version 2.0.3 Implementation of POSIX bc with GNU extensions This bc is optimized for use by programmers. It includes several extensions beyond the GNU extensions for that purpose. Prepared in pkgsrc-wip by Gavin Howard. @ text @d1 1 a1 1 $NetBSD$ d3 4 a6 4 SHA1 (bc-2.0.3.tar.xz) = e4f162f7d87b6c09c1fe2ff0598397cdd9c62261 RMD160 (bc-2.0.3.tar.xz) = 889d192320f6a225350c4e5de2e99472d4cf27e5 SHA512 (bc-2.0.3.tar.xz) = 1eabc44a33c08e1cc20c7112843e18544860dc8621cf655c2453858d64b720cada4835ab6142110f296c4d6ad82e77725e603fd11b84b61b073efccc9f6a1c45 Size (bc-2.0.3.tar.xz) = 162360 bytes @