guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: acl: Fix test regression with perl-5.26.


From: Efraim Flashner
Subject: 01/01: gnu: acl: Fix test regression with perl-5.26.
Date: Thu, 9 Nov 2017 12:54:47 -0500 (EST)

efraim pushed a commit to branch core-updates
in repository guix.

commit 0f1adf454d5fa96291b94dbdbd34640b8c581116
Author: Efraim Flashner <address@hidden>
Date:   Thu Nov 9 19:47:47 2017 +0200

    gnu: acl: Fix test regression with perl-5.26.
    
    * gnu/packages/acl.scm (acl)[source]: Add patch.
    * gnu/packages/patches/acl-fix-perl-regex.patch: New file.
    * gnu/local.mk (dist_patch_DATA): Register it.
---
 gnu/local.mk                                  |  1 +
 gnu/packages/acl.scm                          |  4 +++-
 gnu/packages/patches/acl-fix-perl-regex.patch | 22 ++++++++++++++++++++++
 3 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/gnu/local.mk b/gnu/local.mk
index d8f0fde..d8b8b14 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -520,6 +520,7 @@ dist_patch_DATA =                                           
\
   %D%/packages/patches/a2ps-CVE-2014-0466.patch        \
   %D%/packages/patches/abiword-explictly-cast-bools.patch      \
   %D%/packages/patches/abiword-black-drawing-with-gtk322.patch \
+  %D%/packages/patches/acl-fix-perl-regex.patch                \
   %D%/packages/patches/acl-hurd-path-max.patch                 \
   %D%/packages/patches/aegis-constness-error.patch             \
   %D%/packages/patches/aegis-perl-tempdir1.patch               \
diff --git a/gnu/packages/acl.scm b/gnu/packages/acl.scm
index c74b68c..66e4c33 100644
--- a/gnu/packages/acl.scm
+++ b/gnu/packages/acl.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2012 Nikita Karetnikov <address@hidden>
 ;;; Copyright © 2014 Mark H Weaver <address@hidden>
 ;;; Copyright © 2014 Andreas Enge <address@hidden>
+;;; Copyright © 2017 Efraim Flashner <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -41,7 +42,8 @@
       (sha256
        (base32
         "08qd9s3wfhv0ajswsylnfwr5h0d7j9d4rgip855nrh400nxp940p"))
-      (patches (search-patches "acl-hurd-path-max.patch"))))
+      (patches (search-patches "acl-fix-perl-regex.patch"
+                               "acl-hurd-path-max.patch"))))
     (build-system gnu-build-system)
     (arguments
      `(#:test-target "tests"
diff --git a/gnu/packages/patches/acl-fix-perl-regex.patch 
b/gnu/packages/patches/acl-fix-perl-regex.patch
new file mode 100644
index 0000000..f682abc
--- /dev/null
+++ b/gnu/packages/patches/acl-fix-perl-regex.patch
@@ -0,0 +1,22 @@
+This can be removed with the next acl release
+
+---
+ test/run | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/run b/test/run
+index 2cf52e8..4627cd2 100755
+--- a/test/run
++++ b/test/run
+@@ -70,7 +70,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.15.0
+



reply via email to

[Prev in Thread] Current Thread [Next in Thread]