Wed Sep 29 08:40:15 2021 UTC ()
bison: update to 3.8.1.

* Noteworthy changes in release 3.8.1 (2021-09-11) [stable]

  The generation of prototypes for yylex and yyerror in Yacc mode is
  breaking existing grammar files.  To avoid breaking too many grammars, the
  prototypes are now generated when `-y/--yacc` is used *and* the
  `POSIXLY_CORRECT` environment variable is defined.

  Avoid using `-y`/`--yacc` simply to comply with Yacc's file name
  conventions, rather, use `-o y.tab.c`.  Autoconf's AC_PROG_YACC macro uses
  `-y`.  Avoid it if possible, for instance by using gnulib's gl_PROG_BISON.

* Noteworthy changes in release 3.8 (2021-09-07) [stable]

** Backward incompatible changes

  In conformance with the recommendations of the Graphviz team
  (https://marc.info/?l=graphviz-devel&m=129418103126092), `-g`/`--graph`
  now generates a *.gv file by default, instead of *.dot.  A transition
  started in Bison 3.4.

  To comply with the latest POSIX standard, in Yacc compatibility mode
  (options `-y`/`--yacc`) Bison now generates prototypes for yyerror and
  yylex.  In some situations, this is breaking compatibility: if the user
  has already declared these functions but with some differences (e.g., to
  declare them as static, or to use specific attributes), the generated
  parser will fail to compile.  To disable these prototypes, #define yyerror
  (to `yyerror`), and likewise for yylex.

** Deprecated features

  Support for the YYPRINT macro is removed. It worked only with yacc.c and
  only for tokens.  It was obsoleted by %printer, introduced in Bison 1.50
  (November 2002).

  It has always been recommended to prefer `%define api.value.type foo` to
  `#define YYSTYPE foo`.  The latter is supported in C for compatibility
  with Yacc, but not in C++.  Warnings are now issued if `#define YYSTYPE`
  is used in C++, and eventually support will be removed.

  In C++ code, prefer value_type to semantic_type to denote the semantic
  value type, which is specified by the `api.value.type` %define variable.

** New features

*** A skeleton for the D programming language

  The "lalr1.d" skeleton is now officially part of Bison.

  It was originally contributed by Oliver Mangold, based on Paolo Bonzini's
  lalr1.java, and was improved by H. S. Teoh.  Adela Vais then took over
  maintenance and invested a lot of efforts to complete, test and document
  it.

  It now supports all the bells and whistles of the other deterministic
  parsers, which include: pull/push interfaces, verbose and custom error
  messages, lookahead correction, token constructors, internationalization,
  locations, printers, token and symbol prefixes, etc.

  Two examples demonstrate the D parsers: a basic one (examples/d/simple),
  and an advanced one (examples/d/calc).

*** Option -H, --header and directive %header

  The option `-H`/`--header` supersedes the option `--defines`, and the
  directive %header supersedes %defines.  Both `--defines` and `%defines`
  are, of course, maintained for backward compatibility.

*** Option --html

  Since version 2.4 Bison can be used to generate HTML reports.  However it
  was a two-step process: first bison must be invoked with option `--xml`,
  and then xsltproc must be run to the convert the XML reports into HTML.

  The new option `--html` combines these steps.  The xsltproc program must
  be available.

*** A C++ native GLR parser

  A new version of the C++ GLR parser was added: "glr2.cc".  It generates
  "true C++11", instead of a C++ wrapper around a C parser as does the
  existing "glr.cc" parser.  As a first significant consequence, it supports
  `%define api.value.type variant`, contrary to glr.cc.

  It should be upward compatible in terms of interface, feature and
  performance to "glr.cc". To try it out, simply use

  %skeleton "glr2.cc"

  It will eventually replace "glr.cc".  However we need user feedback on
  this skeleton.  _Please_ report your results and comments about it.

*** Counterexamples

  Counterexamples now show the rule numbers, and always show ε for rules
  with an empty right-hand side.  For instance

    exp
    ↳ 1: e1       e2     "a"
         ↳ 3: ε • ↳ 1: ε

  instead of

    exp
    ↳ e1  e2  "a"
      ↳ • ↳ ε

*** Lookahead correction in Java

  The Java skeleton (lalr1.java) now supports LAC, via the `parse.lac`
  %define variable.

*** Abort parsing for memory exhaustion (C)

  User actions may now use `YYNOMEM` (similar to `YYACCEPT` and `YYABORT`)
  to abort the current parse with memory exhaustion.

*** Printing locations in debug traces (C)

  The `YYLOCATION_PRINT(File, Loc)` macro prints a location.  It is defined
  when (i) locations are enabled, (ii) the default type for locations is
  used, (iii) debug traces are enabled, and (iv) `YYLOCATION_PRINT` is not
  already defined.

  Users may define `YYLOCATION_PRINT` to cover other cases.

*** GLR traces

  There were no debug traces for deferred calls to user actions.  They are
  logged now.


(wiz)
diff -r1.121 -r1.122 pkgsrc/devel/bison/Makefile
diff -r1.33 -r1.34 pkgsrc/devel/bison/PLIST
diff -r1.58 -r1.59 pkgsrc/devel/bison/distinfo
diff -r1.7 -r0 pkgsrc/devel/bison/patches/patch-Makefile.in

cvs diff -r1.121 -r1.122 pkgsrc/devel/bison/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/bison/Makefile 2021/05/24 19:49:53 1.121
+++ pkgsrc/devel/bison/Makefile 2021/09/29 08:40:14 1.122
@@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
1# $NetBSD: Makefile,v 1.121 2021/05/24 19:49:53 wiz Exp $ 1# $NetBSD: Makefile,v 1.122 2021/09/29 08:40:14 wiz Exp $
2 2
3DISTNAME= bison-3.7.6 3DISTNAME= bison-3.8.1
4PKGREVISION= 1 
5CATEGORIES= devel 4CATEGORIES= devel
6MASTER_SITES= ${MASTER_SITE_GNU:=bison/} 5MASTER_SITES= ${MASTER_SITE_GNU:=bison/}
7EXTRACT_SUFX= .tar.xz 6EXTRACT_SUFX= .tar.xz
8 7
9MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://www.gnu.org/software/bison/bison.html 9HOMEPAGE= https://www.gnu.org/software/bison/bison.html
11COMMENT= GNU yacc(1) replacement 10COMMENT= GNU yacc(1) replacement
12LICENSE= gnu-gpl-v3 11LICENSE= gnu-gpl-v3
13 12
14CHECK_PORTABILITY_SKIP+= tests/local.mk 13CHECK_PORTABILITY_SKIP+= tests/local.mk
15 14
16USE_LANGUAGES= c c++ 15USE_LANGUAGES= c c++
17USE_TOOLS+= grep gm4:run flex perl:build 16USE_TOOLS+= grep gm4:run flex perl:build

cvs diff -r1.33 -r1.34 pkgsrc/devel/bison/PLIST (expand / switch to unified diff)

--- pkgsrc/devel/bison/PLIST 2020/08/24 07:50:19 1.33
+++ pkgsrc/devel/bison/PLIST 2021/09/29 08:40:14 1.34
@@ -1,33 +1,33 @@ @@ -1,33 +1,33 @@
1@comment $NetBSD: PLIST,v 1.33 2020/08/24 07:50:19 wiz Exp $ 1@comment $NetBSD: PLIST,v 1.34 2021/09/29 08:40:14 wiz Exp $
2bin/bison 2bin/bison
3info/bison.info 3info/bison.info
4man/man1/bison.1 4man/man1/bison.1
5share/aclocal/bison-i18n.m4 5share/aclocal/bison-i18n.m4
6share/bison/README.md 6share/bison/README.md
7share/bison/bison-default.css 7share/bison/bison-default.css
8share/bison/m4sugar/foreach.m4 8share/bison/m4sugar/foreach.m4
9share/bison/m4sugar/m4sugar.m4 9share/bison/m4sugar/m4sugar.m4
10share/bison/skeletons/README-D.txt 
11share/bison/skeletons/bison.m4 10share/bison/skeletons/bison.m4
12share/bison/skeletons/c++-skel.m4 11share/bison/skeletons/c++-skel.m4
13share/bison/skeletons/c++.m4 12share/bison/skeletons/c++.m4
14share/bison/skeletons/c-like.m4 13share/bison/skeletons/c-like.m4
15share/bison/skeletons/c-skel.m4 14share/bison/skeletons/c-skel.m4
16share/bison/skeletons/c.m4 15share/bison/skeletons/c.m4
17share/bison/skeletons/d-skel.m4 16share/bison/skeletons/d-skel.m4
18share/bison/skeletons/d.m4 17share/bison/skeletons/d.m4
19share/bison/skeletons/glr.c 18share/bison/skeletons/glr.c
20share/bison/skeletons/glr.cc 19share/bison/skeletons/glr.cc
 20share/bison/skeletons/glr2.cc
21share/bison/skeletons/java-skel.m4 21share/bison/skeletons/java-skel.m4
22share/bison/skeletons/java.m4 22share/bison/skeletons/java.m4
23share/bison/skeletons/lalr1.cc 23share/bison/skeletons/lalr1.cc
24share/bison/skeletons/lalr1.d 24share/bison/skeletons/lalr1.d
25share/bison/skeletons/lalr1.java 25share/bison/skeletons/lalr1.java
26share/bison/skeletons/location.cc 26share/bison/skeletons/location.cc
27share/bison/skeletons/stack.hh 27share/bison/skeletons/stack.hh
28share/bison/skeletons/traceon.m4 28share/bison/skeletons/traceon.m4
29share/bison/skeletons/variant.hh 29share/bison/skeletons/variant.hh
30share/bison/skeletons/yacc.c 30share/bison/skeletons/yacc.c
31share/bison/xslt/bison.xsl 31share/bison/xslt/bison.xsl
32share/bison/xslt/xml2dot.xsl 32share/bison/xslt/xml2dot.xsl
33share/bison/xslt/xml2text.xsl 33share/bison/xslt/xml2text.xsl
@@ -48,45 +48,50 @@ share/doc/bison/examples/c++/calc++/driv @@ -48,45 +48,50 @@ share/doc/bison/examples/c++/calc++/driv
48share/doc/bison/examples/c++/calc++/driver.hh 48share/doc/bison/examples/c++/calc++/driver.hh
49share/doc/bison/examples/c++/calc++/parser.yy 49share/doc/bison/examples/c++/calc++/parser.yy
50share/doc/bison/examples/c++/calc++/scanner.ll 50share/doc/bison/examples/c++/calc++/scanner.ll
51share/doc/bison/examples/c++/simple.yy 51share/doc/bison/examples/c++/simple.yy
52share/doc/bison/examples/c++/variant-11.yy 52share/doc/bison/examples/c++/variant-11.yy
53share/doc/bison/examples/c++/variant.yy 53share/doc/bison/examples/c++/variant.yy
54share/doc/bison/examples/c/README.md 54share/doc/bison/examples/c/README.md
55share/doc/bison/examples/c/bistromathic/Makefile 55share/doc/bison/examples/c/bistromathic/Makefile
56share/doc/bison/examples/c/bistromathic/README.md 56share/doc/bison/examples/c/bistromathic/README.md
57share/doc/bison/examples/c/bistromathic/parse.y 57share/doc/bison/examples/c/bistromathic/parse.y
58share/doc/bison/examples/c/calc/Makefile 58share/doc/bison/examples/c/calc/Makefile
59share/doc/bison/examples/c/calc/README.md 59share/doc/bison/examples/c/calc/README.md
60share/doc/bison/examples/c/calc/calc.y 60share/doc/bison/examples/c/calc/calc.y
 61share/doc/bison/examples/c/glr/Makefile
 62share/doc/bison/examples/c/glr/README.md
 63share/doc/bison/examples/c/glr/c++-types.y
61share/doc/bison/examples/c/lexcalc/Makefile 64share/doc/bison/examples/c/lexcalc/Makefile
62share/doc/bison/examples/c/lexcalc/README.md 65share/doc/bison/examples/c/lexcalc/README.md
63share/doc/bison/examples/c/lexcalc/parse.y 66share/doc/bison/examples/c/lexcalc/parse.y
64share/doc/bison/examples/c/lexcalc/scan.l 67share/doc/bison/examples/c/lexcalc/scan.l
65share/doc/bison/examples/c/mfcalc/Makefile 68share/doc/bison/examples/c/mfcalc/Makefile
66share/doc/bison/examples/c/mfcalc/calc.h 69share/doc/bison/examples/c/mfcalc/calc.h
67share/doc/bison/examples/c/mfcalc/mfcalc.y 70share/doc/bison/examples/c/mfcalc/mfcalc.y
68share/doc/bison/examples/c/pushcalc/Makefile 71share/doc/bison/examples/c/pushcalc/Makefile
69share/doc/bison/examples/c/pushcalc/README.md 72share/doc/bison/examples/c/pushcalc/README.md
70share/doc/bison/examples/c/pushcalc/calc.y 73share/doc/bison/examples/c/pushcalc/calc.y
71share/doc/bison/examples/c/reccalc/Makefile 74share/doc/bison/examples/c/reccalc/Makefile
72share/doc/bison/examples/c/reccalc/README.md 75share/doc/bison/examples/c/reccalc/README.md
73share/doc/bison/examples/c/reccalc/parse.y 76share/doc/bison/examples/c/reccalc/parse.y
74share/doc/bison/examples/c/reccalc/scan.l 77share/doc/bison/examples/c/reccalc/scan.l
75share/doc/bison/examples/c/rpcalc/Makefile 78share/doc/bison/examples/c/rpcalc/Makefile
76share/doc/bison/examples/c/rpcalc/rpcalc.y 79share/doc/bison/examples/c/rpcalc/rpcalc.y
77share/doc/bison/examples/d/Makefile 
78share/doc/bison/examples/d/README.md 80share/doc/bison/examples/d/README.md
79share/doc/bison/examples/d/calc.y 81share/doc/bison/examples/d/calc/Makefile
 82share/doc/bison/examples/d/calc/calc.y
 83share/doc/bison/examples/d/simple/Makefile
 84share/doc/bison/examples/d/simple/calc.y
80share/doc/bison/examples/java/README.md 85share/doc/bison/examples/java/README.md
81share/doc/bison/examples/java/calc/Calc.y 86share/doc/bison/examples/java/calc/Calc.y
82share/doc/bison/examples/java/calc/Makefile 87share/doc/bison/examples/java/calc/Makefile
83share/doc/bison/examples/java/simple/Calc.y 88share/doc/bison/examples/java/simple/Calc.y
84share/doc/bison/examples/java/simple/Makefile 89share/doc/bison/examples/java/simple/Makefile
85${PLIST.nls}share/locale/af/LC_MESSAGES/bison-gnulib.mo 90${PLIST.nls}share/locale/af/LC_MESSAGES/bison-gnulib.mo
86${PLIST.nls}share/locale/ast/LC_MESSAGES/bison-runtime.mo 91${PLIST.nls}share/locale/ast/LC_MESSAGES/bison-runtime.mo
87${PLIST.nls}share/locale/be/LC_MESSAGES/bison-gnulib.mo 92${PLIST.nls}share/locale/be/LC_MESSAGES/bison-gnulib.mo
88${PLIST.nls}share/locale/bg/LC_MESSAGES/bison-gnulib.mo 93${PLIST.nls}share/locale/bg/LC_MESSAGES/bison-gnulib.mo
89${PLIST.nls}share/locale/bg/LC_MESSAGES/bison-runtime.mo 94${PLIST.nls}share/locale/bg/LC_MESSAGES/bison-runtime.mo
90${PLIST.nls}share/locale/bg/LC_MESSAGES/bison.mo 95${PLIST.nls}share/locale/bg/LC_MESSAGES/bison.mo
91${PLIST.nls}share/locale/ca/LC_MESSAGES/bison-gnulib.mo 96${PLIST.nls}share/locale/ca/LC_MESSAGES/bison-gnulib.mo
92${PLIST.nls}share/locale/ca/LC_MESSAGES/bison-runtime.mo 97${PLIST.nls}share/locale/ca/LC_MESSAGES/bison-runtime.mo

cvs diff -r1.58 -r1.59 pkgsrc/devel/bison/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/bison/distinfo 2021/03/14 08:16:02 1.58
+++ pkgsrc/devel/bison/distinfo 2021/09/29 08:40:14 1.59
@@ -1,8 +1,7 @@ @@ -1,8 +1,7 @@
1$NetBSD: distinfo,v 1.58 2021/03/14 08:16:02 wiz Exp $ 1$NetBSD: distinfo,v 1.59 2021/09/29 08:40:14 wiz Exp $
2 2
3SHA1 (bison-3.7.6.tar.xz) = bbd6362383a7276cd85ed3f19cb5416aeb98e5db 3SHA1 (bison-3.8.1.tar.xz) = 9772ea3130d6cbddaefe29a659698775a5701394
4RMD160 (bison-3.7.6.tar.xz) = 97ad0da72284a606651523151ce8222d1418e1fa 4RMD160 (bison-3.8.1.tar.xz) = 2e86a3970b364def94fe401d75802468460f6a89
5SHA512 (bison-3.7.6.tar.xz) = 6c1c9b825fbd2c94b8903f03a7e68e6832599f7bbd8d3c49864537c11b038c45a15de02fd36128d662af314334c83515bbc132df84e9acc6c651e98649c65bad 5SHA512 (bison-3.8.1.tar.xz) = f87978c41eca4db22de4f64feb3be92e44862d412f75dd84980045faf0f9e7f5a41b25bef8d4acd90743638eab61a7ac111444969d958fef5fe3535bac416921
6Size (bison-3.7.6.tar.xz) = 2627180 bytes 6Size (bison-3.8.1.tar.xz) = 2800372 bytes
7SHA1 (patch-Makefile.in) = e50363d642f045dafb71a9b7c8b0814995029e1c 
8SHA1 (patch-lib_isnan.c) = 5b44fc6e2e97e36f91cd784bf3a38ad459fccdab 7SHA1 (patch-lib_isnan.c) = 5b44fc6e2e97e36f91cd784bf3a38ad459fccdab

File Deleted: pkgsrc/devel/bison/patches/Attic/patch-Makefile.in