1 |
commit: fef54b9ccadd995fa3af6c1446ebc9aa678075f4 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 29 14:38:09 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 29 14:38:18 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fef54b9c |
7 |
|
8 |
sys-devel/autoconf: make tests compatible with bash-5 |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
sys-devel/autoconf/autoconf-2.69-r5.ebuild | 1 + |
14 |
...autoconf-2.69-make-tests-bash5-compatible.patch | 63 ++++++++++++++++++++++ |
15 |
2 files changed, 64 insertions(+) |
16 |
|
17 |
diff --git a/sys-devel/autoconf/autoconf-2.69-r5.ebuild b/sys-devel/autoconf/autoconf-2.69-r5.ebuild |
18 |
index 914d3c007fa..a1b71fdccd3 100644 |
19 |
--- a/sys-devel/autoconf/autoconf-2.69-r5.ebuild |
20 |
+++ b/sys-devel/autoconf/autoconf-2.69-r5.ebuild |
21 |
@@ -34,6 +34,7 @@ PATCHES=( |
22 |
"${FILESDIR}"/${PN}-2.69-perl-5.26.patch |
23 |
"${FILESDIR}"/${P}-fix-libtool-test.patch |
24 |
"${FILESDIR}"/${PN}-2.69-perl-5.26-2.patch |
25 |
+ "${FILESDIR}"/${P}-make-tests-bash5-compatible.patch |
26 |
|
27 |
"${WORKDIR}"/patches/${P}-runstatedir.patch |
28 |
"${WORKDIR}"/patches/${P}-texinfo.patch |
29 |
|
30 |
diff --git a/sys-devel/autoconf/files/autoconf-2.69-make-tests-bash5-compatible.patch b/sys-devel/autoconf/files/autoconf-2.69-make-tests-bash5-compatible.patch |
31 |
new file mode 100644 |
32 |
index 00000000000..1afcec15bb4 |
33 |
--- /dev/null |
34 |
+++ b/sys-devel/autoconf/files/autoconf-2.69-make-tests-bash5-compatible.patch |
35 |
@@ -0,0 +1,63 @@ |
36 |
+From 5b9db67786a428164abafe626ab11a2754aad528 Mon Sep 17 00:00:00 2001 |
37 |
+From: Ondrej Dubaj <odubaj@××××××.com> |
38 |
+Date: Wed, 28 Aug 2019 07:39:50 +0200 |
39 |
+Subject: Port tests to Bash 5 |
40 |
+ |
41 |
+* tests/local.at (AT_CHECK_ENV, AT_CONFIG_CMP): |
42 |
+Add BASH_ARGC, BASH_ARGV to list of variables to be ignored when |
43 |
+comparing variable space dumps. |
44 |
+(AT_CONFIG_CMP): Also ignore LINENO. |
45 |
+* tests/m4sh.at: Also unset LINENO in 'reference' and 'test/test-1'. |
46 |
+--- |
47 |
+ tests/local.at | 5 ++++- |
48 |
+ tests/m4sh.at | 4 ++-- |
49 |
+ 2 files changed, 6 insertions(+), 3 deletions(-) |
50 |
+ |
51 |
+diff --git a/tests/local.at b/tests/local.at |
52 |
+index a22958c0..852be285 100644 |
53 |
+--- a/tests/local.at |
54 |
++++ b/tests/local.at |
55 |
+@@ -325,7 +325,7 @@ if test -f state-env.before && test -f state-env.after; then |
56 |
+ [AWK|LEX|LEXLIB|LEX_OUTPUT_ROOT|LN_S|M4|MKDIR_P|RANLIB|SET_MAKE|YACC], |
57 |
+ [GREP|[EF]GREP|SED], |
58 |
+ [[_@]|.[*#?$].], |
59 |
+- [argv|ARGC|LINENO|OLDPWD|PIPESTATUS|RANDOM|SECONDS]))=' \ |
60 |
++ [argv|ARGC|LINENO|BASH_ARGC|BASH_ARGV|OLDPWD|PIPESTATUS|RANDOM|SECONDS]))=' \ |
61 |
+ $act_file || |
62 |
+ test $? -eq 1 || echo failed >&2 |
63 |
+ ) 2>stderr-$act_file | |
64 |
+@@ -382,6 +382,9 @@ do |
65 |
+ /'\'\\\$\''=/ d |
66 |
+ /^argv=/ d |
67 |
+ /^ARGC=/ d |
68 |
++ /^BASH_ARGC=/ d |
69 |
++ /^BASH_ARGV=/ d |
70 |
++ /^LINENO=/ d |
71 |
+ ' $act_file >at_config_vars-$act_file |
72 |
+ done |
73 |
+ AT_CMP([at_config_vars-$1], [at_config_vars-$2])[]dnl |
74 |
+diff --git a/tests/m4sh.at b/tests/m4sh.at |
75 |
+index e9d70b02..cbdfcb62 100644 |
76 |
+--- a/tests/m4sh.at |
77 |
++++ b/tests/m4sh.at |
78 |
+@@ -254,7 +254,7 @@ AT_CHECK([autom4te -l m4sh $1.as -o $1]) |
79 |
+ # `_oline_', once processed and ran, produces our reference. |
80 |
+ # We check that we find ourselves by looking at a string which is |
81 |
+ # available only in the original script: `_oline_'. |
82 |
+-AT_DATA_LINENO([reference], [false], [__OLINE__], [_oline__]) |
83 |
++AT_DATA_LINENO([reference], [true], [__OLINE__], [_oline__]) |
84 |
+ AT_CHECK([./reference], 0, [stdout]) |
85 |
+ |
86 |
+ # The reference: |
87 |
+@@ -264,7 +264,7 @@ mv stdout expout |
88 |
+ # Be sure to be out of the PATH. |
89 |
+ AT_CHECK([mkdir test || exit 77]) |
90 |
+ |
91 |
+-AT_DATA_LINENO([test/test-1], [false], [__LINENO__], [LINENO]) |
92 |
++AT_DATA_LINENO([test/test-1], [true], [__LINENO__], [LINENO]) |
93 |
+ AT_CHECK([./test/test-1], 0, [expout]) |
94 |
+ AT_CHECK([(PATH=test$PATH_SEPARATOR$PATH; export PATH; exec test-1)], |
95 |
+ 0, [expout]) |
96 |
+-- |
97 |
+cgit v1.2.1 |
98 |
+ |