guix-commits
[Top][All Lists]
Advanced

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

35/38: gnu: perl: Support cross-building for the 64bit Hurd.


From: guix-commits
Subject: 35/38: gnu: perl: Support cross-building for the 64bit Hurd.
Date: Thu, 7 Nov 2024 10:56:11 -0500 (EST)

janneke pushed a commit to branch hurd-team
in repository guix.

commit 6db7c5f9237b685af26e36eb14982f7a4dddd37b
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Thu Nov 7 13:16:25 2024 +0100

    gnu: perl: Support cross-building for the 64bit Hurd.
    
    * gnu/packages/cross-base.scm (perl)[native-inputs]: When cross-building for
    the 64bit Hurd, use perl-cross-1.6.
    
    Change-Id: I4a77f51a6757ad4aed9bcca8f9bbbf2cbd162e15
---
 gnu/packages/perl.scm | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index faaac13bf1..2ea7c49419 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -248,14 +248,18 @@
     (native-inputs
      (if (%current-target-system)
          `(("perl-cross"
-            ,(origin
-               (method git-fetch)
-               (uri (git-reference
-                     (url "https://github.com/arsv/perl-cross";)
-                     (commit "1.4")))
-               (file-name (git-file-name "perl-cross" "1.4"))
-               (sha256
-                (base32 
"1ydjvlhrk06ccyj4bm8by7xk90krsll2k380mc3x1mhfrc7r9gzy")))))
+            ,(let ((version (if (target-hurd64?) "1.6" "1.4"))
+                   (hash
+                    (if (target-hurd64?)
+                        "0s06lkx5b79r9cn6pm5p6d4jbdjq7wg7rjr75nw5xdhw1z3wnl2d"
+                        
"1ydjvlhrk06ccyj4bm8by7xk90krsll2k380mc3x1mhfrc7r9gzy")))
+               (origin
+                 (method git-fetch)
+                 (uri (git-reference
+                       (url "https://github.com/arsv/perl-cross";)
+                       (commit version)))
+                 (file-name (git-file-name "perl-cross" version))
+                 (sha256 (base32 hash))))))
          '()))
     (native-search-paths (list (search-path-specification
                                 (variable "PERL5LIB")



reply via email to

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