emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#32624: closed ([PATCH] gnu: perl: Add support for


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#32624: closed ([PATCH] gnu: perl: Add support for cross-compilation)
Date: Fri, 07 Sep 2018 14:18:01 +0000

Your message dated Fri, 07 Sep 2018 16:17:01 +0200
with message-id <address@hidden>
and subject line Re: [bug#32624] [PATCH] gnu: perl: Add support for 
cross-compilation
has caused the debbugs.gnu.org bug report #32624,
regarding [PATCH] gnu: perl: Add support for cross-compilation
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
32624: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32624
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] gnu: perl: Add support for cross-compilation Date: Mon, 03 Sep 2018 16:10:44 +0200 User-agent: mu4e 1.0; emacs 26.1
This patch adds support for cross-compilation for perl.
I only applied the suggestion made by Chris here:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31221

I tested it by running the following command, which builds perl successfully:

sudo -E ./pre-inst-env guix build --target=i686-pc-linux-gnu perl


>From 1aa61436c6c85ebfdea9aceeb3949ac97fdbe289 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rapha=C3=ABl=20M=C3=A9lotte?= <address@hidden>
Date: Mon, 3 Sep 2018 10:20:06 +0200
Subject: [PATCH] gnu: perl: Add support for cross-compilation

* gnu/packages/perl.scm (perl): use cross-libc when cross-compiling
---
 gnu/packages/perl.scm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 4d70e019b..b10be9567 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -48,6 +48,7 @@
   #:use-module (guix utils) ;substitute-keyword-arguments for perl-5.26.2
   #:use-module (gnu packages base)
   #:use-module (gnu packages compression)
+  #:use-module (gnu packages cross-base)
   #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages perl-check)
   #:use-module (gnu packages perl-web)
@@ -79,7 +80,7 @@
                        "perl-reproducible-build-date.patch"))))
     (build-system gnu-build-system)
     (arguments
-     '(#:tests? #f
+     `(#:tests? #f
        #:configure-flags
        (let ((out  (assoc-ref %outputs "out"))
              (libc (assoc-ref %build-inputs "libc")))
@@ -128,7 +129,10 @@
          (add-after 'install 'remove-extra-references
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (let* ((out     (assoc-ref outputs "out"))
-                    (libc    (assoc-ref inputs "libc"))
+                    (libc (assoc-ref inputs
+                             (if ,(%current-target-system)
+                                  "cross-libc"
+                                  "libc")))
                     (config1 (car (find-files (string-append out "/lib/perl5")
                                               "^Config_heavy\\.pl$")))
                     (config2 (find-files (string-append out "/lib/perl5")
-- 
2.11.0

-- 
Raphaël Mélotte

--- End Message ---
--- Begin Message --- Subject: Re: [bug#32624] [PATCH] gnu: perl: Add support for cross-compilation Date: Fri, 07 Sep 2018 16:17:01 +0200 User-agent: mu4e 1.0; emacs 26.1
Raphaël Mélotte writes:

> (I just closed the issue)

Whoops, I forgot to add "-done" to close it. Sorry for the noise.


--- End Message ---

reply via email to

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