gnu: elogind: Return #t from all phases.

* gnu/packages/freedesktop.scm (elogin)[arguments]: Return #t from all phases.
Use invoke and remove vestigial plumbing in the 'autogen' phase.
This commit is contained in:
Mark H Weaver 2018-03-23 01:57:20 -04:00
parent f97cb24967
commit 3f54fd1ea5
No known key found for this signature in database
GPG Key ID: 7CEF29847562C516
1 changed files with 6 additions and 4 deletions

View File

@ -275,11 +275,12 @@ the freedesktop.org XDG Base Directory specification.")
;; Fix compilation with glibc >= 2.26, which removed xlocale.h. ;; Fix compilation with glibc >= 2.26, which removed xlocale.h.
;; This can be removed for elogind 234. ;; This can be removed for elogind 234.
(substitute* "src/basic/parse-util.c" (substitute* "src/basic/parse-util.c"
(("xlocale\\.h") "locale.h")))) (("xlocale\\.h") "locale.h"))
#t))
(add-before 'configure 'autogen (add-before 'configure 'autogen
(lambda _ (lambda _
(and (zero? (system* "intltoolize" "--force" "--automake")) (invoke "intltoolize" "--force" "--automake")
(zero? (system* "autoreconf" "-vif"))))) (invoke "autoreconf" "-vif")))
(add-before 'build 'fix-service-file (add-before 'build 'fix-service-file
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
;; Fix the file name of the 'elogind' binary in the D-Bus ;; Fix the file name of the 'elogind' binary in the D-Bus
@ -287,7 +288,8 @@ the freedesktop.org XDG Base Directory specification.")
(substitute* "src/login/org.freedesktop.login1.service" (substitute* "src/login/org.freedesktop.login1.service"
(("^Exec=.*") (("^Exec=.*")
(string-append "Exec=" (assoc-ref %outputs "out") (string-append "Exec=" (assoc-ref %outputs "out")
"/libexec/elogind/elogind\n"))))) "/libexec/elogind/elogind\n")))
#t))
(add-after 'install 'add-libcap-to-search-path (add-after 'install 'add-libcap-to-search-path
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
;; Add a missing '-L' for libcap in libelogind.la. See ;; Add a missing '-L' for libcap in libelogind.la. See