* [bug#44143] [PATCH 2/5] gnu: guix-build-coordinator: Ensure gnutls is available.
2020-10-22 16:25 ` [bug#44143] [PATCH 1/5] services: guix: Fix hooks gexp issue for the Guix Build Coordinator Christopher Baines
@ 2020-10-22 16:25 ` Christopher Baines
2020-10-22 16:25 ` [bug#44143] [PATCH 3/5] services: guix-build-coordinator: Output the start script name Christopher Baines
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Christopher Baines @ 2020-10-22 16:25 UTC (permalink / raw)
To: 44143
Some hooks expect this to be available.
* gnu/packages/package-management.scm (guix-build-coordinator)
[inputs,native-inputs]: Add gnutls.
---
gnu/packages/package-management.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm
index 45c3d4d5cf..349897fd16 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -1048,6 +1048,7 @@ environments.")
`(("pkg-config" ,pkg-config)
("autoconf" ,autoconf)
("automake" ,automake)
+ ("gnutls" ,gnutls)
;; Guile libraries are needed here for cross-compilation.
("guile-json" ,guile-json-3)
@@ -1066,6 +1067,7 @@ environments.")
("guile-zlib" ,guile-zlib)
("guile-sqlite3" ,guile-sqlite3)
("guix" ,guix)
+ ("gnutls" ,gnutls)
("sqlite" ,sqlite)
("sqitch" ,sqitch)))
(home-page "https://git.cbaines.net/guix/build-coordinator/")
--
2.28.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#44143] [PATCH 3/5] services: guix-build-coordinator: Output the start script name.
2020-10-22 16:25 ` [bug#44143] [PATCH 1/5] services: guix: Fix hooks gexp issue for the Guix Build Coordinator Christopher Baines
2020-10-22 16:25 ` [bug#44143] [PATCH 2/5] gnu: guix-build-coordinator: Ensure gnutls is available Christopher Baines
@ 2020-10-22 16:25 ` Christopher Baines
2020-10-22 16:26 ` [bug#44143] [PATCH 4/5] services: guix-build-coordinator: Include the system profile in PATH Christopher Baines
2020-10-22 16:26 ` [bug#44143] [PATCH 5/5] services: guix-build-coordinator: Configure output buffering Christopher Baines
3 siblings, 0 replies; 8+ messages in thread
From: Christopher Baines @ 2020-10-22 16:25 UTC (permalink / raw)
To: 44143
As this can be useful for debugging purposes.
* gnu/services/guix.scm (make-guix-build-coordinator-start-script): Output the
current filename.
---
gnu/services/guix.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gnu/services/guix.scm b/gnu/services/guix.scm
index 665267f5e3..1666733e9c 100644
--- a/gnu/services/guix.scm
+++ b/gnu/services/guix.scm
@@ -200,6 +200,8 @@
(guix-build-coordinator build-allocator)
(guix-build-coordinator coordinator))
+ (simple-format #t "starting the guix-build-coordinator:\n ~A\n"
+ (current-filename))
(let* ((metrics-registry (make-metrics-registry
#:namespace
"guixbuildcoordinator_"))
--
2.28.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#44143] [PATCH 4/5] services: guix-build-coordinator: Include the system profile in PATH.
2020-10-22 16:25 ` [bug#44143] [PATCH 1/5] services: guix: Fix hooks gexp issue for the Guix Build Coordinator Christopher Baines
2020-10-22 16:25 ` [bug#44143] [PATCH 2/5] gnu: guix-build-coordinator: Ensure gnutls is available Christopher Baines
2020-10-22 16:25 ` [bug#44143] [PATCH 3/5] services: guix-build-coordinator: Output the start script name Christopher Baines
@ 2020-10-22 16:26 ` Christopher Baines
2020-10-22 16:26 ` [bug#44143] [PATCH 5/5] services: guix-build-coordinator: Configure output buffering Christopher Baines
3 siblings, 0 replies; 8+ messages in thread
From: Christopher Baines @ 2020-10-22 16:26 UTC (permalink / raw)
To: 44143
As this allows hooks to use the system profile, if that's desired.
* gnu/services/guix.scm (guix-build-coordinator-shepherd-services): Set PATH
to include the system profile.
---
gnu/services/guix.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gnu/services/guix.scm b/gnu/services/guix.scm
index 1666733e9c..ac2a03147c 100644
--- a/gnu/services/guix.scm
+++ b/gnu/services/guix.scm
@@ -267,7 +267,8 @@
#:environment-variables
`(,(string-append
"GUIX_LOCPATH=" #$glibc-utf8-locales "/lib/locale")
- "LC_ALL=en_US.utf8")
+ "LC_ALL=en_US.utf8"
+ "PATH=/run/current-system/profile/bin") ; for hooks
#:log-file "/var/log/guix-build-coordinator/coordinator.log"))
(stop #~(make-kill-destructor))))))
--
2.28.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#44143] [PATCH 5/5] services: guix-build-coordinator: Configure output buffering.
2020-10-22 16:25 ` [bug#44143] [PATCH 1/5] services: guix: Fix hooks gexp issue for the Guix Build Coordinator Christopher Baines
` (2 preceding siblings ...)
2020-10-22 16:26 ` [bug#44143] [PATCH 4/5] services: guix-build-coordinator: Include the system profile in PATH Christopher Baines
@ 2020-10-22 16:26 ` Christopher Baines
3 siblings, 0 replies; 8+ messages in thread
From: Christopher Baines @ 2020-10-22 16:26 UTC (permalink / raw)
To: 44143
Otherwise the logging is garbled.
* gnu/services/guix.scm (make-guix-build-coordinator-start-script): Configure
line output buffering for stdout and stderr.
---
gnu/services/guix.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gnu/services/guix.scm b/gnu/services/guix.scm
index ac2a03147c..4afe02792f 100644
--- a/gnu/services/guix.scm
+++ b/gnu/services/guix.scm
@@ -200,6 +200,9 @@
(guix-build-coordinator build-allocator)
(guix-build-coordinator coordinator))
+ (setvbuf (current-output-port) 'line)
+ (setvbuf (current-error-port) 'line)
+
(simple-format #t "starting the guix-build-coordinator:\n ~A\n"
(current-filename))
(let* ((metrics-registry (make-metrics-registry
--
2.28.0
^ permalink raw reply related [flat|nested] 8+ messages in thread