From owner-svn-ports-all@freebsd.org Thu Jul 18 19:12:21 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AB0B4AF06B; Thu, 18 Jul 2019 19:12:21 +0000 (UTC) (envelope-from tijl@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8D0636DD32; Thu, 18 Jul 2019 19:12:21 +0000 (UTC) (envelope-from tijl@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 64F82C96B; Thu, 18 Jul 2019 19:12:21 +0000 (UTC) (envelope-from tijl@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x6IJCLxH043295; Thu, 18 Jul 2019 19:12:21 GMT (envelope-from tijl@FreeBSD.org) Received: (from tijl@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x6IJCLe3043293; Thu, 18 Jul 2019 19:12:21 GMT (envelope-from tijl@FreeBSD.org) Message-Id: <201907181912.x6IJCLe3043293@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tijl set sender to tijl@FreeBSD.org using -f From: Tijl Coosemans Date: Thu, 18 Jul 2019 19:12:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r506872 - in head/devel/autoconf: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tijl X-SVN-Commit-Paths: in head/devel/autoconf: . files X-SVN-Commit-Revision: 506872 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 8D0636DD32 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.95)[-0.949,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jul 2019 19:12:21 -0000 Author: tijl Date: Thu Jul 18 19:12:20 2019 New Revision: 506872 URL: https://svnweb.freebsd.org/changeset/ports/506872 Log: Add patch with upstream commit 42761668c0300afa7f8bf5ba736458a818cd5d15: AC_PROG_YACC: don't force Bison to warn against its own features. Requested by: ler (via email) Reference: https://github.com/paul-j-lucas/cdecl/issues/2 Added: head/devel/autoconf/files/patch-bison (contents, props changed) Modified: head/devel/autoconf/Makefile Modified: head/devel/autoconf/Makefile ============================================================================== --- head/devel/autoconf/Makefile Thu Jul 18 18:52:34 2019 (r506871) +++ head/devel/autoconf/Makefile Thu Jul 18 19:12:20 2019 (r506872) @@ -3,7 +3,7 @@ PORTNAME= autoconf PORTVERSION= 2.69 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= GNU Added: head/devel/autoconf/files/patch-bison ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/autoconf/files/patch-bison Thu Jul 18 19:12:20 2019 (r506872) @@ -0,0 +1,53 @@ +From 42761668c0300afa7f8bf5ba736458a818cd5d15 Mon Sep 17 00:00:00 2001 +From: Akim Demaille +Date: Tue, 19 Mar 2013 11:19:17 -0700 +Subject: AC_PROG_YACC: don't force Bison to warn against its own features + +When invoked with -y/--yacc, Bison warns when its extensions over +POSIX Yacc are used. Yet many packages requiring GNU Bison use +Autoconf/Automake's Yacc support, which passes -y to Bison. It +turns out that passing '-o y.tab.c' has exactly the desired +effect: generating not only y.tab.c but also y.tab.h with -d and +y.output with -v. See: +http://lists.gnu.org/archive/html/bison-patches/2013-02/msg00100.html +* lib/autoconf/programs.m4 (AC_PROG_YACC): Use bison -o y.tab.c. +* NEWS, doc/autoconf.texi: Document this change. +--- + NEWS | 4 ++++ + doc/autoconf.texi | 2 +- + lib/autoconf/programs.m4 | 4 ++-- + 3 files changed, 7 insertions(+), 3 deletions(-) + +diff --git a/doc/autoconf.texi b/doc/autoconf.texi +index c54c5b3..f895e47 100644 +--- doc/autoconf.texi ++++ doc/autoconf.texi +@@ -4222,7 +4222,7 @@ and is cached in the @code{ac_cv_path_SED} variable. + @ovindex YACC + @caindex prog_YACC + If @code{bison} is found, set output variable @code{YACC} to @samp{bison +--y}. Otherwise, if @code{byacc} is found, set @code{YACC} to ++-o y.tab.c}. Otherwise, if @code{byacc} is found, set @code{YACC} to + @samp{byacc}. Otherwise set @code{YACC} to @samp{yacc}. + The result of this test can be influenced by setting the variable + @code{YACC} or the cache variable @code{ac_cv_prog_YACC}. +diff --git a/lib/autoconf/programs.m4 b/lib/autoconf/programs.m4 +index f7af8b5..2057e78 100644 +--- lib/autoconf/programs.m4 ++++ lib/autoconf/programs.m4 +@@ -892,10 +892,10 @@ AN_PROGRAM([yacc], [AC_PROG_YACC]) + AN_PROGRAM([byacc], [AC_PROG_YACC]) + AN_PROGRAM([bison], [AC_PROG_YACC]) + AC_DEFUN([AC_PROG_YACC], +-[AC_CHECK_PROGS(YACC, 'bison -y' byacc, yacc)dnl ++[AC_CHECK_PROGS(YACC, 'bison -o y.tab.c' byacc, yacc)dnl + AC_ARG_VAR(YACC, + [The `Yet Another Compiler Compiler' implementation to use. Defaults to +-the first program found out of: `bison -y', `byacc', `yacc'.])dnl ++the first program found out of: `bison -o y.tab.c', `byacc', `yacc'.])dnl + AC_ARG_VAR(YFLAGS, + [The list of arguments that will be passed by default to $YACC. This script + will default YFLAGS to the empty string to avoid a default value of `-d' given +-- +cgit v1.0-41-gc330 +