Update to verdsion 3.1.3
This version fixes an incompatibility with GNU bc:
The statement:
if (a > b) 1
was rejected, unless followed by "else 0".
Approved by: antoine (implicit)28b78d7673Port details
math/gh-bc 7.1.0
GNU compatible bc/dc calculator
Port info
- Maintainer
- se@FreeBSD.org
- Packages
- latest: 7.1.0
- Upstream
- up to date
- Last update
- to 7.1.0 · 08f30a889b
- Quarterly
- 2026Q4: 7.1.0
- WWW
- https://github.com/gavinhoward/bc
- Links
- cgit · VuXML
Install
- Package
# pkg install gh-bcinstalls 7.1.0 fromlatest; fromquarterly(2026Q4) 7.1.0- Port
# cd /usr/ports/math/gh-bc && make install clean# make -C /usr/ports/math/gh-bc config # change options first
- Size
- 131 KiB download · 290 KiB installed
- Depends on
- devel/libedit 3.1.20260512,1
- License
- BSD2CLAUSE and MIT
- Options
- 1 of 3 on in the package: LIBEDIT
Show the 2 options that are off
INTERNAL READLINE
Packages by version and architecture
latest
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 7.1.0 | 7.1.0 | – |
| FreeBSD 15 | 7.1.0 | 7.1.0 | – |
| FreeBSD 14 | 7.1.0 | 7.1.0 | 7.1.0 |
quarterly (2026Q4)
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 7.1.0 | 7.1.0 | – |
| FreeBSD 14 | 7.1.0 | 7.1.0 | 7.1.0 |
version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.
Unaddressed and VuXML only (0)
No unaddressed CVE and nothing reported by
pkg audit for the packaged version 7.1.0.Fixed (0)
No VuXML entries for this package.
Problem reports (0) · open in Bugzilla, most recently changed first
None.
Commits (84)
Update to version 3.1.1 Add spanisch message catalog in ISO8859-1 encoding. Approved by: antoine (implicit)340d6126ae
Add es_ES.ISO8859-15 message catalog.54b9e106cf
Update to version 3.1.0 This version improves the compatibility of the -e option with the FreeBSD version of bc.689a6a5718
Upgrade to version 3.0.1 This version fixes a warning when building with a strict warnings level and significantly speeds up ceil() library function. Approved by: antoine (implicit)5a10ec43b9
Update to version 3.0.0 This version contains extensive changes to signal handling and input processing (history) and many small enhancements. Approved by: antoine (implicit)844d18a9bb
Upgrade to version 2.7.2 Fix calculation of array length. Approved by: antoine (implicit)40275ca4b4
Upgrade to version 2.7.1 This version contains small changes to the new NLS files and const qualifiers to silence the compiler if extra warnings are enabled. Approved by: antoine (implicit)acf17604b3
Update to version 2.7.0 This version fixes a problem that only affected getopt_long() on Linux (or rather, the GLIBC implementation) by replacing its use by optparse(). In addition, this version features a PRNG that can be used to generate arbitrary length pseudo-random numbers and 5 new translations (for Dutch, Japanese, Polish, Russian, and Simplified Chinese). These translations have been generated and verified with online tools (https://www.deepl.com/translator and https://translate.google.com) and might therefore not be fully correct - a review by native speakers would be appreciated. Approved by: antoine (implicit)02647d3b40
Update to version 2.6.1 This version fixes a bug that only occured when building on FreeBSD without long options support. It did not affect the port or package, since it was always built with long options. Approved by: antoine (implicit)1d77c31a37
Update to version 2.6.0 Approved by: antoine (implicit)0059c9db4b
Final attempt to make the Poruguese locales actually work. Just roll out the loop to create usable catalogue files instead of trying to have a loop do the right thing ... Approved by: antoine (implicit)436b7d1ec7
Due to the way the Portuguese ISO-8859-* files were named, they were not installed on FreeBSD. Therefore provide message catalogues according to out naming scheme to include these files in the build. Approved by: antoine (implicit)ef6c1e5e40
Update to version 2.5.1 This version introduces Portuguese translations (pt_PT and pt_BR). Approved by: antoine (implicit)eaf1b31cc4
Upgrade to version 2.4.0 This versiom includes enhancements to the bundled dc command. Approved by: antoine (implicit)dedf444d6b
Update to version 2.3.1 Approved by: antoine (implicit)252ca216a4
Update to version 2.3.0 Approved by: antoine (implicit)64c3a642b6
Upgrade to version 2.1.0. Approved by: antoine (implicit)1f2f32b075
Upgrade to version 2.0.3. Approved by: antoine (implicit)03d674e30e
Another attempt to fix build breakage that does only affect the package builder and does not occur on my system. Approved by: antoine (implicit)59fa5b8f16
Try to fix a package build error that I cannot reproduce on my system. Even though "poudriere testport" completed without error, I have received a failure message from the build cluster. Since I cannot reproduce the problem, I can only guess that it is caused by a symbolic link in the share/nls directory that connects nls/C to nls/en_US.US-ASCII. I had problems with the nls/C directory disappearing due to that link before (it is deleted as empty when the last catalog file is deleted on package deinstallation, but then missing when a new file is installed into en_US.US-ASCII, which is just a symbolic link to C which does not exist at that time anymore). I think this is a bug in "pkg" and have opened a PR. It is possible that the port will still fail to build in the cluster, but without access to the work directory (or rather the stage directory) of the build host I can only guess what's exactly going on. IMHO there should not be any magic conenction between nls/en_US.US-ASCII and nls/C, since this breaks assumptions made in pkg and in the qa check performed by poudriere. Approved by: antoine (implicit)29b5835528
Update to version 2.0.2. Approved by: antoine (implicit)00d4954694
Fix omission of changes in previous commit. Approved by: antoine (implicit)27102df8b8
Update to version 2.0.0 This version uses an optimized internal representation of the operands which allows to speed up some operations by a significant factor (multiplication of large numbers is now about 40 times as fast). This version has been tested against a number of other bc implementations and has been found to significantly outperform them all (incl. GNU bc). There are no functional changes in this version, it is just much faster ... Approved by: antoine (implicit)5de1f253c1
Remove requirement for a c11 compiler8cee86f025
math/gh-bc: fix build with GCC-based architectures Add USES=compiler:c11 to fix build: ./src/num.c:1305: error: expected ';', ',' or ')' before 'n' Approved by: mentors (implicit approval)d1cdc52507
Work around problem with de-installation of this port, which made "pkg" remove the share/nls/C directory. Approved by: antoine (implicit)a5b4208d25
Upgrade to version 1.2.8.
This package exposes a bug (IMHO) in "pkg" which deletes the directory
pointed to by a symbolic link after removing the files within, but is
not able to recreate that directory when a package is installed.
It may be necessary to manually recreate ${LOCALBASE}/share/nls/C after
removal of this package, e.g. during a port upgrade.
This commit is meant to provide a test case for package maintainers
that hopefully will lead to this issue being fixed in "pkg".
Approved by: antoine (implicit)534fed28f8Update to version 1.2.4. This version adds message catalogs for French and German locales. The messages for fr_CA and fr_CH have not been checked by native speakers and might need some adjustment. Approved by: antoine (implicit)a35fc8b984
Upgrade to version 1.2.3. Approved by: antoine (implicit)9079f683b2
Upgrade to version 1.1.1. Approved by: antoine (implicit)6b6755bb39
Update distinfo after changes to the configure script and documentation have been applied in the repo under the version tag used for the port. Approved by: antoine (implicit)37522c57d7
Fix CONFLICTS_INSTALL pattern to really match the math/gnubc port. I had missed the PKGNAMEPREFIX in the GNU bc port ... Approved by: antoine (implicit)21b37c42b5
New port of a BSD licensed and GNU compatible bc and dc program. These programs have been used in a number of other projects over many years and they are highly portable and heavily tested. Obtained from: Gavin Howard <gavin.d.howard@gmail.com> Approved by: antoine (mentor)abaea7ff90