Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jul 2020 07:51:10 +0000 (UTC)
From:      =?UTF-8?Q?Stefan_E=c3=9fer?= <se@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r362987 - in head: contrib/bc usr.bin/gh-bc
Message-ID:  <202007070751.0677pATb051630@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: se
Date: Tue Jul  7 07:51:09 2020
New Revision: 362987
URL: https://svnweb.freebsd.org/changeset/base/362987

Log:
  Update to version 3.1.1
  
  This version fixes a regression with regard to tradtional behavior of the
  non-standard FreeBSD option "-e". In the previous version "-e quit" caused
  bc to exit before any computations had been performed, since all -e option
  parameters were concatenated and parsed as a whole, with quit causing the
  program to exit as soon as it was parsed. This version parses and executes
  commands passed with -e one by one and only exits after all prior commands
  have been executed.
  
  This commit is not a SVN merge, since the vendor import had been performed
  after the import to contrib. Instead the contents of contrib/bc has been
  removed and the new version is copied over unchanged from vendor/bc/dist.

Replaced:
  head/contrib/bc/
     - copied from r362986, vendor/bc/dist/
Modified:
  head/usr.bin/gh-bc/Makefile

Modified: head/usr.bin/gh-bc/Makefile
==============================================================================
--- head/usr.bin/gh-bc/Makefile	Tue Jul  7 07:32:15 2020	(r362986)
+++ head/usr.bin/gh-bc/Makefile	Tue Jul  7 07:51:09 2020	(r362987)
@@ -19,6 +19,7 @@ LINKS=		${BINDIR}/bc ${BINDIR}/dc
 
 CATALOGS=	en_US.UTF-8
 CATALOGS+=	de_DE.UTF-8 de_DE.ISO8859-1
+CATALOGS+=	es_ES.UTF-8 es_ES.ISO8859-1
 CATALOGS+=	fr_FR.UTF-8 fr_FR.ISO8859-1
 CATALOGS+=	ja_JP.UTF-8 ja_JP.eucJP
 CATALOGS+=	nl_NL.UTF-8 nl_NL.ISO8859-1
@@ -37,8 +38,7 @@ CFLAGS+=	-DBC_ENABLE_PROMPT
 CFLAGS+=	-DBC_ENABLE_LONG_OPTIONS
 CFLAGS+=	-DBC_ENABLE_EXTRA_MATH
 CFLAGS+=	-DBC_ENABLE_HISTORY
-CFLAGS+=	-DBC_ENABLE_SIGNALS=0
-CFLAGS+=	-DBC_NUM_KARATSUBA_LEN=64
+CFLAGS+=	-DBC_ENABLE_RAND
 CFLAGS+=	-DDC_ENABLED
 CFLAGS+=	-DNDEBUG
 CFLAGS+=	-DVERSION=${BCVERSION}
@@ -46,8 +46,12 @@ CFLAGS+=	-I${BCDIR}/include
 
 .if ${MK_NLS_CATALOGS} == "no"
 CFLAGS+=	-DBC_ENABLE_NLS=0
+MAN_SRC_BC=	bc/N.1
+MAN_SRC_DC=	dc/N.1
 .else
 CFLAGS+=	-DBC_ENABLE_NLS=1
+MAN_SRC_BC=	bc/A.1
+MAN_SRC_DC=	dc/A.1
 
 # prevent floating point incompatibilities caused by -flto on some architectures
 .if ${MACHINE_ARCH} != mips && ${MACHINE_ARCH} != mips64 && \
@@ -73,6 +77,8 @@ NLSLINKS_de_DE.UTF-8+=	de_AT.UTF-8 de_CH.UTF-8
 NLSLINKS_de_DE.ISO8859-1+= de_AT.ISO8859-1 de_CH.ISO8859-1
 NLSLINKS_de_DE.ISO8859-1+= de_AT.ISO8859-15 de_CH.ISO8859-15 de_DE.ISO8859-15
 
+NLSLINKS_es_ES.ISO8859-1+= es_ES.ISO8859-15
+
 NLSLINKS_fr_FR.UTF-8+=	fr_BE.UTF-8 fr_CA.UTF-8 fr_CH.UTF-8
 NLSLINKS_fr_FR.ISO8859-1+= fr_BE.ISO8859-1 fr_CA.ISO8859-1 fr_CH.ISO8859-1
 NLSLINKS_fr_FR.ISO8859-1+= fr_BE.ISO8859-15 fr_CA.ISO8859-15 fr_CH.ISO8859-15 \
@@ -97,5 +103,11 @@ bc_help.c:	bc_help.txt
 
 dc_help.c:	dc_help.txt
 		cd ${BCDIR} && sh gen/strgen.sh gen/dc_help.txt ${.OBJDIR}/dc_help.c dc_help dc.h
+
+bc.1:
+		${CP} ${BCDIR}/manuals/${MAN_SRC_BC} ${.OBJDIR}/bc.1
+
+dc.1:
+		${CP} ${BCDIR}/manuals/${MAN_SRC_DC} ${.OBJDIR}/dc.1
 
 .include <bsd.prog.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007070751.0677pATb051630>