guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: swig: Fix build with Perl 5.26.0.


From: Leo Famulari
Subject: 02/02: gnu: swig: Fix build with Perl 5.26.0.
Date: Wed, 14 Jun 2017 10:25:27 -0400 (EDT)

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

commit 503c8c5882550005a7e9d3058a5f6d22f9c33f63
Author: Leo Famulari <address@hidden>
Date:   Wed Jun 14 10:21:51 2017 -0400

    gnu: swig: Fix build with Perl 5.26.0.
    
    * gnu/packages/swig.scm (swig)[arguments]: Set PERL_USE_UNSAFE_INC in 
'set-env'
    build phase.
---
 gnu/packages/swig.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/swig.scm b/gnu/packages/swig.scm
index 59cff51..b931db4 100644
--- a/gnu/packages/swig.scm
+++ b/gnu/packages/swig.scm
@@ -41,6 +41,14 @@
               (base32
                "0kf99ygrjs5616gsqhz1l7bib3a12izmxi7g48bwblbymr3z9ybw"))))
     (build-system gnu-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'set-env
+           ;; Required since Perl 5.26.0's removal of the current
+           ;; working directory from @INC.
+           ;; TODO Try removing this for later versions of SWIG.
+           (lambda _ (setenv "PERL_USE_UNSAFE_INC" "1") #t)))))
     (native-inputs `(("boost" ,boost)
                      ("pcre" ,pcre "bin")))       ;for 'pcre-config'
     (inputs `(;; Provide these to run the corresponding tests.



reply via email to

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