GNU bug report logs -
#63458
[PATCH] gnu: guix-build-coordinator: Neaten up the package definitions.
Previous Next
Reported by: Christopher Baines <mail <at> cbaines.net>
Date: Fri, 12 May 2023 07:45:02 UTC
Severity: normal
Tags: patch
Done: Christopher Baines <mail <at> cbaines.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 63458 in the body.
You can then email your comments to 63458 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#63458
; Package
guix-patches
.
(Fri, 12 May 2023 07:45:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Christopher Baines <mail <at> cbaines.net>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Fri, 12 May 2023 07:45:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Remove duplication and redundant append calls.
* gnu/packages/package-management.scm (guix-build-coordinator)[inputs]: Always
add sqitch.
[propagated-inputs]: Always add guile-fibers-next.
(guix-build-coordinator-agent-only)[arguments]: Remove unnecessary duplication
of phases.
[propagated-inputs]: Remove unnecessary append.
---
gnu/packages/package-management.scm | 109 +++++++---------------------
1 file changed, 26 insertions(+), 83 deletions(-)
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm
index 7be497c534..494ae7445d 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -1474,27 +1474,21 @@ (define-public guix-build-coordinator
guile-lib
(first (assoc-ref (package-native-inputs guix) "guile"))))
(inputs
- (append
- (list (first (assoc-ref (package-native-inputs guix) "guile"))
- sqlite
- bash-minimal)
- (if (hurd-target?)
- '()
- (list sqitch))))
+ (list (first (assoc-ref (package-native-inputs guix) "guile"))
+ sqlite
+ bash-minimal
+ sqitch))
(propagated-inputs
- (append
- (list guile-prometheus
- guile-gcrypt
- guile-json-4
- guile-lib
- guile-lzlib
- guile-zlib
- guile-sqlite3
- guix
- guile-gnutls)
- (if (hurd-target?)
- '()
- (list guile-fibers-next))))
+ (list guile-prometheus
+ guile-gcrypt
+ guile-json-4
+ guile-lib
+ guile-lzlib
+ guile-zlib
+ guile-sqlite3
+ guix
+ guile-gnutls
+ guile-fibers-next))
(home-page "https://git.cbaines.net/guix/build-coordinator/")
(synopsis "Tool to help build derivations")
(description
@@ -1508,62 +1502,12 @@ (define-public guix-build-coordinator/agent-only
(inherit guix-build-coordinator)
(name "guix-build-coordinator-agent-only")
(arguments
- `(#:modules (((guix build guile-build-system)
+ (list
+ #:modules `(((guix build guile-build-system)
#:select (target-guile-effective-version))
,@%gnu-build-system-modules)
- #:imported-modules ((guix build guile-build-system)
- ,@%gnu-build-system-modules)
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'set-GUILE_AUTO_COMPILE
- (lambda _
- ;; To avoid warnings relating to 'guild'.
- (setenv "GUILE_AUTO_COMPILE" "0")
- #t))
- (add-after 'install 'wrap-executable
- (lambda* (#:key inputs outputs target #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (bin (string-append out "/bin"))
- (guile (assoc-ref inputs "guile"))
- (version (target-guile-effective-version))
- (scm (string-append out "/share/guile/site/" version))
- (go (string-append out "/lib/guile/" version "/site-ccache")))
- (for-each
- (lambda (file)
- (simple-format (current-error-port) "wrapping: ~A\n" file)
- (let ((guile-inputs (list
- "guile-json"
- "guile-gcrypt"
- "guix"
- "guile-prometheus"
- "guile-lib"
- "guile-lzlib"
- "guile-zlib"
- "guile-sqlite3"
- "guile-gnutls")))
- (wrap-program file
- `("PATH" ":" prefix (,bin))
- `("GUILE_LOAD_PATH" ":" prefix
- (,scm ,(string-join
- (map (lambda (input)
- (simple-format
- #f "~A/share/guile/site/~A"
- (assoc-ref inputs input)
- version))
- guile-inputs)
- ":")))
- `("GUILE_LOAD_COMPILED_PATH" ":" prefix
- (,go ,(string-join
- (map (lambda (input)
- (simple-format
- #f "~A/lib/guile/~A/site-ccache"
- (assoc-ref inputs input)
- version))
- guile-inputs)
- ":"))))))
- (find-files bin)))
- #t))
- (delete 'strip)))) ; As the .go files aren't compatible
+ #:imported-modules `((guix build guile-build-system)
+ ,@%gnu-build-system-modules)))
(native-inputs
(list pkg-config
autoconf
@@ -1581,15 +1525,14 @@ (define-public guix-build-coordinator/agent-only
(list (first (assoc-ref (package-native-inputs guix) "guile"))
bash-minimal))
(propagated-inputs
- (append
- (list guile-prometheus
- guile-gcrypt
- guile-json-4
- guile-lib
- guile-lzlib
- guile-zlib
- guix
- guile-gnutls)))
+ (list guile-prometheus
+ guile-gcrypt
+ guile-json-4
+ guile-lib
+ guile-lzlib
+ guile-zlib
+ guix
+ guile-gnutls))
(description
"The Guix Build Coordinator helps with performing lots of builds across
potentially many machines, and with doing something with the results and
base-commit: 23a575f97cab5b86a72391dd4ab3b937cd70d8a9
prerequisite-patch-id: e5211bfb82950d0b0a127e22dc4eb63dc5792633
--
2.39.1
Reply sent
to
Christopher Baines <mail <at> cbaines.net>
:
You have taken responsibility.
(Mon, 15 May 2023 08:53:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Christopher Baines <mail <at> cbaines.net>
:
bug acknowledged by developer.
(Mon, 15 May 2023 08:53:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 63458-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Christopher Baines <mail <at> cbaines.net> writes:
> Remove duplication and redundant append calls.
>
> * gnu/packages/package-management.scm (guix-build-coordinator)[inputs]: Always
> add sqitch.
> [propagated-inputs]: Always add guile-fibers-next.
> (guix-build-coordinator-agent-only)[arguments]: Remove unnecessary duplication
> of phases.
> [propagated-inputs]: Remove unnecessary append.
> ---
> gnu/packages/package-management.scm | 109 +++++++---------------------
> 1 file changed, 26 insertions(+), 83 deletions(-)
Pushed to master as 38cfe61780f03b8cc029e1346a11bae2c0231625.
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 12 Jun 2023 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 334 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.