On Fri, 30 Apr 2021 11:09:23 +0100, Stuart Henderson wrote:
> - devel/cbmc: repeatable bison segfault, seems related to curses/libtextstyle
> .
>
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0 0x00000296d2c05573 in delay_output (ms=54) at /src/checkout/openbsd-src-c
> vs/lib/libcurses/tinfo/lib_tputs.c:81
> 81 if (no_pad_char) {
(gdb) p cur_term->type.Booleans[25]
Cannot access memory at address 0x10
(gdb) p cur_term
$1 = (TERMINAL *) 0x0
Maybe curses is not initialized by libtextstyle for some reason?
It may be simplest to just disable the use of libtextstyle by adding
--without-libtextstyle-prefix to CONFIGURE_ARGS.
That fixes the crash but devel/cbmc need an additional fix since
it manually moves ansi_c_y.tab.hpp to ansi_c_y.tab.h but ansi_c_y.tab.cpp
includes ansi_c_y.tab.hpp directly.
This is due to a change in bison where it now includes the generated
header file. Using --defines=foo.h instead of just -d fixes that
problem, though you'd also need to comment out the bit that used
to move the header file around. With that fixed, devel/cbmc compiles
for me. The latest cbmc already includes those fixes.
- 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 30 Apr 2021 14:13:31 -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
@@ -25,7 +24,8 @@ BUILD_DEPENDS= devel/gettext,-tools \
RUN_DEPENDS= devel/m4
CONFIGURE_STYLE=autoreconf
-CONFIGURE_ARGS= --disable-yacc
+CONFIGURE_ARGS= --disable-yacc --without-libtextstyle-prefix
+DEBUG_PACKAGES= ${BUILD_PACKAGES}
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/build-aux
.include <bsd.port.mk>
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 30 Apr 2021 13:49:50 -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 30 Apr 2021 13:49:50 -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 30 Apr 2021 13:49:50 -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 30 Apr 2021 13:49:50 -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,
-
No comments:
Post a Comment