I don't say it often as it usually makes sense to do a targetted build instead, but this could do with a test in bulk. I'll run one on i386, it will take a few days.

I've tried updating bison past 3.4 before but bailed for some reason, it might have been a problem with some port using it, or it might just have been that 3.4 makes it harder to remove the GNU m4 dependency (there was once an idea to try and get this working with base m4 again).

--
 Sent from a phone, apologies for poor formatting.
On 29 April 2021 02:22:13 Todd C. Miller <[email protected]> wrote:

Another port I'd like to update needs a newer version of bison that
we provide so I've updated to the lastest version.

The only problem I encountered is that makeinfo in base is old and
doesn't understand some of these new-fangled directives.  They
appear to just be cosmetic anyway.

- todd

Index: devel/bison/Makefile
===================================================================
RCS file: /cvs/ports/devel/bison/Makefile,v
retrieving revision 1.62
diff -u -p -u -r1.62 Makefile
--- devel/bison/Makefile        5 Oct 2020 21:50:40 -0000       1.62
+++ devel/bison/Makefile        7 Apr 2021 13:48:56 -0000
@@ -2,8 +2,7 @@

COMMENT=        GNU parser generator

-DISTNAME=      bison-3.3.2
-REVISION=      2
+DISTNAME=      bison-3.7.6
CATEGORIES=     devel
MASTER_SITES=   ${MASTER_SITE_GNU:=bison/}
EXTRACT_SUFX=   .tar.xz
Index: devel/bison/distinfo
===================================================================
RCS file: /cvs/ports/devel/bison/distinfo,v
retrieving revision 1.13
diff -u -p -u -r1.13 distinfo
--- devel/bison/distinfo        14 May 2019 16:28:23 -0000      1.13
+++ devel/bison/distinfo        7 Apr 2021 13:49:03 -0000
@@ -1,2 +1,2 @@
-SHA256 (bison-3.3.2.tar.xz) = A57kW2HZXlAD5+g3b5CAABtAZv81e94nG3+qzlO52AQ=
-SIZE (bison-3.3.2.tar.xz) = 2108612
+SHA256 (bison-3.7.6.tar.xz) = Z9aM4eIhkgUFJWQ/wKeiIpdXZoK+9qXFFEaQP1ru888=
+SIZE (bison-3.7.6.tar.xz) = 2627180
Index: devel/bison/patches/patch-Makefile_in
===================================================================
RCS file: devel/bison/patches/patch-Makefile_in
diff -N devel/bison/patches/patch-Makefile_in
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ devel/bison/patches/patch-Makefile_in       9 Nov 2020 16:41:26 -0000
@@ -0,0 +1,61 @@
+$OpenBSD$
+Base makeinfo doesn't support the --set-customization-variable option.
+
+Index: Makefile.in
+--- Makefile.in.orig
++++ Makefile.in
+@@ -1,4 +1,4 @@
+-# Makefile.in generated by automake 1.16b from Makefile.am.
++# Makefile.in generated by automake 1.16.2 from Makefile.am.
+ # @configure_input@
+
+ # Copyright (C) 1994-2020 Free Software Foundation, Inc.
+@@ -1302,7 +1302,6 @@ am__set_TESTS_bases = \
+   bases='$(TEST_LOGS)'; \
+   bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
+   bases=`echo $$bases`
+-AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
+ RECHECK_LOGS = $(TEST_LOGS)
+ TEST_SUITE_LOG = test-suite.log
+ TEST_EXTENSIONS = @EXEEXT@ .test
+@@ -1401,8 +1400,6 @@ am__relativize = \
+ DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.lz $(distdir).tar.xz
+ GZIP_ENV = --best
+ DIST_TARGETS = dist-lzip dist-xz dist-gzip
+-# Exists only to be overridden by the user if desired.
+-AM_DISTCHECK_DVI_TARGET = dvi
+ distuninstallcheck_listfiles = find . -type f -print
+ am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
+   | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
+@@ -3053,12 +3050,7 @@ dist_xslt_DATA = \
+   data/xslt/xml2text.xsl                        \
+   data/xslt/xml2xhtml.xsl
+
+-AM_MAKEINFOFLAGS = \
+-  --no-split                                                    \
+-  --set-customization-variable=SECTION_NAME_IN_TITLE=true       \
+-  --set-customization-variable=AVOID_MENU_REDUNDANCY=true       \
+-  --set-customization-variable=ICONS=true
+-
++AM_MAKEINFOFLAGS = --no-split
+ info_TEXINFOS = doc/bison.texi
+ doc_bison_TEXINFOS = \
+   $(CROSS_OPTIONS_TEXI)                         \
+@@ -9262,7 +9254,7 @@ $(TEST_SUITE_LOG): $(TEST_LOGS)
+         test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG);             \
+       fi;                                                             \
+       echo "$${col}$$br$${std}";                                    \
+-      echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; 
    \
++      echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
+       echo "$${col}$$br$${std}";                                    \
+       create_testsuite_report --maybe-color;                          \
+       echo "$$col$$br$$std";                                                \
+@@ -9453,7 +9445,7 @@ distcheck: dist
+           $(DISTCHECK_CONFIGURE_FLAGS) \
+           --srcdir=../.. --prefix="$$dc_install_base" \
+         && $(MAKE) $(AM_MAKEFLAGS) \
+-        && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
++        && $(MAKE) $(AM_MAKEFLAGS) dvi \
+         && $(MAKE) $(AM_MAKEFLAGS) check \
+         && $(MAKE) $(AM_MAKEFLAGS) install \
+         && $(MAKE) $(AM_MAKEFLAGS) installcheck \
Index: devel/bison/patches/patch-doc_bison_texi
===================================================================
RCS file: devel/bison/patches/patch-doc_bison_texi
diff -N devel/bison/patches/patch-doc_bison_texi
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ devel/bison/patches/patch-doc_bison_texi    9 Nov 2020 15:17:10 -0000
@@ -0,0 +1,60 @@
+$OpenBSD$
+Base makeinfo doesn't support inlineraw.
+
+Index: doc/bison.texi
+--- doc/bison.texi.orig
++++ doc/bison.texi
+@@ -4,7 +4,6 @@
+ @documentencoding UTF-8
+ @include version.texi
+ @settitle Bison @value{VERSION}
+-@xrefautomaticsectiontitle on
+
+ @c cite a reference in text.  Could not find a means to have a single
+ @c definition that looks nice in all the output formats.
+@@ -80,35 +79,25 @@
+
+ @ifnottex
+ @macro colorGreen
+-@inlineraw{html, <span style="color:green">}
+ @end macro
+ @macro colorYellow
+-@inlineraw{html, <span style="color:#ff8000">}
+ @end macro
+ @macro colorRed
+-@inlineraw{html, <span style="color:red">}
+ @end macro
+ @macro colorBlue
+-@inlineraw{html, <span style="color:blue">}
+ @end macro
+ @macro colorPurple
+-@inlineraw{html, <span style="color:darkviolet">}
+ @end macro
+ @macro colorOff
+-@inlineraw{html, </span>}
+ @end macro
+
+ @macro diagError
+-@inlineraw{html, <b style="color:red">}
+ @end macro
+ @macro diagNotice
+-@inlineraw{html, <b style="color:darkcyan">}
+ @end macro
+ @macro diagWarning
+-@inlineraw{html, <b style="color:darkviolet">}
+ @end macro
+ @macro diagOff
+-@inlineraw{html, </b>}
+ @end macro
+ @end ifnottex
+
+@@ -9966,8 +9955,7 @@ if-then-else.y: @dnotice{note}: rerun with option '-Wc
+
+ @noindent
+ Let's rerun @command{bison} with the option
+-@option{-Wcex}/@option{-Wcounterexamples}@inlinefmt{info, (the following
+-output is actually in color)}:
++@option{-Wcex}/@option{-Wcounterexamples}:
+
+ @example
+ if-then-else.y: @dwarning{warning}: 1 shift/reduce conflict [@dwarning{-Wconflicts-sr}]
Index: devel/bison/patches/patch-doc_local_mk
===================================================================
RCS file: /cvs/ports/devel/bison/patches/patch-doc_local_mk,v
retrieving revision 1.1
diff -u -p -u -r1.1 patch-doc_local_mk
--- devel/bison/patches/patch-doc_local_mk      11 Jul 2020 23:42:05 -0000      
1.1
+++ devel/bison/patches/patch-doc_local_mk      9 Nov 2020 15:18:57 -0000
@@ -1,34 +1,19 @@
$OpenBSD: patch-doc_local_mk,v 1.1 2020/07/11 23:42:05 naddy Exp $
-
-Don't depend on the path of the bison executable.
-https://git.savannah.gnu.org/cgit/bison.git/commit/doc/local.mk?id=0782ed327401d1b59c059c89c8630d002260b4f7
-
-PARALLEL MAKE BUG
-Fix build race: Our make(1) treats $(top_srcdir)/doc/bison.help and
-doc/bison.help as distinct targets.
+Base makeinfo doesn't support the --set-customization-variable option.

Index: doc/local.mk
--- doc/local.mk.orig
+++ doc/local.mk
-@@ -90,9 +90,11 @@ MAINTAINERCLEANFILES += $(top_srcdir)/doc/bison.help
- $(top_srcdir)/doc/bison.help: src/bison$(EXEEXT)
-       $(AM_V_GEN)LC_ALL=C src/bison$(EXEEXT) --version >doc/bison.help.tmp
-       $(AM_V_at) LC_ALL=C src/bison$(EXEEXT) --help | \
-+## Avoid depending on the path to Bison.
-+        sed -e 's,^Usage: .*/bison \[OPTION\],Usage: bison [OPTION],g' \
- ## Avoid variations in the output depending on whether we are
- ## on a glibc system.
--        sed '/translation bugs/d'  >>doc/bison.help.tmp
-+            -e '/translation bugs/d'  >>doc/bison.help.tmp
-       $(AM_V_at)$(top_srcdir)/build-aux/move-if-change doc/bison.help.tmp $@
- endif ! CROSS_COMPILING
-
-@@ -112,7 +114,7 @@ remove_time_stamp = \
+@@ -14,11 +14,7 @@
+ ## You should have received a copy of the GNU General Public License
+ ## along with this program.  If not, see <http://www.gnu.org/licenses/>.

- # Depend on configure to get version number changes.
- if ! CROSS_COMPILING
--MAN_DEPS = doc/bison.help doc/bison.x $(top_srcdir)/configure
-+MAN_DEPS = $(top_srcdir)/doc/bison.help doc/bison.x $(top_srcdir)/configure
- endif
+-AM_MAKEINFOFLAGS =                                              \
+-  --no-split                                                    \
+-  --set-customization-variable=SECTION_NAME_IN_TITLE=true       \
+-  --set-customization-variable=AVOID_MENU_REDUNDANCY=true       \
+-  --set-customization-variable=ICONS=true
++AM_MAKEINFOFLAGS = --no-split

- $(top_srcdir)/doc/bison.1: $(MAN_DEPS)
+ info_TEXINFOS = %D%/bison.texi
+ %C%_bison_TEXINFOS =                            \
Index: devel/bison/patches/patch-lib_vasnprintf_c
===================================================================
RCS file: devel/bison/patches/patch-lib_vasnprintf_c
diff -N devel/bison/patches/patch-lib_vasnprintf_c
--- devel/bison/patches/patch-lib_vasnprintf_c  23 Oct 2020 21:34:05 -0000      
1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,21 +0,0 @@
-$OpenBSD: patch-lib_vasnprintf_c,v 1.2 2020/10/23 21:34:05 jca Exp $
-
-Don't use printf %n.
-https://git.savannah.gnu.org/cgit/gnulib.git/commit/lib/vasnprintf.c?id=b954346c6101860c7b462d1b286641d1307afd6c
-
-Index: lib/vasnprintf.c
---- lib/vasnprintf.c.orig
-+++ lib/vasnprintf.c
-@@ -4871,11 +4871,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
- #endif
-                   *fbp = dp->conversion;
- #if USE_SNPRINTF
--# if ! (((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3))        \
--         && !defined __UCLIBC__)                                            \
--        || (defined __APPLE__ && defined __MACH__)                          \
--        || defined __ANDROID__                                              \
--        || (defined _WIN32 && ! defined __CYGWIN__))
-+# if 0
-                 fbp[1] = '%';
-                 fbp[2] = 'n';
-                 fbp[3] = '\0';
Index: devel/bison/pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/bison/pkg/PLIST,v
retrieving revision 1.13
diff -u -p -u -r1.13 PLIST
--- devel/bison/pkg/PLIST       14 May 2019 16:28:23 -0000      1.13
+++ devel/bison/pkg/PLIST       9 Nov 2020 15:17:46 -0000
@@ -6,7 +6,8 @@
share/aclocal/
share/aclocal/bison-i18n.m4
share/bison/
-share/bison/README
+share/bison/README.md
+share/bison/bison-default.css
share/bison/m4sugar/
share/bison/m4sugar/foreach.m4
share/bison/m4sugar/m4sugar.m4
@@ -29,6 +30,7 @@ share/bison/skeletons/lalr1.d
share/bison/skeletons/lalr1.java
share/bison/skeletons/location.cc
share/bison/skeletons/stack.hh
+share/bison/skeletons/traceon.m4
share/bison/skeletons/variant.hh
share/bison/skeletons/yacc.c
share/bison/xslt/
@@ -61,6 +63,14 @@ share/doc/bison/examples/c++/simple.yy
share/doc/bison/examples/c++/variant-11.yy
share/doc/bison/examples/c++/variant.yy
share/doc/bison/examples/c/README.md
+share/doc/bison/examples/c/bistromathic/
+share/doc/bison/examples/c/bistromathic/Makefile
+share/doc/bison/examples/c/bistromathic/README.md
+share/doc/bison/examples/c/bistromathic/parse.y
+share/doc/bison/examples/c/calc/
+share/doc/bison/examples/c/calc/Makefile
+share/doc/bison/examples/c/calc/README.md
+share/doc/bison/examples/c/calc/calc.y
share/doc/bison/examples/c/lexcalc/
share/doc/bison/examples/c/lexcalc/Makefile
share/doc/bison/examples/c/lexcalc/README.md
@@ -70,6 +80,15 @@ share/doc/bison/examples/c/mfcalc/
share/doc/bison/examples/c/mfcalc/Makefile
share/doc/bison/examples/c/mfcalc/calc.h
share/doc/bison/examples/c/mfcalc/mfcalc.y
+share/doc/bison/examples/c/pushcalc/
+share/doc/bison/examples/c/pushcalc/Makefile
+share/doc/bison/examples/c/pushcalc/README.md
+share/doc/bison/examples/c/pushcalc/calc.y
+share/doc/bison/examples/c/reccalc/
+share/doc/bison/examples/c/reccalc/Makefile
+share/doc/bison/examples/c/reccalc/README.md
+share/doc/bison/examples/c/reccalc/parse.y
+share/doc/bison/examples/c/reccalc/scan.l
share/doc/bison/examples/c/rpcalc/
share/doc/bison/examples/c/rpcalc/Makefile
share/doc/bison/examples/c/rpcalc/rpcalc.y
@@ -78,43 +97,71 @@ share/doc/bison/examples/d/Makefile
share/doc/bison/examples/d/README.md
share/doc/bison/examples/d/calc.y
share/doc/bison/examples/java/
-share/doc/bison/examples/java/Calc.y
-share/doc/bison/examples/java/Makefile
share/doc/bison/examples/java/README.md
+share/doc/bison/examples/java/calc/
+share/doc/bison/examples/java/calc/Calc.y
+share/doc/bison/examples/java/calc/Makefile
+share/doc/bison/examples/java/simple/
+share/doc/bison/examples/java/simple/Calc.y
+share/doc/bison/examples/java/simple/Makefile
+share/locale/af/
+share/locale/af/LC_MESSAGES/
+share/locale/af/LC_MESSAGES/bison-gnulib.mo
share/locale/ast/LC_MESSAGES/bison-runtime.mo
+share/locale/be/LC_MESSAGES/bison-gnulib.mo
+share/locale/bg/LC_MESSAGES/bison-gnulib.mo
+share/locale/bg/LC_MESSAGES/bison-runtime.mo
+share/locale/bg/LC_MESSAGES/bison.mo
+share/locale/ca/LC_MESSAGES/bison-gnulib.mo
share/locale/ca/LC_MESSAGES/bison-runtime.mo
share/locale/ca/LC_MESSAGES/bison.mo
+share/locale/cs/LC_MESSAGES/bison-gnulib.mo
+share/locale/da/LC_MESSAGES/bison-gnulib.mo
share/locale/da/LC_MESSAGES/bison-runtime.mo
share/locale/da/LC_MESSAGES/bison.mo
+share/locale/de/LC_MESSAGES/bison-gnulib.mo
share/locale/de/LC_MESSAGES/bison-runtime.mo
share/locale/de/LC_MESSAGES/bison.mo
+share/locale/el/LC_MESSAGES/bison-gnulib.mo
share/locale/el/LC_MESSAGES/bison-runtime.mo
share/locale/el/LC_MESSAGES/bison.mo
+share/locale/eo/LC_MESSAGES/bison-gnulib.mo
share/locale/eo/LC_MESSAGES/bison-runtime.mo
share/locale/eo/LC_MESSAGES/bison.mo
+share/locale/es/LC_MESSAGES/bison-gnulib.mo
share/locale/es/LC_MESSAGES/bison-runtime.mo
share/locale/es/LC_MESSAGES/bison.mo
+share/locale/et/LC_MESSAGES/bison-gnulib.mo
share/locale/et/LC_MESSAGES/bison-runtime.mo
share/locale/et/LC_MESSAGES/bison.mo
+share/locale/eu/LC_MESSAGES/bison-gnulib.mo
+share/locale/fi/LC_MESSAGES/bison-gnulib.mo
share/locale/fi/LC_MESSAGES/bison-runtime.mo
share/locale/fi/LC_MESSAGES/bison.mo
+share/locale/fr/LC_MESSAGES/bison-gnulib.mo
share/locale/fr/LC_MESSAGES/bison-runtime.mo
share/locale/fr/LC_MESSAGES/bison.mo
+share/locale/ga/LC_MESSAGES/bison-gnulib.mo
share/locale/ga/LC_MESSAGES/bison-runtime.mo
share/locale/ga/LC_MESSAGES/bison.mo
+share/locale/gl/LC_MESSAGES/bison-gnulib.mo
share/locale/gl/LC_MESSAGES/bison-runtime.mo
share/locale/hr/LC_MESSAGES/bison-runtime.mo
share/locale/hr/LC_MESSAGES/bison.mo
+share/locale/hu/LC_MESSAGES/bison-gnulib.mo
share/locale/hu/LC_MESSAGES/bison-runtime.mo
share/locale/ia/
share/locale/ia/LC_MESSAGES/
share/locale/ia/LC_MESSAGES/bison-runtime.mo
share/locale/id/LC_MESSAGES/bison-runtime.mo
share/locale/id/LC_MESSAGES/bison.mo
+share/locale/it/LC_MESSAGES/bison-gnulib.mo
share/locale/it/LC_MESSAGES/bison-runtime.mo
share/locale/it/LC_MESSAGES/bison.mo
+share/locale/ja/LC_MESSAGES/bison-gnulib.mo
share/locale/ja/LC_MESSAGES/bison-runtime.mo
share/locale/ja/LC_MESSAGES/bison.mo
+share/locale/ko/LC_MESSAGES/bison-gnulib.mo
share/locale/ky/
share/locale/ky/LC_MESSAGES/
share/locale/ky/LC_MESSAGES/bison-runtime.mo
@@ -124,40 +171,63 @@ share/locale/lt/LC_MESSAGES/bison-runtim
share/locale/lv/LC_MESSAGES/bison-runtime.mo
share/locale/ms/
share/locale/ms/LC_MESSAGES/
+share/locale/ms/LC_MESSAGES/bison-gnulib.mo
share/locale/ms/LC_MESSAGES/bison-runtime.mo
share/locale/ms/LC_MESSAGES/bison.mo
+share/locale/nb/LC_MESSAGES/bison-gnulib.mo
share/locale/nb/LC_MESSAGES/bison-runtime.mo
share/locale/nb/LC_MESSAGES/bison.mo
+share/locale/nl/LC_MESSAGES/bison-gnulib.mo
share/locale/nl/LC_MESSAGES/bison-runtime.mo
share/locale/nl/LC_MESSAGES/bison.mo
+share/locale/pl/LC_MESSAGES/bison-gnulib.mo
share/locale/pl/LC_MESSAGES/bison-runtime.mo
share/locale/pl/LC_MESSAGES/bison.mo
+share/locale/pt/LC_MESSAGES/bison-gnulib.mo
share/locale/pt/LC_MESSAGES/bison-runtime.mo
share/locale/pt/LC_MESSAGES/bison.mo
+share/locale/pt_BR/LC_MESSAGES/bison-gnulib.mo
share/locale/pt_BR/LC_MESSAGES/bison-runtime.mo
share/locale/pt_BR/LC_MESSAGES/bison.mo
+share/locale/ro/LC_MESSAGES/bison-gnulib.mo
share/locale/ro/LC_MESSAGES/bison-runtime.mo
share/locale/ro/LC_MESSAGES/bison.mo
+share/locale/ru/LC_MESSAGES/bison-gnulib.mo
share/locale/ru/LC_MESSAGES/bison-runtime.mo
share/locale/ru/LC_MESSAGES/bison.mo
+share/locale/rw/
+share/locale/rw/LC_MESSAGES/
+share/locale/rw/LC_MESSAGES/bison-gnulib.mo
+share/locale/sk/LC_MESSAGES/bison-gnulib.mo
+share/locale/sl/LC_MESSAGES/bison-gnulib.mo
share/locale/sl/LC_MESSAGES/bison-runtime.mo
share/locale/sq/
share/locale/sq/LC_MESSAGES/
share/locale/sq/LC_MESSAGES/bison-runtime.mo
+share/locale/sr/LC_MESSAGES/bison-gnulib.mo
share/locale/sr/LC_MESSAGES/bison-runtime.mo
share/locale/sr/LC_MESSAGES/bison.mo
+share/locale/sv/LC_MESSAGES/bison-gnulib.mo
share/locale/sv/LC_MESSAGES/bison-runtime.mo
share/locale/sv/LC_MESSAGES/bison.mo
+share/locale/ta/
+share/locale/ta/LC_MESSAGES/
+share/locale/ta/LC_MESSAGES/bison-runtime.mo
share/locale/th/
share/locale/th/LC_MESSAGES/
share/locale/th/LC_MESSAGES/bison-runtime.mo
+share/locale/tr/LC_MESSAGES/bison-gnulib.mo
share/locale/tr/LC_MESSAGES/bison-runtime.mo
share/locale/tr/LC_MESSAGES/bison.mo
+share/locale/uk/LC_MESSAGES/bison-gnulib.mo
share/locale/uk/LC_MESSAGES/bison-runtime.mo
share/locale/uk/LC_MESSAGES/bison.mo
+share/locale/vi/LC_MESSAGES/bison-gnulib.mo
share/locale/vi/LC_MESSAGES/bison-runtime.mo
share/locale/vi/LC_MESSAGES/bison.mo
+share/locale/zh_CN/LC_MESSAGES/bison-gnulib.mo
share/locale/zh_CN/LC_MESSAGES/bison-runtime.mo
share/locale/zh_CN/LC_MESSAGES/bison.mo
+share/locale/zh_TW/LC_MESSAGES/bison-gnulib.mo
share/locale/zh_TW/LC_MESSAGES/bison-runtime.mo
share/locale/zh_TW/LC_MESSAGES/bison.mo

Reply via email to