[gentoo-commits] repo/gentoo:master commit in: sys-devel/autoconf/, sys-devel/autoconf/files/

2022-11-17 Thread Sam James
commit: 541ccf270b9b9b5631072a654cd3add5ccd433e7
Author: Sam James  gentoo  org>
AuthorDate: Fri Nov 18 01:01:13 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Nov 18 01:02:05 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=541ccf27

sys-devel/autoconf: backport further Clang 16 fixes (2.69)

It turns out we had some of these fixes already in our 2.69 from
previous backporting work which ended up catching stuff which wasn't actually
applied upstream yet, so the patch change here is much smaller than for 2.71.

Bug: https://bugs.gentoo.org/870412
Signed-off-by: Sam James  gentoo.org>

 ...conf-2.69-r7.ebuild => autoconf-2.69-r8.ebuild} |  0
 .../files/autoconf-2.69-K-R-decls-clang.patch  | 29 ++
 2 files changed, 29 insertions(+)

diff --git a/sys-devel/autoconf/autoconf-2.69-r7.ebuild 
b/sys-devel/autoconf/autoconf-2.69-r8.ebuild
similarity index 100%
rename from sys-devel/autoconf/autoconf-2.69-r7.ebuild
rename to sys-devel/autoconf/autoconf-2.69-r8.ebuild

diff --git a/sys-devel/autoconf/files/autoconf-2.69-K-R-decls-clang.patch 
b/sys-devel/autoconf/files/autoconf-2.69-K-R-decls-clang.patch
index 9f16bc93adba..77444ebc5be6 100644
--- a/sys-devel/autoconf/files/autoconf-2.69-K-R-decls-clang.patch
+++ b/sys-devel/autoconf/files/autoconf-2.69-K-R-decls-clang.patch
@@ -1,5 +1,6 @@
 https://bugs.gentoo.org/870412
 
https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=8b5e2016c7ed2d67f31b03a3d2e361858ff5299b
+(and contains a backport of 
https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=bf5a75953b6d504f0405b1ca33b039b8dd39eef4)
 
 Backport the K&R decls fix to 2.69 to avoid configure tests
 failing (often "silently", i.e. doesn't fail the build of
@@ -363,3 +364,31 @@ Subject: [PATCH] backport K&R decl fixes
   #define mymacro1(arg) arg
   #define mymacro2]])
# The difference in space-before-open-paren is intentional.
+--- a/lib/autoconf/c.m4
 b/lib/autoconf/c.m4
+@@ -1106,9 +1106,7 @@ struct stat;
+ /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
+ struct buf { int x; };
+ FILE * (*rcsopen) (struct buf *, struct stat *, int);
+-static char *e (p, i)
+- char **p;
+- int i;
++static char *e (char **p, int i)
+ {
+   return p[i];
+ }
+--- a/lib/autoconf/specific.m4
 b/lib/autoconf/specific.m4
+@@ -251,10 +251,9 @@ AC_INCLUDES_DEFAULT
+ /* Some platforms explicitly require an extern "C" signal handler
+when using C++. */
+ #ifdef __cplusplus
+-extern "C" void ucatch (int dummy) { }
+-#else
+-void ucatch (dummy) int dummy; { }
++extern "C"
+ #endif
++void ucatch (int dummy) { }
+ 
+ int
+ main (void)



[gentoo-commits] repo/gentoo:master commit in: sys-devel/autoconf/, sys-devel/autoconf/files/

2022-11-17 Thread Sam James
commit: cc030538dc51e0bccceea9372bfab68cda588b8c
Author: Sam James  gentoo  org>
AuthorDate: Fri Nov 18 00:55:29 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Nov 18 01:02:04 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc030538

sys-devel/autoconf: backport further Clang 16 fixes (2.71)

Bug: https://bugs.gentoo.org/870412
Signed-off-by: Sam James  gentoo.org>

 ...conf-2.71-r4.ebuild => autoconf-2.71-r5.ebuild} |  1 +
 .../files/autoconf-2.13-K-R-decls-clang.patch  |  2 +-
 .../files/autoconf-2.71-K-R-decls-clang-deux.patch | 94 ++
 .../files/autoconf-2.71-K-R-decls-clang.patch  |  2 +-
 4 files changed, 97 insertions(+), 2 deletions(-)

diff --git a/sys-devel/autoconf/autoconf-2.71-r4.ebuild 
b/sys-devel/autoconf/autoconf-2.71-r5.ebuild
similarity index 98%
rename from sys-devel/autoconf/autoconf-2.71-r4.ebuild
rename to sys-devel/autoconf/autoconf-2.71-r5.ebuild
index 225cfc50a50f..3ecf3ddc5979 100644
--- a/sys-devel/autoconf/autoconf-2.71-r4.ebuild
+++ b/sys-devel/autoconf/autoconf-2.71-r5.ebuild
@@ -47,6 +47,7 @@ PATCHES=(
"${FILESDIR}"/${P}-AC_C_BIGENDIAN-lto.patch
"${FILESDIR}"/${P}-K-R-decls-clang.patch
"${FILESDIR}"/${P}-make-4.4.patch
+   "${FILESDIR}"/${P}-K-R-decls-clang-deux.patch
 )
 
 src_prepare() {

diff --git a/sys-devel/autoconf/files/autoconf-2.13-K-R-decls-clang.patch 
b/sys-devel/autoconf/files/autoconf-2.13-K-R-decls-clang.patch
index 874712cea102..42c3018aea8c 100644
--- a/sys-devel/autoconf/files/autoconf-2.13-K-R-decls-clang.patch
+++ b/sys-devel/autoconf/files/autoconf-2.13-K-R-decls-clang.patch
@@ -1,7 +1,7 @@
 https://bugs.gentoo.org/870412
 
https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=8b5e2016c7ed2d67f31b03a3d2e361858ff5299b
 
-Backport the K&R decls fix to 2.69 to avoid configure tests
+Backport the K&R decls fix to 2.13 to avoid configure tests
 failing (often "silently", i.e. doesn't fail the build of
 the package overall, just leads to wrong results) with
 newer compilers like the upcoming Clang 16.

diff --git a/sys-devel/autoconf/files/autoconf-2.71-K-R-decls-clang-deux.patch 
b/sys-devel/autoconf/files/autoconf-2.71-K-R-decls-clang-deux.patch
new file mode 100644
index ..6a3d6580a3f6
--- /dev/null
+++ b/sys-devel/autoconf/files/autoconf-2.71-K-R-decls-clang-deux.patch
@@ -0,0 +1,94 @@
+https://bugs.gentoo.org/870412
+https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=bf5a75953b6d504f0405b1ca33b039b8dd39eef4
+
+Backport the K&R decls fix to 2.71 to avoid configure tests
+failing (often "silently", i.e. doesn't fail the build of
+the package overall, just leads to wrong results) with
+newer compilers like the upcoming Clang 16.
+
+From bf5a75953b6d504f0405b1ca33b039b8dd39eef4 Mon Sep 17 00:00:00 2001
+From: Zack Weinberg 
+Date: Thu, 10 Nov 2022 12:05:30 -0500
+Subject: More fixes for compilers that reject K&R function definitions.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This fixes all of the remaining failures exposed by running the
+testsuite with GCC 12 and
+CC='cc -Wimplicit-function-declaration -Wold-style-definition
+   -Wimplicit-int -Werror'
+.
+
+* lib/autoconf/c.m4 (_AC_C_C89_TEST_GLOBALS): Don’t use K&R function
+  definitions.
+* lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
+  (AC_FUNC_MKTIME): Declare functions taking no arguments as ‘fn (void)’
+  not ‘fn ()’.
+* lib/autoconf/c.m4 (_AC_C_C99_TEST_GLOBALS): Declare free().
+--- a/lib/autoconf/c.m4
 b/lib/autoconf/c.m4
+@@ -1153,9 +1153,7 @@ struct stat;
+ /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
+ struct buf { int x; };
+ struct buf * (*rcsopen) (struct buf *, struct stat *, int);
+-static char *e (p, i)
+- char **p;
+- int i;
++static char *e (char **p, int i)
+ {
+   return p[i];
+ }
+@@ -1212,6 +1210,7 @@ extern int puts (const char *);
+ extern int printf (const char *, ...);
+ extern int dprintf (int, const char *, ...);
+ extern void *malloc (size_t);
++extern void free (void *);
+ 
+ // Check varargs macros.  These examples are taken from C99 6.10.3.5.
+ // dprintf is used instead of fprintf to avoid needing to declare
+--- a/lib/autoconf/functions.m4
 b/lib/autoconf/functions.m4
+@@ -1091,7 +1091,7 @@ static const char *tz_strings[] = {
+ /* Return 0 if mktime fails to convert a date in the spring-forward gap.
+Based on a problem report from Andreas Jaeger.  */
+ static int
+-spring_forward_gap ()
++spring_forward_gap (void)
+ {
+   /* glibc (up to about 1998-10-07) failed this test. */
+   struct tm tm;
+@@ -1128,7 +1128,7 @@ mktime_test (time_t now)
+ }
+ 
+ static int
+-irix_6_4_bug ()
++irix_6_4_bug (void)
+ {
+   /* Based on code from Ariel Faigon.  */
+   struct tm tm;
+@@ -1170,7 +1170,7 @@ bigtime_test (int j)
+ }
+ 
+ static int
+-year_2050_test ()
++year_2050_test (void)
+ {
+   /* The correct answer for 2050-02-01 00:

[gentoo-commits] repo/gentoo:master commit in: sys-devel/autoconf/, sys-devel/autoconf/files/

2022-11-02 Thread Sam James
commit: c305a45884a8f01838d6e032f469d7f9423154e1
Author: Sam James  gentoo  org>
AuthorDate: Thu Nov  3 01:21:36 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Nov  3 01:23:35 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c305a458

sys-devel/autoconf: further Clang 16 patches for autoconf 2.13

Reported by matsl when building XEmacs 21.4 (21.5 - which is WIP - works
with newer autoconf).

A bunch of the built-in/provided tests from autoconf 2.13 suffered
from -Wimplicit-int or -Wimplicit-function-declaration. We also
disable the {get,set}pgrp tests (see the patch for details, but
the gist is they're unfixable without some substantial effort
on POSIX systems nowadays and there's no need anyway -- they're
gone in newer autoconf and we never expect them to fail.)

Bug: https://bugs.gentoo.org/874366
Reported-by: Mats Lidell  gentoo.org>
Signed-off-by: Sam James  gentoo.org>

 ...conf-2.13-r3.ebuild => autoconf-2.13-r4.ebuild} |   1 +
 ...onf-2.13-Clang-16-fixes-for-various-tests.patch | 243 +
 2 files changed, 244 insertions(+)

diff --git a/sys-devel/autoconf/autoconf-2.13-r3.ebuild 
b/sys-devel/autoconf/autoconf-2.13-r4.ebuild
similarity index 96%
rename from sys-devel/autoconf/autoconf-2.13-r3.ebuild
rename to sys-devel/autoconf/autoconf-2.13-r4.ebuild
index 45a43a49c6f8..3593b3e30269 100644
--- a/sys-devel/autoconf/autoconf-2.13-r3.ebuild
+++ b/sys-devel/autoconf/autoconf-2.13-r4.ebuild
@@ -32,6 +32,7 @@ PATCHES=(
"${FILESDIR}"/${P}-test-fixes.patch #146592
"${FILESDIR}"/${P}-perl-5.26.patch
"${FILESDIR}"/${P}-K-R-decls-clang.patch
+   "${FILESDIR}"/${P}-Clang-16-fixes-for-various-tests.patch
 )
 
 src_configure() {

diff --git 
a/sys-devel/autoconf/files/autoconf-2.13-Clang-16-fixes-for-various-tests.patch 
b/sys-devel/autoconf/files/autoconf-2.13-Clang-16-fixes-for-various-tests.patch
new file mode 100644
index ..b9319f0a4b71
--- /dev/null
+++ 
b/sys-devel/autoconf/files/autoconf-2.13-Clang-16-fixes-for-various-tests.patch
@@ -0,0 +1,243 @@
+From de47e22d9b4f5fd5f1c9b9de798218a46ef94b98 Mon Sep 17 00:00:00 2001
+From: Sam James 
+Date: Thu, 3 Nov 2022 01:19:39 +
+Subject: [PATCH] Clang 16 fixes for various tests
+
+Fixes -Wimplicit-int and -Wimplicit-function-declaration
+issues in various built-in tests.
+
+Noticed when building XEmacs 21.4 (thanks to matsl for reporting).
+
+Signed-off-by: Sam James 
+--- a/acgeneral.m4
 b/acgeneral.m4
+@@ -1988,6 +1988,7 @@ changequote([, ])dnl
+ AC_MSG_CHECKING(size of $1)
+ AC_CACHE_VAL(AC_CV_NAME,
+ [AC_TRY_RUN([#include 
++#include 
+ main(void)
+ {
+   FILE *f=fopen("conftestval", "w");
+--- a/acspecific.m4
 b/acspecific.m4
+@@ -706,6 +706,7 @@ fi
+ if test $ac_cv_header_stdc = yes; then
+   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ AC_TRY_RUN([#include 
++#include 
+ #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+ #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+ #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+@@ -819,6 +820,7 @@ esac
+ 
+ AC_CACHE_CHECK(whether closedir returns void, ac_cv_func_closedir_void,
+ [AC_TRY_RUN([#include 
++#include 
+ #include <$ac_header_dirent>
+ int closedir(...); int main(void) { exit(closedir(opendir(".")) != 0); }],
+   ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes, 
ac_cv_func_closedir_void=yes)])
+@@ -988,6 +990,7 @@ AC_DEFUN(AC_FUNC_CLOSEDIR_VOID,
+ [AC_REQUIRE([AC_HEADER_DIRENT])dnl
+ AC_CACHE_CHECK(whether closedir returns void, ac_cv_func_closedir_void,
+ [AC_TRY_RUN([#include 
++#include 
+ #include <$ac_header_dirent>
+ int closedir(...); int main(void) { exit(closedir(opendir(".")) != 0); }],
+   ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes, 
ac_cv_func_closedir_void=yes)])
+@@ -1038,6 +1041,7 @@ AC_CACHE_CHECK(for working mmap, 
ac_cv_func_mmap_fixed_mapped,
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ /* This mess was copied from the GNU getpagesize.h.  */
+ #ifndef HAVE_GETPAGESIZE
+@@ -1165,49 +1169,17 @@ AC_DEFUN(AC_FUNC_GETPGRP,
+  *
+  * Snarfed from Chet Ramey's bash pgrp.c test program
+  */
+-#include 
+-#include 
+-
+-int pid;
+-int pg1, pg2, pg3, pg4;
+-int ng, np, s, child;
++#include 
+ 
+ int main(void)
+ {
+-pid = getpid();
+-pg1 = getpgrp(0);
+-pg2 = getpgrp();
+-pg3 = getpgrp(pid);
+-pg4 = getpgrp(1);
+-
+-/*
+- * If all of these values are the same, it's pretty sure that
+- * we're on a system that ignores getpgrp's first argument.
+- */
+-if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
+-exit(0);
+-
+-child = fork();
+-if (child < 0)
+-exit(1);
+-else if (child == 0) {
+-np = getpid();
+-/*
+- * If this is Sys V, this will not work; pgrp will be
+- * set to np because setpgrp just changes a p

[gentoo-commits] repo/gentoo:master commit in: sys-devel/autoconf/, sys-devel/autoconf/files/

2022-09-19 Thread Sam James
commit: dbcc188c5ef6bc63190cc07c93452652c682f5bb
Author: Sam James  gentoo  org>
AuthorDate: Mon Sep 19 16:10:24 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Sep 19 16:26:41 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbcc188c

sys-devel/autoconf: backport K&R decls fix to 2.13

Backport the K&R decls fix to 2.13 to avoid configure tests
failing (often "silently", i.e. doesn't fail the build of
the package overall, just leads to wrong results) with
newer compilers like the upcoming Clang 16.

A consequence of this whole fuss is that we're going to
have to eautoreconf in a bunch of older packages, but
as Ionen pointed out on IRC, this means we get some
other stuff for free like Python 3.10 fixes, so it's
not all bad.

Undecided how to handle any packages with a generated
configure from autoconfs not in tree. We may just
patch the configure manually. Will see.

See linked bug 870412 and the Discourse thread therein for
details if unfamiliar.

As I remarked on IRC, it's unfortunate to have to backport anything
which will then infect generated configure, as it's somewhat
a repeat of the --runstatedir situation, and it leads to confusion/hassle
when sending patches upstream where a generated/bootstrapped configure
is required.

But this is different - it's a (serious) bug being fixed
rather than a gratuitous (although) understandable given we weren't
sure if we'd ever see another autoconf release backport of a new
feature.

Bug: https://bugs.gentoo.org/806376
Bug: https://bugs.gentoo.org/870412
Thanks-to: Arsen Arsenovic  aarsen.me>
Signed-off-by: Sam James  gentoo.org>

 sys-devel/autoconf/autoconf-2.13-r3.ebuild |  51 +++
 .../files/autoconf-2.13-K-R-decls-clang.patch  | 346 +
 2 files changed, 397 insertions(+)

diff --git a/sys-devel/autoconf/autoconf-2.13-r3.ebuild 
b/sys-devel/autoconf/autoconf-2.13-r3.ebuild
new file mode 100644
index ..89c4e8c53c6d
--- /dev/null
+++ b/sys-devel/autoconf/autoconf-2.13-r3.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-autoconf
+
+DESCRIPTION="Used to create autoconfiguration files"
+HOMEPAGE="https://www.gnu.org/software/autoconf/autoconf.html";
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="${PV:0:3}"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~sparc-solaris ~x64-solaris ~x86-solaris"
+
+BDEPEND="
+   sys-devel/m4
+   dev-lang/perl"
+RDEPEND="${BDEPEND}
+   sys-apps/texinfo
+   >=sys-devel/autoconf-wrapper-13"
+
+PATCHES=(
+   "${FILESDIR}"/${P}-gentoo.patch
+   "${FILESDIR}"/${P}-destdir.patch
+   "${FILESDIR}"/${P}-test-fixes.patch #146592
+   "${FILESDIR}"/${P}-perl-5.26.patch
+   "${FILESDIR}"/${P}-K-R-decls-clang.patch
+)
+
+src_configure() {
+   # make sure configure is newer than configure.in
+   touch configure || die
+
+   # need to include --exec-prefix and --bindir or our
+   # DESTDIR patch will trigger sandbox hate :(
+   #
+   # need to force locale to C to avoid bugs in the old
+   # configure script breaking the install paths #351982
+   #
+   # force to `awk` so that we don't encode another awk that
+   # happens to currently be installed, but might later be
+   # uninstalled (like mawk).  same for m4.
+   ac_cv_path_M4="m4" \
+   ac_cv_prog_AWK="awk" \
+   LC_ALL=C \
+   econf \
+   --exec-prefix="${EPREFIX}"/usr \
+   --bindir="${EPREFIX}"/usr/bin \
+   --program-suffix="-${PV}"
+}

diff --git a/sys-devel/autoconf/files/autoconf-2.13-K-R-decls-clang.patch 
b/sys-devel/autoconf/files/autoconf-2.13-K-R-decls-clang.patch
new file mode 100644
index ..874712cea102
--- /dev/null
+++ b/sys-devel/autoconf/files/autoconf-2.13-K-R-decls-clang.patch
@@ -0,0 +1,346 @@
+https://bugs.gentoo.org/870412
+https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=8b5e2016c7ed2d67f31b03a3d2e361858ff5299b
+
+Backport the K&R decls fix to 2.69 to avoid configure tests
+failing (often "silently", i.e. doesn't fail the build of
+the package overall, just leads to wrong results) with
+newer compilers like the upcoming Clang 16.
+
+From d8ad1096be4352c588b9bc1e16b6758f4f32b96a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= 
+Date: Mon, 19 Sep 2022 01:38:29 +0200
+Subject: [PATCH] ac{general,specific}: declare void param lists, where apt
+
+--- a/acgeneral.m4
 b/acgeneral.m4
+@@ -1542,7 +1542,7 @@ extern "C"
+ ])dnl
+ [/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply.  */
+-char $1();
++char $1(void);
+ ]),
+ [$1()],
+ [$2],
+@@ -1597,7 +1597,7 @@ extern "C"
+ ])dnl
+ [/* We use char because in

[gentoo-commits] repo/gentoo:master commit in: sys-devel/autoconf/, sys-devel/autoconf/files/

2022-09-09 Thread Sam James
commit: 54055f7d61bcc77b6c0dae8dd73d7cc6c38ffee0
Author: Sam James  gentoo  org>
AuthorDate: Sat Sep 10 00:22:33 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Sep 10 00:22:41 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54055f7d

sys-devel/autoconf: fix build with make- (4.4)

Closes: https://bugs.gentoo.org/869257
Signed-off-by: Sam James  gentoo.org>

 sys-devel/autoconf/autoconf-2.71-r2.ebuild | 84 ++
 .../autoconf/files/autoconf-2.71-make-4.4.patch| 25 +++
 2 files changed, 109 insertions(+)

diff --git a/sys-devel/autoconf/autoconf-2.71-r2.ebuild 
b/sys-devel/autoconf/autoconf-2.71-r2.ebuild
new file mode 100644
index ..aa7f260aed6d
--- /dev/null
+++ b/sys-devel/autoconf/autoconf-2.71-r2.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+if [[ ${PV} ==  ]] ; then
+   EGIT_REPO_URI="https://git.savannah.gnu.org/git/autoconf.git";
+   inherit git-r3
+else
+   # For _beta handling replace with real version number
+   MY_PV="${PV}"
+   MY_P="${PN}-${MY_PV}"
+   #PATCH_TARBALL_NAME="${PN}-2.70-patches-01"
+   SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.xz
+   https://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz";
+   #SRC_URI+=" 
https://dev.gentoo.org/~polynomial-c/${PATCH_TARBALL_NAME}.tar.xz";
+
+   if ! [[ ${PV} == *_beta* ]] ; then
+   KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k 
~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux 
~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+   fi
+   S="${WORKDIR}"/${MY_P}
+fi
+
+inherit toolchain-autoconf
+
+DESCRIPTION="Used to create autoconfiguration files"
+HOMEPAGE="https://www.gnu.org/software/autoconf/autoconf.html";
+
+LICENSE="GPL-3"
+SLOT="${PV/_*}"
+IUSE="emacs"
+
+# for 2.71, our Perl time resolution patch changes our min Perl from 5.6
+# (vanilla upstream for 2.71) to 5.8.
+BDEPEND=">=sys-devel/m4-1.4.16
+   >=dev-lang/perl-5.8"
+RDEPEND="${BDEPEND}
+   >=sys-devel/autoconf-wrapper-15
+   sys-devel/gnuconfig
+   !~sys-devel/${P}:2.5"
+[[ ${PV} ==  ]] && BDEPEND+=" >=sys-apps/texinfo-4.3"
+PDEPEND="emacs? ( app-emacs/autoconf-mode )"
+
+PATCHES=(
+   "${FILESDIR}"/${P}-time.patch
+   "${FILESDIR}"/${P}-make-4.4.patch
+)
+
+src_prepare() {
+   # usr/bin/libtool is provided by binutils-apple, need gnu libtool
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   PATCHES+=( "${FILESDIR}"/${PN}-2.71-darwin.patch )
+   fi
+
+   # Save timestamp to avoid later makeinfo call
+   touch -r doc/{,old_}autoconf.texi || die
+
+   local pdir
+   for pdir in "${WORKDIR}"/{upstream_,}patches ; do
+   if [[ -d "${pdir}" ]] ; then
+   eapply ${pdir}
+   fi
+   done
+
+   toolchain-autoconf_src_prepare
+
+   # Restore timestamp to avoid makeinfo call
+   # We already have an up to date autoconf.info page at this point.
+   touch -r doc/{old_,}autoconf.texi || die
+}
+
+src_test() {
+   emake check
+}
+
+src_install() {
+   toolchain-autoconf_src_install
+
+   local f
+   for f in config.{guess,sub} ; do
+   ln -fs ../../gnuconfig/${f} \
+   "${ED}"/usr/share/autoconf-*/build-aux/${f} || die
+   done
+}

diff --git a/sys-devel/autoconf/files/autoconf-2.71-make-4.4.patch 
b/sys-devel/autoconf/files/autoconf-2.71-make-4.4.patch
new file mode 100644
index ..4dcf05996180
--- /dev/null
+++ b/sys-devel/autoconf/files/autoconf-2.71-make-4.4.patch
@@ -0,0 +1,25 @@
+https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=31f673434ee402258b45e958c88acc8725d82b1a
+https://savannah.gnu.org/bugs/?63040
+https://bugs.gentoo.org/869257
+
+From 31f673434ee402258b45e958c88acc8725d82b1a Mon Sep 17 00:00:00 2001
+From: Paul Eggert 
+Date: Fri, 9 Sep 2022 16:54:11 -0500
+Subject: Port to GNU make 4.4
+
+* cfg.mk (PATH): Assign eagerly, and simplify shell use, avoiding
+use of the shell entirely if PWD is set, as it should be.
+Problem reported by Sergei Trofimovich in:
+https://lists.gnu.org/r/autoconf-patches/2022-09/msg7.html
+--- a/cfg.mk
 b/cfg.mk
+@@ -18,7 +18,7 @@
+ # This file is '-include'd into GNUmakefile.
+ 
+ # Build with our own versions of these tools, when possible.
+-export PATH = $(shell echo "`pwd`/tests:$$PATH")
++export PATH := $(or $(PWD),$(shell pwd))/tests:$(PATH)
+ 
+ # Remove the autoreconf-provided INSTALL, so that we regenerate it.
+ _autoreconf = autoreconf -i -v && rm -f INSTALL
+cgit v1.1



[gentoo-commits] repo/gentoo:master commit in: sys-devel/autoconf/, sys-devel/autoconf/files/

2021-08-01 Thread Andreas K. Hüttel
commit: a27bb196930c2b32f3f24956d902c2849d27d20b
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Sun Aug  1 19:44:14 2021 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Sun Aug  1 19:44:24 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a27bb196

sys-devel/autoconf: use Time::HiRes functions, bug 782985

While this solution is perfect for Gentoo, it may not be upstreamable
(since Time::HiRes was introduced in Perl 5.8 and autoconf upstream
insists on supporting Perl 5.6).

Bug: https://bugs.gentoo.org/782985
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Andreas K. Hüttel  gentoo.org>

 sys-devel/autoconf/autoconf-2.71.ebuild   |  2 +
 sys-devel/autoconf/files/autoconf-2.71-time.patch | 49 +++
 2 files changed, 51 insertions(+)

diff --git a/sys-devel/autoconf/autoconf-2.71.ebuild 
b/sys-devel/autoconf/autoconf-2.71.ebuild
index 3405416d23c..b142fa3470f 100644
--- a/sys-devel/autoconf/autoconf-2.71.ebuild
+++ b/sys-devel/autoconf/autoconf-2.71.ebuild
@@ -37,6 +37,8 @@ RDEPEND="${BDEPEND}
 [[ ${PV} == "" ]] && BDEPEND+=" >=sys-apps/texinfo-4.3"
 PDEPEND="emacs? ( app-emacs/autoconf-mode )"
 
+PATCHES=( "${FILESDIR}/${P}-time.patch" )
+
 src_prepare() {
# usr/bin/libtool is provided by binutils-apple, need gnu libtool
if [[ ${CHOST} == *-darwin* ]] ; then

diff --git a/sys-devel/autoconf/files/autoconf-2.71-time.patch 
b/sys-devel/autoconf/files/autoconf-2.71-time.patch
new file mode 100644
index 000..8ecfe10f40a
--- /dev/null
+++ b/sys-devel/autoconf/files/autoconf-2.71-time.patch
@@ -0,0 +1,49 @@
+From e194b3c7e00429612a9d40e78ea571687fd25b91 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= 
+Date: Sun, 1 Aug 2021 19:07:48 +0200
+Subject: [PATCH] Use stat from Time::HiRes (instead of File::stat)
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Andreas K. Hüttel 
+---
+ lib/Autom4te/FileUtils.pm | 9 +
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/lib/Autom4te/FileUtils.pm b/lib/Autom4te/FileUtils.pm
+index a182031b..27a5fd91 100644
+--- a/lib/Autom4te/FileUtils.pm
 b/lib/Autom4te/FileUtils.pm
+@@ -34,12 +34,12 @@ This perl module provides various general purpose file 
handling functions.
+ 
+ =cut
+ 
+-use 5.006;
++use 5.008;
+ use strict;
+ use warnings FATAL => 'all';
+ 
+ use Exporter;
+-use File::stat;
++use Time::HiRes qw(stat);
+ use IO::File;
+ 
+ use Autom4te::Channels;
+@@ -115,10 +115,11 @@ sub mtime ($)
+   return 0
+ if $file eq '-' || ! -f $file;
+ 
+-  my $stat = stat ($file)
++  my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
++$atime,$mtime,$ctime,$blksize,$blocks) = stat ($file)
+ or fatal "cannot stat $file: $!";
+ 
+-  return $stat->mtime;
++  return $mtime;
+ }
+ 
+ 
+-- 
+2.31.1
+



[gentoo-commits] repo/gentoo:master commit in: sys-devel/autoconf/, sys-devel/autoconf/files/

2021-03-13 Thread Aaron Bauman
commit: c2768b36696fbafe315ae1b3b8b4038dfc7dfc03
Author: Aaron Bauman  gentoo  org>
AuthorDate: Sat Mar 13 20:07:44 2021 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Sat Mar 13 20:07:44 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2768b36

sys-devel/autoconf: fix patch for Darwin

Signed-off-by: Aaron Bauman  gentoo.org>

 sys-devel/autoconf/autoconf-2.71.ebuild |  2 +-
 sys-devel/autoconf/files/autoconf-2.71-darwin.patch | 11 +++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/sys-devel/autoconf/autoconf-2.71.ebuild 
b/sys-devel/autoconf/autoconf-2.71.ebuild
index d6187f9fa30..86e89e45086 100644
--- a/sys-devel/autoconf/autoconf-2.71.ebuild
+++ b/sys-devel/autoconf/autoconf-2.71.ebuild
@@ -40,7 +40,7 @@ PDEPEND="emacs? ( app-emacs/autoconf-mode )"
 src_prepare() {
# usr/bin/libtool is provided by binutils-apple, need gnu libtool
if [[ ${CHOST} == *-darwin* ]] ; then
-   PATCHES+=( "${FILESDIR}"/${PN}-2.61-darwin.patch )
+   PATCHES+=( "${FILESDIR}"/${PN}-2.71-darwin.patch )
fi
 
# Save timestamp to avoid later makeinfo call

diff --git a/sys-devel/autoconf/files/autoconf-2.71-darwin.patch 
b/sys-devel/autoconf/files/autoconf-2.71-darwin.patch
new file mode 100644
index 000..c122aee4b22
--- /dev/null
+++ b/sys-devel/autoconf/files/autoconf-2.71-darwin.patch
@@ -0,0 +1,11 @@
+--- a/bin/autoreconf.in
 b/bin/autoreconf.in
+@@ -122,7 +122,7 @@
+ my $autom4te= $ENV{'AUTOM4TE'}|| '@bindir@/@autom4te-name@';
+ my $automake= $ENV{'AUTOMAKE'}|| 'automake';
+ my $aclocal = $ENV{'ACLOCAL'} || 'aclocal';
+-my $libtoolize  = $ENV{'LIBTOOLIZE'}  || 'libtoolize';
++my $libtoolize  = $ENV{'LIBTOOLIZE'}  || 'glibtoolize';
+ my $intltoolize = $ENV{'INTLTOOLIZE'} || 'intltoolize';
+ my $gtkdocize   = $ENV{'GTKDOCIZE'}   || 'gtkdocize';
+ my $autopoint   = $ENV{'AUTOPOINT'}   || 'autopoint';



[gentoo-commits] repo/gentoo:master commit in: sys-devel/autoconf/, sys-devel/autoconf/files/

2020-12-01 Thread Lars Wendler
commit: d52505d7ed450c7292d5528602e70a9bbb64ac0b
Author: Lars Wendler  gentoo  org>
AuthorDate: Tue Dec  1 17:16:23 2020 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Tue Dec  1 17:19:16 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d52505d7

sys-devel/autoconf: Bump to version 2.70_beta3. Removed old

This is called autoconf-2.69e by upstream

Bug: https://bugs.gentoo.org/732648
Package-Manager: Portage-3.0.11, Repoman-3.0.2
Signed-off-by: Lars Wendler  gentoo.org>

 sys-devel/autoconf/Manifest|   2 +-
 ..._beta3-r1.ebuild => autoconf-2.70_beta4.ebuild} |   7 +-
 ...onf-2.70_beta3-build-aux_avoid_autoreconf.patch | 272 -
 ...nf-2.70_beta3-build-aux_no_transform_name.patch |  55 -
 4 files changed, 2 insertions(+), 334 deletions(-)

diff --git a/sys-devel/autoconf/Manifest b/sys-devel/autoconf/Manifest
index 32abaa96df9..af16f06d7dd 100644
--- a/sys-devel/autoconf/Manifest
+++ b/sys-devel/autoconf/Manifest
@@ -2,4 +2,4 @@ DIST autoconf-2.13.tar.gz 443844 BLAKE2B 
ade10f9d4a0b1a0e8b752eee817cfe100d77b07
 DIST autoconf-2.64.tar.xz 1113892 BLAKE2B 
598873209a67725150cd4cf09c4b78b26b3d1782f259846da48dc8106a1d32ae2b24f3a864c3be0e9e8dc7d6b6ca8781b83ff33a691c88e68391d1ea861ccf23
 SHA512 
ee4b504447c14a59b849d0915e55a90522cfb071d1583af2bd3575e5a05d7bd290e55e0e9d0760c8f36043f926199fc2d962b559d27d2f95c70d0e147b4ad0a3
 DIST autoconf-2.69-runstatedir_patches.tar.xz 257096 BLAKE2B 
ae765e0ca7fe8261117f6f6b75611c232fc3d4016c22c86346afa72f2b7e6c3b7ccc1f9dfe134b2443f8bde6d578b503d79cf88472f76ce75b6c2e843ef55b8e
 SHA512 
55f93299fe5243151f6bb782986a7935270f06d5065929f4d365a37aba05703e3ce66ecf7981d30413db50ee6b4f77d81d10a71b539c8a366c5c5a156c5443da
 DIST autoconf-2.69.tar.xz 1214744 BLAKE2B 
71d33d72a06e9a05fbed0eda73bc9d8a3805c7c90bf082959862f93f3c5f01192114176e84d84ecb58fa99512eafbc0ab21ad1407be18c8c63bb3dc1117c482d
 SHA512 
995d3e5a8eb1eb37e2b7fae53c6ec7a9b4df997286b7d643344818f94636756b1bf5ff5ea9155e755cb9461149a853dfbf2886fc6bd7132e5afa9c168e306e9b
-DIST autoconf-2.70_beta3.tar.xz 1321512 BLAKE2B 
92dca4fbd6c247a3b3383289e1a2d6c127f5a333969b8a7051f98adfbe080e702c90b3001dde4759a84c89d5e7ccd7991e509492533a8753fd299aaa46080f1a
 SHA512 
d825d9ce7501f0dfa667ad220339a1668c9472f0601a0ec7dac109af994cacfc2ce49dd01c478a47c7c25f98ba3726c735f1e7002e7b4da71451799f742a2eb1
+DIST autoconf-2.70_beta4.tar.xz 1338832 BLAKE2B 
20c801e67d5aa811f0ae18dd0b5f90b843f017a584387a655541215e29f65b2c1e0145d3f436f9a9b9a5f5e35c94e52ed865e0db5b3b0c36c0e6f312e504b6e5
 SHA512 
e4de63c8be4736a3f864c75d3175b190067a543013935d1be1448060502c1f4c45258619dbf5d80ece96d8a0b5754a664ed084359234a427a3a08082ce12f1af

diff --git a/sys-devel/autoconf/autoconf-2.70_beta3-r1.ebuild 
b/sys-devel/autoconf/autoconf-2.70_beta4.ebuild
similarity index 91%
rename from sys-devel/autoconf/autoconf-2.70_beta3-r1.ebuild
rename to sys-devel/autoconf/autoconf-2.70_beta4.ebuild
index e4079a394a2..107821eaccb 100644
--- a/sys-devel/autoconf/autoconf-2.70_beta3-r1.ebuild
+++ b/sys-devel/autoconf/autoconf-2.70_beta4.ebuild
@@ -7,7 +7,7 @@ if [[ ${PV} == "" ]] ; then
EGIT_REPO_URI="https://git.savannah.gnu.org/git/autoconf.git";
inherit git-r3
 else
-   MY_PV="2.69d"
+   MY_PV="2.69e"
MY_P="${PN}-${MY_PV}"
SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.xz -> ${P}.tar.xz
https://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz -> 
${P}.tar.xz"
@@ -33,11 +33,6 @@ RDEPEND="${BDEPEND}
 [[ ${PV} == "" ]] && BDEPEND+=" >=sys-apps/texinfo-4.3"
 PDEPEND="emacs? ( app-emacs/autoconf-mode )"
 
-PATCHES=(
-   "${FILESDIR}/${P}-build-aux_no_transform_name.patch" #753023
-   "${FILESDIR}/${P}-build-aux_avoid_autoreconf.patch"
-)
-
 src_prepare() {
# usr/bin/libtool is provided by binutils-apple, need gnu libtool
if [[ ${CHOST} == *-darwin* ]] ; then

diff --git 
a/sys-devel/autoconf/files/autoconf-2.70_beta3-build-aux_avoid_autoreconf.patch 
b/sys-devel/autoconf/files/autoconf-2.70_beta3-build-aux_avoid_autoreconf.patch
deleted file mode 100644
index a884c503d16..000
--- 
a/sys-devel/autoconf/files/autoconf-2.70_beta3-build-aux_avoid_autoreconf.patch
+++ /dev/null
@@ -1,272 +0,0 @@
 autoconf-2.69d/Makefile.in
-+++ autoconf-2.69d/Makefile.in
-@@ -221,10 +221,10 @@
- am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-   $(ACLOCAL_M4)
- DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
--  $(am__configure_deps) $(dist_buildaux_SCRIPTS) \
--  $(srcdir)/doc/version.texi $(srcdir)/doc/stamp-vti \
--  $(dist_lisp_LISP) $(dist_autoconflib_DATA) \
--  $(dist_autotestlib_DATA) $(dist_m4sugarlib_DATA) \
-+  $(am__configure_deps) $(srcdir)/doc/version.texi \
-+  $(srcdir)/doc/stamp-vti $(dist_lisp_LISP) \
-+  $(dist_autoconflib_DATA) $(dist_autotestlib_DATA) \
-+  $(dist_buildaux_DATA) $(dist_m4sugarlib_DATA) \
-   $(dist_perllib_DATA) $(am__DIST_COMMON)
- 

[gentoo-commits] repo/gentoo:master commit in: sys-devel/autoconf/, sys-devel/autoconf/files/

2020-11-11 Thread Lars Wendler
commit: 03d4a0b32ace4d24233110f43966a6aaced57bd5
Author: Lars Wendler  gentoo  org>
AuthorDate: Wed Nov 11 16:22:19 2020 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Wed Nov 11 16:23:07 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03d4a0b3

sys-devel/autoconf: Revbump to avoid aux files versioning

Closes: https://bugs.gentoo.org/753023
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Lars Wendler  gentoo.org>

 ..._beta3.ebuild => autoconf-2.70_beta3-r1.ebuild} |   5 +
 ...onf-2.70_beta3-build-aux_avoid_autoreconf.patch | 272 +
 ...nf-2.70_beta3-build-aux_no_transform_name.patch |  55 +
 3 files changed, 332 insertions(+)

diff --git a/sys-devel/autoconf/autoconf-2.70_beta3.ebuild 
b/sys-devel/autoconf/autoconf-2.70_beta3-r1.ebuild
similarity index 92%
rename from sys-devel/autoconf/autoconf-2.70_beta3.ebuild
rename to sys-devel/autoconf/autoconf-2.70_beta3-r1.ebuild
index 5f71692aaf5..e4079a394a2 100644
--- a/sys-devel/autoconf/autoconf-2.70_beta3.ebuild
+++ b/sys-devel/autoconf/autoconf-2.70_beta3-r1.ebuild
@@ -33,6 +33,11 @@ RDEPEND="${BDEPEND}
 [[ ${PV} == "" ]] && BDEPEND+=" >=sys-apps/texinfo-4.3"
 PDEPEND="emacs? ( app-emacs/autoconf-mode )"
 
+PATCHES=(
+   "${FILESDIR}/${P}-build-aux_no_transform_name.patch" #753023
+   "${FILESDIR}/${P}-build-aux_avoid_autoreconf.patch"
+)
+
 src_prepare() {
# usr/bin/libtool is provided by binutils-apple, need gnu libtool
if [[ ${CHOST} == *-darwin* ]] ; then

diff --git 
a/sys-devel/autoconf/files/autoconf-2.70_beta3-build-aux_avoid_autoreconf.patch 
b/sys-devel/autoconf/files/autoconf-2.70_beta3-build-aux_avoid_autoreconf.patch
new file mode 100644
index 000..a884c503d16
--- /dev/null
+++ 
b/sys-devel/autoconf/files/autoconf-2.70_beta3-build-aux_avoid_autoreconf.patch
@@ -0,0 +1,272 @@
+--- autoconf-2.69d/Makefile.in
 autoconf-2.69d/Makefile.in
+@@ -221,10 +221,10 @@
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+   $(ACLOCAL_M4)
+ DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
+-  $(am__configure_deps) $(dist_buildaux_SCRIPTS) \
+-  $(srcdir)/doc/version.texi $(srcdir)/doc/stamp-vti \
+-  $(dist_lisp_LISP) $(dist_autoconflib_DATA) \
+-  $(dist_autotestlib_DATA) $(dist_m4sugarlib_DATA) \
++  $(am__configure_deps) $(srcdir)/doc/version.texi \
++  $(srcdir)/doc/stamp-vti $(dist_lisp_LISP) \
++  $(dist_autoconflib_DATA) $(dist_autotestlib_DATA) \
++  $(dist_buildaux_DATA) $(dist_m4sugarlib_DATA) \
+   $(dist_perllib_DATA) $(am__DIST_COMMON)
+ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+  configure.lineno config.status.lineno
+@@ -258,15 +258,15 @@
+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+  $(am__cd) "$$dir" && rm -f $$files; }; \
+   }
+-am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(buildauxdir)" \
+-  "$(DESTDIR)$(infodir)" "$(DESTDIR)$(lispdir)" \
+-  "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(autoconflibdir)" \
+-  "$(DESTDIR)$(autotestlibdir)" "$(DESTDIR)$(m4sugarlibdir)" \
++am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(infodir)" \
++  "$(DESTDIR)$(lispdir)" "$(DESTDIR)$(man1dir)" \
++  "$(DESTDIR)$(autoconflibdir)" "$(DESTDIR)$(autotestlibdir)" \
++  "$(DESTDIR)$(buildauxdir)" "$(DESTDIR)$(m4sugarlibdir)" \
+   "$(DESTDIR)$(perllibdir)" "$(DESTDIR)$(autoconflibdir)" \
+   "$(DESTDIR)$(autoscanlibdir)" "$(DESTDIR)$(autotestlibdir)" \
+   "$(DESTDIR)$(m4sugarlibdir)" "$(DESTDIR)$(pkgdatadir)" \
+   "$(DESTDIR)$(pkgdatadir)"
+-SCRIPTS = $(bin_SCRIPTS) $(dist_buildaux_SCRIPTS) $(noinst_SCRIPTS)
++SCRIPTS = $(bin_SCRIPTS) $(noinst_SCRIPTS)
+ AM_V_P = $(am__v_P_@AM_V@)
+ am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+ am__v_P_0 = false
+@@ -341,10 +341,11 @@
+ NROFF = nroff
+ MANS = $(dist_man_MANS)
+ DATA = $(dist_autoconflib_DATA) $(dist_autotestlib_DATA) \
+-  $(dist_m4sugarlib_DATA) $(dist_perllib_DATA) \
+-  $(nodist_autoconflib_DATA) $(nodist_autoscanlib_DATA) \
+-  $(nodist_autotestlib_DATA) $(nodist_m4sugarlib_DATA) \
+-  $(nodist_pkgdata_DATA) $(pkgdata_DATA)
++  $(dist_buildaux_DATA) $(dist_m4sugarlib_DATA) \
++  $(dist_perllib_DATA) $(nodist_autoconflib_DATA) \
++  $(nodist_autoscanlib_DATA) $(nodist_autotestlib_DATA) \
++  $(nodist_m4sugarlib_DATA) $(nodist_pkgdata_DATA) \
++  $(pkgdata_DATA)
+ am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+ # Read a list of newline-separated strings from the standard input,
+ # and print each of them once, without duplicates.  Input order is
+@@ -754,12 +755,23 @@
+   lib/autotest/specific.m4
+ 
+ nodist_autotestlib_DATA = lib/autotest/autotest.m4f
+-buildauxdir = $(pkgdatadir)/build-aux
+-dist_buildaux_SCRIPTS = \
++
++# These are declared as _DATA so that they are not subject to
++# --program-transform-name; $(pkgdatadir) is sufficient to keep
++# multiple installations

[gentoo-commits] repo/gentoo:master commit in: sys-devel/autoconf/, sys-devel/autoconf/files/

2020-10-21 Thread Lars Wendler
commit: 071cf1ca76377ce19b3f4267327436d36da6df50
Author: Lars Wendler  gentoo  org>
AuthorDate: Wed Oct 21 06:57:45 2020 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Wed Oct 21 07:00:11 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=071cf1ca

Revert "sys-devel/autoconf: Revbump to improve AC_INIT arg quoting"

This reverts commit c95e99d3956c8d0f6816937107fb0cfeae12366e.
As slyfox reported in bug #750191, this patch breaks AC_INIT for many
packages and thus has not been added to autoconf upstream repo.

Bug: https://bugs.gentoo.org/750191
Signed-off-by: Lars Wendler  gentoo.org>

 ..._beta2-r1.ebuild => autoconf-2.70_beta2.ebuild} |   4 -
 ...oconf-2.70_beta2-AC_INIT_argument_quoting.patch | 573 -
 2 files changed, 577 deletions(-)

diff --git a/sys-devel/autoconf/autoconf-2.70_beta2-r1.ebuild 
b/sys-devel/autoconf/autoconf-2.70_beta2.ebuild
similarity index 96%
rename from sys-devel/autoconf/autoconf-2.70_beta2-r1.ebuild
rename to sys-devel/autoconf/autoconf-2.70_beta2.ebuild
index f5729eca99d..340c2601642 100644
--- a/sys-devel/autoconf/autoconf-2.70_beta2-r1.ebuild
+++ b/sys-devel/autoconf/autoconf-2.70_beta2.ebuild
@@ -33,10 +33,6 @@ RDEPEND="${BDEPEND}
 [[ ${PV} == "" ]] && BDEPEND+=" >=sys-apps/texinfo-4.3"
 PDEPEND="emacs? ( app-emacs/autoconf-mode )"
 
-PATCHES=(
-   "${FILESDIR}/${P}-AC_INIT_argument_quoting.patch"
-)
-
 src_prepare() {
# usr/bin/libtool is provided by binutils-apple, need gnu libtool
if [[ ${CHOST} == *-darwin* ]] ; then

diff --git 
a/sys-devel/autoconf/files/autoconf-2.70_beta2-AC_INIT_argument_quoting.patch 
b/sys-devel/autoconf/files/autoconf-2.70_beta2-AC_INIT_argument_quoting.patch
deleted file mode 100644
index 8a308c44396..000
--- 
a/sys-devel/autoconf/files/autoconf-2.70_beta2-AC_INIT_argument_quoting.patch
+++ /dev/null
@@ -1,573 +0,0 @@
-From 8a4571772a5aadc7a005eb288f66ed52b5f52eef Mon Sep 17 00:00:00 2001
-From: Zack Weinberg 
-Date: Wed, 14 Oct 2020 18:03:21 -0400
-Subject: [PATCH 1/1] improvements to AC_INIT argument quoting
-

- doc/autoconf.texi   |  33 ---
- lib/autoconf/general.m4 | 149 +++-
- lib/autoconf/status.m4  |  29 ---
- tests/base.at   | 184 +---
- 4 files changed, 279 insertions(+), 116 deletions(-)
-
-diff --git a/doc/autoconf.texi b/doc/autoconf.texi
-index 9a52fbdb..a89f1469 100644
 a/doc/autoconf.texi
-+++ b/doc/autoconf.texi
-@@ -1876,21 +1876,24 @@ distribution tar ball names (e.g., @samp{autoconf}).  
It defaults to
- other than alphanumerics and underscores are changed to @samp{-}.  If
- provided, @var{url} should be the home page for the package.
- 
--All the arguments of @code{AC_INIT} must be static, i.e., there should not
--be any shell computation, quotes, or newlines, but they can be computed
--by M4.  This is because the package information strings are expanded at
--M4 time into several contexts, and must give the same text at shell time
--whether used in single-quoted strings, double-quoted strings, quoted
--here-documents, or unquoted here-documents.  It is permissible to use
--@code{m4_esyscmd} or @code{m4_esyscmd_s} for computing a version string
--that changes with every commit to a version control system (in fact,
--Autoconf does just that, for all builds of the development tree made
--between releases).
-+Leading and trailing whitespace is stripped from all the arguments to
-+@code{AC_INIT}, and interior whitespace is collapsed to a single space.
-+
-+The arguments to @code{AC_INIT} may be computed by M4, when
-+@command{autoconf} is run.  For instance, it is fine for the
-+@var{version} argument to be an invocation of @code{m4_esyscmd} that
-+runs a command that determines the package's version from information
-+stored in the package's version control system.  However, they may not
-+be computed by the shell, when @command{configure} is run; if they
-+contain any construct that would cause computation by the shell,
-+Autoconf will issue an error.  This restriction is because the arguments
-+to AC_INIT are written into @file{configure} several times, in different
-+places, only some of which are subject to shell variable and command
-+substitution.
- 
- The @var{tarname} argument is used to construct filenames.
--In addition to being static, it should not contain wildcard
--characters, white space, or anything else that could be troublesome
--as part of a file or directory name.
-+It should not contain wildcard characters, white space, or anything else
-+that could be troublesome as part of a file or directory name.
- 
- The following M4 macros (e.g., @code{AC_PACKAGE_NAME}), output variables
- (e.g., @code{PACKAGE_NAME}), and preprocessor symbols (e.g.,
-@@ -1947,6 +1950,10 @@ of updating @samp{$@@} and @samp{$*}.  However, we 
suggest that you use
- standard macros like @code{AC_ARG_ENABLE} instead of attempting to
- implement your own o

[gentoo-commits] repo/gentoo:master commit in: sys-devel/autoconf/, sys-devel/autoconf/files/

2018-12-22 Thread Andreas K. Hüttel
commit: 27f80f1f403f17a8dd7fd3108d178adaafda5e80
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Sat Dec 22 19:02:05 2018 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Sat Dec 22 19:03:02 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27f80f1f

sys-devel/autoconf: Revision bump 2.13-r1 for Perl 5.26

Only one patch needed, the other one modifies code that does
not exist in this version yet.

Test suite passes in either case, not catching the problem.

Closes: https://bugs.gentoo.org/625576
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas K. Hüttel  gentoo.org>

 .../{autoconf-2.13.ebuild => autoconf-2.13-r1.ebuild}|  3 ++-
 sys-devel/autoconf/files/autoconf-2.13-perl-5.26.patch   | 12 
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/sys-devel/autoconf/autoconf-2.13.ebuild 
b/sys-devel/autoconf/autoconf-2.13-r1.ebuild
similarity index 94%
rename from sys-devel/autoconf/autoconf-2.13.ebuild
rename to sys-devel/autoconf/autoconf-2.13-r1.ebuild
index 760263724fb..a908a4d5d6f 100644
--- a/sys-devel/autoconf/autoconf-2.13.ebuild
+++ b/sys-devel/autoconf/autoconf-2.13-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -24,6 +24,7 @@ PATCHES=(
"${FILESDIR}"/${P}-gentoo.patch
"${FILESDIR}"/${P}-destdir.patch
"${FILESDIR}"/${P}-test-fixes.patch #146592
+   "${FILESDIR}"/${PN}-2.13-perl-5.26.patch
 )
 
 src_configure() {

diff --git a/sys-devel/autoconf/files/autoconf-2.13-perl-5.26.patch 
b/sys-devel/autoconf/files/autoconf-2.13-perl-5.26.patch
new file mode 100644
index 000..6fbc0cd1bc8
--- /dev/null
+++ b/sys-devel/autoconf/files/autoconf-2.13-perl-5.26.patch
@@ -0,0 +1,12 @@
+diff -ruN autoconf-2.13.orig/autoscan.pl autoconf-2.13/autoscan.pl
+--- autoconf-2.13.orig/autoscan.pl 1999-01-05 14:28:42.0 +0100
 autoconf-2.13/autoscan.pl  2018-12-22 19:55:10.986732296 +0100
+@@ -232,7 +232,7 @@
+   # Strip out comments and variable references.
+   s/#.*//;
+   s/\$\([^\)]*\)//g;
+-  s/\${[^\}]*}//g;
++  s/\$\{[^\}]*}//g;
+   s/@[^@]*@//g;
+ 
+   # Variable assignments.



[gentoo-commits] repo/gentoo:master commit in: sys-devel/autoconf/, sys-devel/autoconf/files/

2017-08-04 Thread Lars Wendler
commit: 565193ae54cfbf09e592ed5607b3775986d93c53
Author: Lars Wendler  gentoo  org>
AuthorDate: Fri Aug  4 15:17:17 2017 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Fri Aug  4 15:17:39 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=565193ae

sys-devel/autoconf: Revbump to add another perl-5.26 fix (bug #625576).

Package-Manager: Portage-2.3.6, Repoman-2.3.3

 ...conf-2.69-r3.ebuild => autoconf-2.69-r4.ebuild} |  6 +++--
 .../autoconf/files/autoconf-2.69-perl-5.26-2.patch | 30 ++
 2 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/sys-devel/autoconf/autoconf-2.69-r3.ebuild 
b/sys-devel/autoconf/autoconf-2.69-r4.ebuild
similarity index 94%
rename from sys-devel/autoconf/autoconf-2.69-r3.ebuild
rename to sys-devel/autoconf/autoconf-2.69-r4.ebuild
index 54b5079415c..eac25293936 100644
--- a/sys-devel/autoconf/autoconf-2.69-r3.ebuild
+++ b/sys-devel/autoconf/autoconf-2.69-r4.ebuild
@@ -1,14 +1,14 @@
 # Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="5"
+EAPI=6
 
 if [[ ${PV} == "" ]] ; then
EGIT_REPO_URI="git://git.savannah.gnu.org/${PN}.git
http://git.savannah.gnu.org/r/${PN}.git";
# We need all the tags in order to figure out the right version.
# The git-r3 eclass doesn't support that, so have to stick to 2.
-   inherit git-2
+   inherit git-r3
 else
SRC_URI="mirror://gnu/${PN}/${P}.tar.xz
ftp://alpha.gnu.org/pub/gnu/${PN}/${P}.tar.xz";
@@ -39,6 +39,8 @@ src_prepare()   {
PATCHES+=(
"${FILESDIR}"/${PN}-2.69-perl-5.26.patch
"${FILESDIR}"/${P}-fix-libtool-test.patch
+   "${FILESDIR}"/${PN}-2.69-perl-5.26-2.patch
)
toolchain-autoconf_src_prepare
+   eapply_user
 }

diff --git a/sys-devel/autoconf/files/autoconf-2.69-perl-5.26-2.patch 
b/sys-devel/autoconf/files/autoconf-2.69-perl-5.26-2.patch
new file mode 100644
index 000..6becf807c43
--- /dev/null
+++ b/sys-devel/autoconf/files/autoconf-2.69-perl-5.26-2.patch
@@ -0,0 +1,30 @@
+https://bugs.gentoo.org/625576
+
+--- autoconf-2.69/bin/autoheader.in
 autoconf-2.69/bin/autoheader.in
+@@ -173,6 +173,12 @@
+ # Source what the traces are trying to tell us.
+ verb "$me: running $autoconf to trace from $ARGV[0]";
+ my $quoted_tmp = shell_quote ($tmp);
++my $perl_tmp;
++if ( $tmp =~ /^\// ) {
++  $perl_tmp=$tmp;
++} else {
++  $perl_tmp="./".$tmp;
++}
+ xsystem ("$autoconf"
+# If you change this list, update the
+# `Autoheader-preselections' section of autom4te.in.
+@@ -182,9 +188,9 @@
+. " " . shell_quote ($ARGV[0]) . " >$quoted_tmp/traces.pl");
+ 
+ local (%verbatim, %symbol);
+-debug "$me: \`do'ing $tmp/traces.pl:\n" . `sed 's/^/| /' 
$quoted_tmp/traces.pl`;
+-do "$tmp/traces.pl";
+-warn "couldn't parse $tmp/traces.pl: $@" if $@;
++debug "$me: \`do'ing $perl_tmp/traces.pl:\n" . `sed 's/^/| /' 
$quoted_tmp/traces.pl`;
++do "$perl_tmp/traces.pl";
++warn "couldn't parse $perl_tmp/traces.pl: $@" if $@;
+ unless ($config_h)
+   {
+ error "error: AC_CONFIG_HEADERS not found in $ARGV[0]";



[gentoo-commits] repo/gentoo:master commit in: sys-devel/autoconf/, sys-devel/autoconf/files/

2017-04-27 Thread Lars Wendler
commit: 50932475bceaaa0499b1d1e0daf78e5e8f7c1446
Author: Kent Fredric  gentoo  org>
AuthorDate: Thu Apr 27 11:40:02 2017 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Thu Apr 27 13:42:18 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50932475

sys-devel/autoconf: Add perl-5.26 patch re bug #613790

This fixes the unescaped "{" issue.

-r1 bump necessary as end users must have this patch applied to
their installs otherwise autoscan will be broken after upgrading
perl.

autoconf does not subslot dep on perl, so there are no guarantees
that a rebuild will happen to propagate this patch

Hence, -r1 fix

Bug: https://bugs.gentoo.org/613790

Package-Manager: Portage-2.3.4, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4500

 ...conf-2.69-r2.ebuild => autoconf-2.69-r3.ebuild} |  1 +
 .../autoconf/files/autoconf-2.69-perl-5.26.patch   | 28 ++
 2 files changed, 29 insertions(+)

diff --git a/sys-devel/autoconf/autoconf-2.69-r2.ebuild 
b/sys-devel/autoconf/autoconf-2.69-r3.ebuild
similarity index 96%
rename from sys-devel/autoconf/autoconf-2.69-r2.ebuild
rename to sys-devel/autoconf/autoconf-2.69-r3.ebuild
index 0acd57e4e77..37354a400d9 100644
--- a/sys-devel/autoconf/autoconf-2.69-r2.ebuild
+++ b/sys-devel/autoconf/autoconf-2.69-r3.ebuild
@@ -36,5 +36,6 @@ src_prepare()   {
# usr/bin/libtool is provided by binutils-apple, need gnu libtool
[[ ${CHOST} == *-darwin* ]] && \
PATCHES+=( "${FILESDIR}"/${PN}-2.61-darwin.patch )
+   PATCHES+=( "${FILESDIR}"/${PN}-2.69-perl-5.26.patch )
toolchain-autoconf_src_prepare
 }

diff --git a/sys-devel/autoconf/files/autoconf-2.69-perl-5.26.patch 
b/sys-devel/autoconf/files/autoconf-2.69-perl-5.26.patch
new file mode 100644
index 000..b3d7888ca72
--- /dev/null
+++ b/sys-devel/autoconf/files/autoconf-2.69-perl-5.26.patch
@@ -0,0 +1,28 @@
+From e5654a5591884b92633c7785f325626711e7f7aa Mon Sep 17 00:00:00 2001
+From: Paul Eggert 
+Date: Tue, 29 Jan 2013 13:46:48 -0800
+Subject: [PATCH] autoscan: port to perl 5.17
+
+* bin/autoscan.in (scan_sh_file): Escape '{'.  This avoids a
+feature that is deprecated in Perl 5.17.  Reported by Ray Lauff in
+.
+---
+ bin/autoscan.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/bin/autoscan.in b/bin/autoscan.in
+index 993a750..db1df79 100644
+--- a/bin/autoscan.in
 b/bin/autoscan.in
+@@ -358,7 +358,7 @@ sub scan_sh_file ($)
+ {
+   # Strip out comments and variable references.
+   s/#.*//;
+-  s/\${[^\}]*}//g;
++  s/\$\{[^\}]*}//g;
+   s/@[^@]*@//g;
+ 
+   # Tokens in the code.
+-- 
+1.9.1
+