./math/bc-gh, Implementation of POSIX bc with GNU extensions

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.3.0, Package name: bc-gh-3.3.0, Maintainer: yzena.tech

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.


Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 224.199 KB

Version history: (Expand)


CVS history: (Expand)


   2021-10-26 12:56:13 by Nia Alarie | Files touched by this commit (458)
Log message:
math: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes
   2021-10-07 16:28:36 by Nia Alarie | Files touched by this commit (458)
Log message:
math: Remove SHA1 hashes for distfiles
   2021-02-17 17:51:17 by Greg Troxel | Files touched by this commit (2)
Log message:
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.
   2021-02-15 19:20:56 by Greg Troxel | Files touched by this commit (2)
Log message:
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`.
   2021-02-15 02:07:24 by Greg Troxel | Files touched by this commit (1)
Log message:
math/c-gh: DRop comment about missing NEWS

Upstream has created a plaintext NEWS.md.
   2020-07-10 02:18:33 by Greg Troxel | Files touched by this commit (1)
Log message:
math/bc-gh: Fix PLIST in last commit

(sort, remove dups, commit now what should have been committed before)
   2020-07-10 02:01:29 by Greg Troxel | Files touched by this commit (3)
Log message:
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`.
   2020-07-08 15:58:14 by Greg Troxel | Files touched by this commit (3)
Log message:
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.