guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/04: gnu: shadow: Merge in shadow-with-man-pages.


From: guix-commits
Subject: 04/04: gnu: shadow: Merge in shadow-with-man-pages.
Date: Sun, 27 Nov 2022 14:53:27 -0500 (EST)

efraim pushed a commit to branch core-updates
in repository guix.

commit 26a200f71c8407007c4eb8a85f685d21f551cb33
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Nov 27 15:53:09 2022 +0200

    gnu: shadow: Merge in shadow-with-man-pages.
    
    * gnu/packages/admin.scm (shadow)[arguments]: Add phase to install the
    manpages. Make sure 'remove-groups comes after installing the manpages.
    [properties]: Remove field.
    (shadow-with-man-pages): Remove variable.
    * gnu/system.scm (%base-packages-utils): Replace shadow-with-man-pages
    with shadow.
---
 gnu/packages/admin.scm | 25 +++++++------------------
 gnu/system.scm         |  2 +-
 2 files changed, 8 insertions(+), 19 deletions(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index da832ac5c3..b2aadcc458 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -932,7 +932,13 @@ hostname.")
                (substitute* "lib/nscd.c"
                  (("/usr/sbin/nscd")
                   (string-append libc "/sbin/nscd"))))))
-         (add-after 'install 'remove-groups
+         (add-after 'install 'install-man-pages
+           (lambda _
+             ;; The top-level Makefile.am wrongfully has "SUBDIRS += man"
+             ;; under "if ENABLE_REGENERATE_MAN", even though prebuilt man
+             ;; pages are available.  Thus, install them manually.
+             (invoke "make" "-C" "man" "install")))
+         (add-after 'install-man-pages 'remove-groups
            (lambda* (#:key outputs #:allow-other-keys)
              ;; Remove `groups', which is already provided by Coreutils.
              (let* ((out (assoc-ref outputs "out"))
@@ -953,27 +959,10 @@ hostname.")
      "Shadow provides a number of authentication-related tools, including:
 login, passwd, su, groupadd, and useradd.")
 
-    (properties '((hidden? . #t)))                ;see below
-
     ;; The `vipw' program is GPLv2+.
     ;; libmisc/salt.c is public domain.
     (license license:bsd-3)))
 
-(define-public shadow-with-man-pages
-  ;; TODO: Merge with 'shadow' on the next core-updates cycle.
-  (package/inherit shadow
-    (properties '())                              ;not hidden
-    (arguments
-     (substitute-keyword-arguments (package-arguments shadow)
-       ((#:phases phases '%standard-phases)
-        `(modify-phases ,phases
-           (add-after 'install 'install-man-pages
-             (lambda _
-               ;; The top-level Makefile.am wrongfully has "SUBDIRS += man"
-               ;; under "if ENABLE_REGENERATE_MAN", even though prebuilt man
-               ;; pages are available.  Thus, install them manually.
-               (invoke "make" "-C" "man" "install")))))))))
-
 (define-public mingetty
   (package
     (name "mingetty")
diff --git a/gnu/system.scm b/gnu/system.scm
index a94f0a9a1f..9c2e50bec5 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -846,7 +846,7 @@ of PROVENANCE-SERVICE-TYPE to its services."
 (define %base-packages-utils
   ;; Default set of  utilities packages.
  (cons* procps psmisc which
-        (@ (gnu packages admin) shadow-with-man-pages) ;for 'passwd'
+        shadow                          ;for 'passwd'
 
         guile-3.0-latest
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]