Message ID | zMqJOXxxdBE_tlTtNY-q9vjI2_uBFY36RprO1tJWhHBh9S6NO4l46DHNOjHgM5GXf3SxAbC4tR27tN3sUZWS9Y69U70BGtc47McF0TE5Gaw=@protonmail.com |
---|---|
State | New |
Headers | show |
Series | [bug#48314,v4] Install guix system on Raspberry Pi | expand |
Context | Check | Description |
---|---|---|
cbaines/applying patch | fail | View Laminar job |
cbaines/issue | success | View issue |
phodina schreef op do 14-04-2022 om 09:25 [+0000]: > (let* ((srcarch > - ,(system->linux-srcarch (or (%current-target- > system) > + $#(system->linux-srcarch (or (%current- it's #$, not $# > target-system) > (%current- > system)))) > (configs (string-append "arch/" srcarch > "/configs/")) > (guix_defconfig (string-append configs > "guix_defconfig"))) > - ,(cond > + $#(cond likewise > ((not defconfig) > - `(begin > + $~(begin in this case #~ > ;; Call the original 'configure phase. > - (apply (assoc-ref ,phases 'configure) > arguments) > + (apply (assoc-ref $#phases 'configure) > arguments) #$ > ;; Save a defconfig file. > (invoke "make" "savedefconfig") > ;; Move the saved defconfig to the proper > location. > @@ -1309,19 +1309,18 @@ (define*-public (modify-linux #:key name > guix_defconfig))) > ((string? defconfig) > ;; Use another existing defconfig from the Linux > sources. > - `(rename-file (string-append configs ,defconfig) > + $~(rename-file (string-append configs > $#defconfig) #~ and #$ > guix_defconfig)) > (else > ;; Copy the defconfig input to the proper > location. > '(copy-file (assoc-ref inputs "guix_defconfig") > guix_defconfig))) > - (modify-defconfig guix_defconfig ',configs) > - ,@(if extra-version > - `((setenv "EXTRAVERSION" > - ,(string-append "-" extra- > version))) > + (modify-defconfig guix_defconfig '$#configs) > + $#@(if extra-version #$@ > + $~((setenv "EXTRAVERSION" #~ > + $#(string-append "-" extra- > version))) #$ > '()) > - (invoke "make" "guix_defconfig")) > - #t)))))) > + (invoke "make" "guix_defconfig")))))))) Greetings, Maxime.
From 57643003418f13d49e45582ef2a6d25de6b36595 Mon Sep 17 00:00:00 2001 From: Petr Hodina <phodina@protonmail.com> Date: Thu, 14 Apr 2022 11:18:27 +0200 Subject: [PATCH v4] Attempt to fix modify-linux procedure using Gexp. diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 61dac905f8..e1ad6069f8 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -1293,15 +1293,15 @@ (define*-public (modify-linux #:key name (replace 'configure (lambda* (#:key inputs #:allow-other-keys #:rest arguments) (let* ((srcarch - ,(system->linux-srcarch (or (%current-target-system) + $#(system->linux-srcarch (or (%current-target-system) (%current-system)))) (configs (string-append "arch/" srcarch "/configs/")) (guix_defconfig (string-append configs "guix_defconfig"))) - ,(cond + $#(cond ((not defconfig) - `(begin + $~(begin ;; Call the original 'configure phase. - (apply (assoc-ref ,phases 'configure) arguments) + (apply (assoc-ref $#phases 'configure) arguments) ;; Save a defconfig file. (invoke "make" "savedefconfig") ;; Move the saved defconfig to the proper location. @@ -1309,19 +1309,18 @@ (define*-public (modify-linux #:key name guix_defconfig))) ((string? defconfig) ;; Use another existing defconfig from the Linux sources. - `(rename-file (string-append configs ,defconfig) + $~(rename-file (string-append configs $#defconfig) guix_defconfig)) (else ;; Copy the defconfig input to the proper location. '(copy-file (assoc-ref inputs "guix_defconfig") guix_defconfig))) - (modify-defconfig guix_defconfig ',configs) - ,@(if extra-version - `((setenv "EXTRAVERSION" - ,(string-append "-" extra-version))) + (modify-defconfig guix_defconfig '$#configs) + $#@(if extra-version + $~((setenv "EXTRAVERSION" + $#(string-append "-" extra-version))) '()) - (invoke "make" "guix_defconfig")) - #t)))))) + (invoke "make" "guix_defconfig")))))))) (native-inputs (append (if (or (not defconfig) (string? defconfig)) -- 2.34.0