pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/bison Update to 3.0.5



details:   https://anonhg.NetBSD.org/pkgsrc/rev/def3074b99b4
branches:  trunk
changeset: 328469:def3074b99b4
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Tue Jan 22 03:20:40 2019 +0000

description:
Update to 3.0.5

Changelog:
* Noteworthy changes in release 3.0.5 (2018-05-27) [stable]

** Bug fixes

*** C++: Fix support of 'syntax_error'

  One incorrect 'inline' resulted in linking errors about the constructor of
  the syntax_error exception.

*** C++: Fix warnings

  GCC 7.3 (with -O1 or -O2 but not -O0 or -O3) issued null-dereference
  warnings about yyformat being possibly null.  It also warned about the
  deprecated implicit definition of copy constructors when there's a
  user-defined (copy) assignment operator.

*** Location of errors

  In C++ parsers, out-of-bounds errors can happen when a rule with an empty
  ride-hand side raises a syntax error.  The behavior of the default parser
  (yacc.c) in such a condition was undefined.

  Now all the parsers match the behavior of glr.c: @$ is used as the
  location of the error.  This handles gracefully rules with and without
  rhs.

*** Portability fixes in the test suite

  On some platforms, some Java and/or C++ tests were failing.

diffstat:

 devel/bison/Makefile                       |   5 +--
 devel/bison/PLIST                          |   4 ++-
 devel/bison/distinfo                       |  13 ++++-------
 devel/bison/patches/patch-lib_fseterr.c    |  17 ---------------
 devel/bison/patches/patch-lib_stdio.in.h   |  14 ------------
 devel/bison/patches/patch-lib_vasnprintf.c |  33 ------------------------------
 6 files changed, 10 insertions(+), 76 deletions(-)

diffs (127 lines):

diff -r bda681d469b7 -r def3074b99b4 devel/bison/Makefile
--- a/devel/bison/Makefile      Tue Jan 22 02:29:23 2019 +0000
+++ b/devel/bison/Makefile      Tue Jan 22 03:20:40 2019 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.104 2018/08/22 09:43:28 wiz Exp $
+# $NetBSD: Makefile,v 1.105 2019/01/22 03:20:40 ryoon Exp $
 
-DISTNAME=      bison-3.0.4
-PKGREVISION=   4
+DISTNAME=      bison-3.0.5
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GNU:=bison/}
 EXTRACT_SUFX=  .tar.xz
diff -r bda681d469b7 -r def3074b99b4 devel/bison/PLIST
--- a/devel/bison/PLIST Tue Jan 22 02:29:23 2019 +0000
+++ b/devel/bison/PLIST Tue Jan 22 03:20:40 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.28 2015/01/22 04:57:57 mef Exp $
+@comment $NetBSD: PLIST,v 1.29 2019/01/22 03:20:40 ryoon Exp $
 bin/bison
 info/bison.info
 man/man1/bison.1
@@ -41,6 +41,8 @@
 share/doc/bison/examples/mfcalc/mfcalc.y
 share/doc/bison/examples/rpcalc/rpcalc.y
 share/locale/ast/LC_MESSAGES/bison-runtime.mo
+share/locale/ca/LC_MESSAGES/bison-runtime.mo
+share/locale/ca/LC_MESSAGES/bison.mo
 share/locale/da/LC_MESSAGES/bison-runtime.mo
 share/locale/da/LC_MESSAGES/bison.mo
 share/locale/de/LC_MESSAGES/bison-runtime.mo
diff -r bda681d469b7 -r def3074b99b4 devel/bison/distinfo
--- a/devel/bison/distinfo      Tue Jan 22 02:29:23 2019 +0000
+++ b/devel/bison/distinfo      Tue Jan 22 03:20:40 2019 +0000
@@ -1,11 +1,8 @@
-$NetBSD: distinfo,v 1.48 2019/01/16 00:19:31 gutteridge Exp $
+$NetBSD: distinfo,v 1.49 2019/01/22 03:20:40 ryoon Exp $
 
-SHA1 (bison-3.0.4.tar.xz) = 8270497aad88c7dd4f2c317298c50513fb0c3c8e
-RMD160 (bison-3.0.4.tar.xz) = 414959f3d619d8e4875e241ee02852b2ff13c2cb
-SHA512 (bison-3.0.4.tar.xz) = bbdc23e7772e49da1c7c47e66d4e4efbfbfe9b21dbc59bf3ad9a6e573eecac6c9f52c7f11a64be9897e8deb99ef7ba015164aa8232aa391b901dd7db03632412
-Size (bison-3.0.4.tar.xz) = 1973796 bytes
+SHA1 (bison-3.0.5.tar.xz) = 45e904d04d88c821df95833c4be4414ce5a47a4b
+RMD160 (bison-3.0.5.tar.xz) = f13012d77dfddc8c5ed0c717f9006049ae17b8af
+SHA512 (bison-3.0.5.tar.xz) = 00b448db8abe91b07e32ff5273c6617bc1350d806f92073a9472f4c2f0de5d22c152795674171b74f2eb9eff8d36f8173b82dacb215601bb071ae39404d4a8a2
+Size (bison-3.0.5.tar.xz) = 1954868 bytes
 SHA1 (patch-data_glr.c) = a2e0900ed995e4320e80f8ed05eae8e82be50502
-SHA1 (patch-lib_fseterr.c) = 59dd24cc0612d7a562fa6a0e89f7d6911ad2147e
 SHA1 (patch-lib_isnan.c) = 5b44fc6e2e97e36f91cd784bf3a38ad459fccdab
-SHA1 (patch-lib_stdio.in.h) = bb793f0c8f56c3a838609f8a86cf5afc70420da8
-SHA1 (patch-lib_vasnprintf.c) = 2bced6c121efc9bc5894174c7745ba89e8f53033
diff -r bda681d469b7 -r def3074b99b4 devel/bison/patches/patch-lib_fseterr.c
--- a/devel/bison/patches/patch-lib_fseterr.c   Tue Jan 22 02:29:23 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-$NetBSD: patch-lib_fseterr.c,v 1.1 2019/01/16 00:19:31 gutteridge Exp $
-
-Work around glibc changes that broke dependent gnulib functionality.
-Patch from: http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=74d9d6a293d7462dea8f83e7fc5ac792e956a0ad
-
---- lib/fseterr.c.orig 2019-01-15 19:37:01.340382604 +0000
-+++ lib/fseterr.c
-@@ -29,7 +29,8 @@ fseterr (FILE *fp)
-   /* Most systems provide FILE as a struct and the necessary bitmask in
-      <stdio.h>, because they need it for implementing getc() and putc() as
-      fast macros.  */
--#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
-+#if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1
-+  /* GNU libc, BeOS, Haiku, Linux libc5 */
-   fp->_flags |= _IO_ERR_SEEN;
- #elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin */
-   fp_->_flags |= __SERR;
diff -r bda681d469b7 -r def3074b99b4 devel/bison/patches/patch-lib_stdio.in.h
--- a/devel/bison/patches/patch-lib_stdio.in.h  Tue Jan 22 02:29:23 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-$NetBSD: patch-lib_stdio.in.h,v 1.1 2015/06/30 21:39:09 richard Exp $
-avoid warnings w.r.t. gets() when c++ is used
-
---- lib/stdio.in.h.orig        2015-01-15 08:25:52.000000000 +0000
-+++ lib/stdio.in.h
-@@ -723,7 +723,7 @@ _GL_WARN_ON_USE (getline, "getline is un
-    so any use of gets warrants an unconditional warning; besides, C11
-    removed it.  */
- #undef gets
--#if HAVE_RAW_DECL_GETS
-+#if HAVE_RAW_DECL_GETS && !defined(__cplusplus)
- _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
- #endif
- 
diff -r bda681d469b7 -r def3074b99b4 devel/bison/patches/patch-lib_vasnprintf.c
--- a/devel/bison/patches/patch-lib_vasnprintf.c        Tue Jan 22 02:29:23 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-$NetBSD: patch-lib_vasnprintf.c,v 1.1 2017/08/18 21:43:03 adam Exp $
-
-Fix crash on macOS 10.13 (Darwin 17).
-http://git.savannah.gnu.org/cgit/gnulib.git/commit/lib/vasnprintf.c?id=7df04f9b8a0adb1575ca0555775ec10860143cbf
-
---- lib/vasnprintf.c.orig      2015-01-04 16:46:03.000000000 +0000
-+++ lib/vasnprintf.c
-@@ -4858,7 +4869,10 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *
- #endif
-                   *fbp = dp->conversion;
- #if USE_SNPRINTF
--# if !(((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__))
-+# if ! (((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3))        \
-+         && !defined __UCLIBC__)                                            \
-+        || (defined __APPLE__ && defined __MACH__)                          \
-+        || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__))
-                 fbp[1] = '%';
-                 fbp[2] = 'n';
-                 fbp[3] = '\0';
-@@ -4872,6 +4886,13 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *
-                    in format strings in writable memory may crash the program
-                    (if compiled with _FORTIFY_SOURCE=2), so we should avoid it
-                    in this situation.  */
-+                /* On Mac OS X 10.3 or newer, we know that snprintf's return
-+                   value conforms to ISO C 99: the tests gl_SNPRINTF_RETVAL_C99
-+                   and gl_SNPRINTF_TRUNCATION_C99 pass.
-+                   Therefore we can avoid using %n in this situation.
-+                   On Mac OS X 10.13 or newer, the use of %n in format strings
-+                   in writable memory by default crashes the program, so we
-+                   should avoid it in this situation.  */
-                 /* On native Windows systems (such as mingw), we can avoid using
-                    %n because:
-                      - Although the gl_SNPRINTF_TRUNCATION_C99 test fails,



Home | Main Index | Thread Index | Old Index