guix-commits
[Top][All Lists]
Advanced

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

02/03: ci: 'channel-build-system' honors the target system.


From: guix-commits
Subject: 02/03: ci: 'channel-build-system' honors the target system.
Date: Sat, 6 Jul 2019 10:17:32 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit c3ab921eed2a471022e9863a94ea521508782e53
Author: Ludovic Courtès <address@hidden>
Date:   Sat Jul 6 16:04:14 2019 +0200

    ci: 'channel-build-system' honors the target system.
    
    Fixes a bug made evident e79281be105b16153c375af5506db31fd1e32698: the
    x86_64-linux derivation of 'current-guix' would be cached and reused for
    i686-linux, leading to test
    failures.
    
    Namely, /run/current-system/profile/bin/guix would have an x86_64
    binary in its shebang, and thus it would end up being interpreted by
    /bin/sh, which would fail like this:
    
      + guix --version
      /run/current-system/profile/bin/guix: line 2: !#: command not found
      /run/current-system/profile/bin/guix: line 3: syntax error near 
unexpected token `set!'
      /run/current-system/profile/bin/guix: line 3: `(begin (set! %load-path …
    
    See <https://ci.guix.gnu.org/build/1431119/details>.
    
    * gnu/ci.scm (channel-build-system)[build]: Pass #:system to
    'run-with-store'.
---
 gnu/ci.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/ci.scm b/gnu/ci.scm
index e108b4b..4885870 100644
--- a/gnu/ci.scm
+++ b/gnu/ci.scm
@@ -193,9 +193,11 @@ system.")
 (define channel-build-system
   ;; Build system used to "convert" a channel instance to a package.
   (let* ((build (lambda* (store name inputs
-                                #:key instance #:allow-other-keys)
+                                #:key instance system
+                                #:allow-other-keys)
                   (run-with-store store
-                    (channel-instances->derivation (list instance)))))
+                    (channel-instances->derivation (list instance))
+                    #:system system)))
          (lower (lambda* (name #:key system instance #:allow-other-keys)
                   (bag
                     (name name)



reply via email to

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