me
/
guix
Archived
1
0
Fork 0

services: shepherd: Silence Guile warnings.

This avoids:

  WARNING: …: imported module (guix build utils) overrides core binding `delete'

* gnu/services/shepherd.scm (%default-modules): #:hide 'delete'
from (guix build utils).
(shepherd-configuration-file)[config]: Wrap calls to 'load-compiled' in
'parameterize'.
master
Ludovic Courtès 2020-05-15 22:37:39 +02:00
parent 12adffd43e
commit 408ae72cd1
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 4 additions and 2 deletions

View File

@ -146,7 +146,7 @@ DEFAULT is given, use it as the service's default value."
;; Default set of modules visible in a service's file.
`((shepherd service)
(oop goops)
(guix build utils)
((guix build utils) #:hide (delete))
(guix build syscalls)))
(define-record-type* <shepherd-service>
@ -315,7 +315,9 @@ and return the resulting '.go' file."
(call-with-error-handling
(lambda ()
(apply register-services
(map load-compiled '#$(map scm->go files)))))
(parameterize ((current-warning-port
(%make-void-port "w")))
(map load-compiled '#$(map scm->go files))))))
(format #t "starting services...~%")
(for-each (lambda (service)