From owner-svn-ports-head@freebsd.org Sun Mar 7 22:10:39 2021 Return-Path: Delivered-To: svn-ports-head@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 93DFB5763F5; Sun, 7 Mar 2021 22:10:39 +0000 (UTC) (envelope-from sunpoet@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dtwdn6D2vz3tsK; Sun, 7 Mar 2021 22:10:37 +0000 (UTC) (envelope-from sunpoet@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 DB9C91DD38; Sun, 7 Mar 2021 22:10:34 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 127MAYmQ027758; Sun, 7 Mar 2021 22:10:34 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 127MAYHf027754; Sun, 7 Mar 2021 22:10:34 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <202103072210.127MAYHf027754@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sun, 7 Mar 2021 22:10:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r567613 - in head/devel/bison: . files X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/devel/bison: . files X-SVN-Commit-Revision: 567613 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Mar 2021 22:10:40 -0000 Author: sunpoet Date: Sun Mar 7 22:10:33 2021 New Revision: 567613 URL: https://svnweb.freebsd.org/changeset/ports/567613 Log: Convert REINPLACE_CMD to patch files Added: head/devel/bison/files/ head/devel/bison/files/patch-Makefile.in (contents, props changed) head/devel/bison/files/patch-lib-_Noreturn.h (contents, props changed) head/devel/bison/files/patch-lib-config.in.h (contents, props changed) Modified: head/devel/bison/Makefile Modified: head/devel/bison/Makefile ============================================================================== --- head/devel/bison/Makefile Sun Mar 7 22:10:26 2021 (r567612) +++ head/devel/bison/Makefile Sun Mar 7 22:10:33 2021 (r567613) @@ -35,8 +35,4 @@ NLS_BUILD_DEPENDS= libtextstyle>=0.21:devel/libtextsty NLS_LIB_DEPENDS= libtextstyle.so:devel/libtextstyle NLS_USES= gettext -post-patch: - @${REINPLACE_CMD} -e 's|$$(docdir)\(/examples\)|$$(datarootdir)\1/bison|' ${WRKSRC}/Makefile.in - @${GREP} -l '_Noreturn void' ${WRKSRC}/lib/*.[ch] | ${XARGS} -J % ${REINPLACE_CMD} -e 's|\(.*\) _Noreturn void|_Noreturn \1 void|' % - .include Added: head/devel/bison/files/patch-Makefile.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bison/files/patch-Makefile.in Sun Mar 7 22:10:33 2021 (r567613) @@ -0,0 +1,97 @@ +% sed -i .orig -e 's|$(docdir)/examples|$(datarootdir)/examples/bison|' Makefile.in + +--- Makefile.in.orig 2021-01-23 15:41:15 UTC ++++ Makefile.in +@@ -3123,11 +3123,11 @@ extexi = $(top_srcdir)/examples/extexi + extract = VERSION="$(VERSION)" $(PERL) $(extexi) $(EXTEXIFLAGS) $(doc) -- + extracted = $(mfcalc_extracted) $(rpcalc_extracted) \ + $(calcxx_extracted) $(simple_extracted) +-examplesdir = $(docdir)/examples ++examplesdir = $(datarootdir)/examples/bison + dist_examples_DATA = examples/README.md +-cdir = $(docdir)/examples/c ++cdir = $(datarootdir)/examples/bison/c + dist_c_DATA = examples/c/README.md +-bistromathicdir = $(docdir)/examples/c/bistromathic ++bistromathicdir = $(datarootdir)/examples/bison/c/bistromathic + @ENABLE_BISTROMATHIC_TRUE@nodist_examples_c_bistromathic_bistromathic_SOURCES = examples/c/bistromathic/parse.y + @ENABLE_BISTROMATHIC_TRUE@examples_c_bistromathic_bistromathic_CPPFLAGS = \ + @ENABLE_BISTROMATHIC_TRUE@ -DBISON_LOCALEDIR='"$(localdir)"' \ +@@ -3137,14 +3137,14 @@ bistromathicdir = $(docdir)/examples/c/bistromathic + @ENABLE_BISTROMATHIC_TRUE@examples_c_bistromathic_bistromathic_CFLAGS = $(TEST_CFLAGS) + @ENABLE_BISTROMATHIC_TRUE@examples_c_bistromathic_bistromathic_LDADD = -lm $(LIBREADLINE) $(LIBINTL) + dist_bistromathic_DATA = examples/c/bistromathic/parse.y examples/c/bistromathic/Makefile examples/c/bistromathic/README.md +-calcdir = $(docdir)/examples/c/calc ++calcdir = $(datarootdir)/examples/bison/c/calc + nodist_examples_c_calc_calc_SOURCES = examples/c/calc/calc.y + + # Don't use gnulib's system headers. + examples_c_calc_calc_CPPFLAGS = -I$(top_srcdir)/examples/c/calc -I$(top_builddir)/examples/c/calc + examples_c_calc_calc_CFLAGS = $(TEST_CFLAGS) + dist_calc_DATA = examples/c/calc/calc.y examples/c/calc/Makefile examples/c/calc/README.md +-lexcalcdir = $(docdir)/examples/c/lexcalc ++lexcalcdir = $(datarootdir)/examples/bison/c/lexcalc + @FLEX_WORKS_TRUE@nodist_examples_c_lexcalc_lexcalc_SOURCES = examples/c/lexcalc/parse.y examples/c/lexcalc/parse.h examples/c/lexcalc/scan.l + @FLEX_WORKS_TRUE@examples_c_lexcalc_lexcalc_CPPFLAGS = -I$(top_srcdir)/examples/c/lexcalc -I$(top_builddir)/examples/c/lexcalc + dist_lexcalc_DATA = examples/c/lexcalc/parse.y examples/c/lexcalc/scan.l examples/c/lexcalc/Makefile examples/c/lexcalc/README.md +@@ -3155,17 +3155,17 @@ nodist_examples_c_mfcalc_mfcalc_SOURCES = $(mfcalc_sou + examples_c_mfcalc_mfcalc_CPPFLAGS = -I$(top_srcdir)/examples/c/mfcalc -I$(top_builddir)/examples/c/mfcalc + examples_c_mfcalc_mfcalc_CFLAGS = $(TEST_CFLAGS) + examples_c_mfcalc_mfcalc_LDADD = -lm +-mfcalcdir = $(docdir)/examples/c/mfcalc ++mfcalcdir = $(datarootdir)/examples/bison/c/mfcalc + mfcalc_DATA = $(mfcalc_extracted) + dist_mfcalc_DATA = examples/c/mfcalc/Makefile +-pushcalcdir = $(docdir)/examples/c/pushcalc ++pushcalcdir = $(datarootdir)/examples/bison/c/pushcalc + nodist_examples_c_pushcalc_calc_SOURCES = examples/c/pushcalc/calc.y + + # Don't use gnulib's system headers. + examples_c_pushcalc_calc_CPPFLAGS = -I$(top_srcdir)/examples/c/pushcalc -I$(top_builddir)/examples/c/pushcalc + examples_c_pushcalc_calc_CFLAGS = $(TEST_CFLAGS) + dist_pushcalc_DATA = examples/c/pushcalc/calc.y examples/c/pushcalc/Makefile examples/c/pushcalc/README.md +-reccalcdir = $(docdir)/examples/c/reccalc ++reccalcdir = $(datarootdir)/examples/bison/c/reccalc + @FLEX_WORKS_TRUE@nodist_examples_c_reccalc_reccalc_SOURCES = examples/c/reccalc/parse.y examples/c/reccalc/scan.h examples/c/reccalc/scan.c + @FLEX_WORKS_TRUE@examples_c_reccalc_reccalc_CPPFLAGS = -I$(top_srcdir)/examples/c/reccalc -I$(top_builddir)/examples/c/reccalc + +@@ -3182,10 +3182,10 @@ nodist_examples_c_rpcalc_rpcalc_SOURCES = $(rpcalc_sou + examples_c_rpcalc_rpcalc_CPPFLAGS = -I$(top_builddir)/examples/c/rpcalc + examples_c_rpcalc_rpcalc_CFLAGS = $(TEST_CFLAGS) + examples_c_rpcalc_rpcalc_LDADD = -lm +-rpcalcdir = $(docdir)/examples/c/rpcalc ++rpcalcdir = $(datarootdir)/examples/bison/c/rpcalc + rpcalc_DATA = $(rpcalc_extracted) + dist_rpcalc_DATA = examples/c/rpcalc/Makefile +-cxxdir = $(docdir)/examples/c++ ++cxxdir = $(datarootdir)/examples/bison/c++ + calcxx_sources_extracted = \ + examples/c++/calc++/driver.cc \ + examples/c++/calc++/driver.hh \ +@@ -3208,7 +3208,7 @@ calcxx_sources = \ + @ENABLE_CXX_TRUE@@FLEX_CXX_WORKS_TRUE@nodist_examples_c___calc___calc___SOURCES = $(calcxx_sources) + @ENABLE_CXX_TRUE@@FLEX_CXX_WORKS_TRUE@examples_c___calc___calc___CPPFLAGS = -I$(top_srcdir)/examples/c++/calc++ -I$(top_builddir)/examples/c++/calc++ + @ENABLE_CXX_TRUE@@FLEX_CXX_WORKS_TRUE@examples_c___calc___calc___CXXFLAGS = $(AM_CXXFLAGS) $(FLEX_SCANNER_CXXFLAGS) +-calcxxdir = $(docdir)/examples/c++/calc++ ++calcxxdir = $(datarootdir)/examples/bison/c++/calc++ + calcxx_DATA = $(calcxx_extracted) + dist_calcxx_DATA = examples/c++/calc++/README.md examples/c++/calc++/Makefile + cxx_DATA = $(simple_extracted) +@@ -3223,13 +3223,13 @@ simple_sources = $(simple_extracted) + @ENABLE_CXX11_TRUE@examples_c___variant_11_CXXFLAGS = $(CXX11_CXXFLAGS) $(WARN_CXXFLAGS_TEST) + @ENABLE_CXX11_TRUE@examples_c___variant_11_CPPFLAGS = -I$(top_builddir) + dist_cxx_DATA = examples/c++/README.md examples/c++/Makefile examples/c++/variant.yy examples/c++/variant-11.yy +-ddir = $(docdir)/examples/d ++ddir = $(datarootdir)/examples/bison/d + dist_d_DATA = examples/d/calc.y examples/d/Makefile examples/d/README.md +-javadir = $(docdir)/examples/java ++javadir = $(datarootdir)/examples/bison/java + dist_java_DATA = examples/java/README.md +-java_calcdir = $(docdir)/examples/java/calc ++java_calcdir = $(datarootdir)/examples/bison/java/calc + dist_java_calc_DATA = examples/java/calc/Calc.y examples/java/calc/Makefile +-java_simpledir = $(docdir)/examples/java/simple ++java_simpledir = $(datarootdir)/examples/bison/java/simple + dist_java_simple_DATA = examples/java/simple/Calc.y examples/java/simple/Makefile + + # Non-gnulib sources in Bison's internal library. Added: head/devel/bison/files/patch-lib-_Noreturn.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bison/files/patch-lib-_Noreturn.h Sun Mar 7 22:10:33 2021 (r567613) @@ -0,0 +1,11 @@ +--- lib/_Noreturn.h.orig 2021-01-23 08:31:48 UTC ++++ lib/_Noreturn.h +@@ -20,7 +20,7 @@ + || (defined _MSC_VER && 1900 <= _MSC_VER)) \ + && 0) + /* [[noreturn]] is not practically usable, because with it the syntax +- extern _Noreturn void func (...); ++ _Noreturn extern void func (...); + would not be valid; such a declaration would only be valid with 'extern' + and '_Noreturn' swapped, or without the 'extern' keyword. However, some + AIX system header files and several gnulib header files use precisely Added: head/devel/bison/files/patch-lib-config.in.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/bison/files/patch-lib-config.in.h Sun Mar 7 22:10:33 2021 (r567613) @@ -0,0 +1,11 @@ +--- lib/config.in.h.orig 2021-01-23 14:24:00 UTC ++++ lib/config.in.h +@@ -1603,7 +1603,7 @@ + || (defined _MSC_VER && 1900 <= _MSC_VER)) \ + && 0) + /* [[noreturn]] is not practically usable, because with it the syntax +- extern _Noreturn void func (...); ++ _Noreturn extern void func (...); + would not be valid; such a declaration would only be valid with 'extern' + and '_Noreturn' swapped, or without the 'extern' keyword. However, some + AIX system header files and several gnulib header files use precisely