Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/attr/, sys-apps/attr/files/
Date: Wed, 10 Jan 2018 15:43:25
Message-Id: 1515598986.7e5b180cb88a4b730af851e326065baf6b9bc2c8.polynomial-c@gentoo
1 commit: 7e5b180cb88a4b730af851e326065baf6b9bc2c8
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 10 15:42:50 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 10 15:43:06 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e5b180c
7
8 sys-apps/attr: Fixed test suite error with perl-5.26
9
10 Closes: https://bugs.gentoo.org/644058
11 Package-Manager: Portage-2.3.19, Repoman-2.3.6
12
13 sys-apps/attr/attr-2.4.48.ebuild | 4 ++++
14 sys-apps/attr/files/attr-2.4.48-perl-5.26.patch | 23 +++++++++++++++++++++++
15 2 files changed, 27 insertions(+)
16
17 diff --git a/sys-apps/attr/attr-2.4.48.ebuild b/sys-apps/attr/attr-2.4.48.ebuild
18 index b6a1fef64ad..378bc2b6cd4 100644
19 --- a/sys-apps/attr/attr-2.4.48.ebuild
20 +++ b/sys-apps/attr/attr-2.4.48.ebuild
21 @@ -21,6 +21,10 @@ DEPEND="
22 sys-devel/gettext
23 "
24
25 +PATCHES=(
26 + "${FILESDIR}/${P}-perl-5.26.patch"
27 +)
28 +
29 src_prepare() {
30 default
31 elibtoolize #580792
32
33 diff --git a/sys-apps/attr/files/attr-2.4.48-perl-5.26.patch b/sys-apps/attr/files/attr-2.4.48-perl-5.26.patch
34 new file mode 100644
35 index 00000000000..6f3d2a22c14
36 --- /dev/null
37 +++ b/sys-apps/attr/files/attr-2.4.48-perl-5.26.patch
38 @@ -0,0 +1,23 @@
39 +... to fix test-suite failure with perl-5.26.0
40 +
41 +Bug: https://bugzilla.redhat.com/1473853
42 +Upstream: http://lists.nongnu.org/archive/html/acl-devel/2017-07/msg00001.html
43 +---
44 + test/run | 2 +-
45 + 1 file changed, 1 insertion(+), 1 deletion(-)
46 +
47 +diff --git a/test/run b/test/run
48 +index 4b1f8d0..07e916c 100755
49 +--- a/test/run
50 ++++ b/test/run
51 +@@ -106,7 +106,7 @@ for (;;) {
52 + if (defined $line) {
53 + # Substitute %VAR and %{VAR} with environment variables.
54 + $line =~ s[%(\w+)][$ENV{$1}]eg;
55 +- $line =~ s[%{(\w+)}][$ENV{$1}]eg;
56 ++ $line =~ s[%\{(\w+)}][$ENV{$1}]eg;
57 + }
58 + if (defined $line) {
59 + if ($line =~ s/^\s*< ?//) {
60 +--
61 +2.13.0
62 \ No newline at end of file