Index: head/devel/autoconf/Makefile =================================================================== --- head/devel/autoconf/Makefile (revision 506871) +++ head/devel/autoconf/Makefile (revision 506872) @@ -1,56 +1,56 @@ # Created by: ade@FreeBSD.org # $FreeBSD$ PORTNAME= autoconf PORTVERSION= 2.69 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= GNU MAINTAINER= tijl@FreeBSD.org COMMENT= Automatically configure source code on many Un*x platforms LICENSE= GPLv2+ GPLv3+ GFDL AUTOCONF_CONFIGURE_SCRIPT_EXCEPTION LICENSE_COMB= multi LICENSE_NAME_AUTOCONF_CONFIGURE_SCRIPT_EXCEPTION= AUTOCONF CONFIGURE SCRIPT EXCEPTION LICENSE_FILE_GPLv2+ = ${WRKSRC}/COPYING LICENSE_FILE_GPLv3+ = ${WRKSRC}/COPYINGv3 LICENSE_FILE_GFDL= ${WRKSRC}/doc/fdl.texi LICENSE_FILE_AUTOCONF_CONFIGURE_SCRIPT_EXCEPTION= ${WRKSRC}/COPYING.EXCEPTION LICENSE_PERMS_AUTOCONF_CONFIGURE_SCRIPT_EXCEPTION= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept BUILD_DEPENDS= gm4:devel/m4 \ help2man:misc/help2man RUN_DEPENDS= gm4:devel/m4 \ autoconf-wrapper:devel/autoconf-wrapper BUILD_VERSION= 2.69 PLIST_SUB= BUILD_VERSION=${BUILD_VERSION} USES= gmake makeinfo perl5 tar:xz INFO= autoconf GNU_CONFIGURE= yes CONFIGURE_ENV= M4=${LOCALBASE}/bin/gm4 AWK=${AWK} \ ac_cv_prog_TEST_EMACS=no CONFIGURE_ARGS= --program-suffix=-${BUILD_VERSION} --without-lispdir GENERIC_TOOLS= config.guess config.sub elisp-comp install-sh mdate-sh missing GENERIC_LINKS= autoconf autoheader autom4te autoreconf autoscan autoupdate \ ifnames post-patch: @(cd ${WRKSRC}/man && \ for file in *.[1x]; do \ ${REINPLACE_CMD} -E 's,([^-]auto)(conf|make|reconf|update|header|scan),\1\2-${BUILD_VERSION},g ; \ s,(config\.guess|config\.sub|ifnames),\1-${BUILD_VERSION},g' $$file ; \ done) @(cd ${WRKSRC}/doc && ${RM} *.info) @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \ 's|@PACKAGE@$$|@PACKAGE@-@VERSION@|' post-install: .for FILE in ${GENERIC_TOOLS} ${INSTALL_SCRIPT} ${WRKSRC}/build-aux/${FILE} ${STAGEDIR}${PREFIX}/share/autoconf-${BUILD_VERSION} .endfor .include Index: head/devel/autoconf/files/patch-bison =================================================================== --- head/devel/autoconf/files/patch-bison (nonexistent) +++ head/devel/autoconf/files/patch-bison (revision 506872) @@ -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 + Property changes on: head/devel/autoconf/files/patch-bison ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property