sys-apps/attr: Fixed test suite error with perl-5.26
authorLars Wendler <polynomial-c@gentoo.org>
Wed, 10 Jan 2018 15:42:50 +0000 (16:42 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Wed, 10 Jan 2018 15:43:06 +0000 (16:43 +0100)
Closes: https://bugs.gentoo.org/644058
Package-Manager: Portage-2.3.19, Repoman-2.3.6

sys-apps/attr/attr-2.4.48.ebuild
sys-apps/attr/files/attr-2.4.48-perl-5.26.patch [new file with mode: 0644]

index b6a1fef64ad74fd53e3323f5b57c26c4fcdfe121..378bc2b6cd46cb5c385e2e84ac0394ca1c7736c1 100644 (file)
@@ -21,6 +21,10 @@ DEPEND="
        sys-devel/gettext
 "
 
+PATCHES=(
+       "${FILESDIR}/${P}-perl-5.26.patch"
+)
+
 src_prepare() {
        default
        elibtoolize #580792
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
new file mode 100644 (file)
index 0000000..6f3d2a2
--- /dev/null
@@ -0,0 +1,23 @@
+... to fix test-suite failure with perl-5.26.0
+
+Bug: https://bugzilla.redhat.com/1473853
+Upstream: http://lists.nongnu.org/archive/html/acl-devel/2017-07/msg00001.html
+---
+ test/run | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/run b/test/run
+index 4b1f8d0..07e916c 100755
+--- a/test/run
++++ b/test/run
+@@ -106,7 +106,7 @@ for (;;) {
+   if (defined $line) {
+     # Substitute %VAR and %{VAR} with environment variables.
+     $line =~ s[%(\w+)][$ENV{$1}]eg;
+-    $line =~ s[%{(\w+)}][$ENV{$1}]eg;
++    $line =~ s[%\{(\w+)}][$ENV{$1}]eg;
+   }
+   if (defined $line) {
+     if ($line =~ s/^\s*< ?//) {
+-- 
+2.13.0
\ No newline at end of file