guix-commits
[Top][All Lists]
Advanced

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

16/21: gnu: linux-pam: Allow compilation on GNU/Hurd.


From: guix-commits
Subject: 16/21: gnu: linux-pam: Allow compilation on GNU/Hurd.
Date: Thu, 30 Mar 2023 06:47:02 -0400 (EDT)

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

commit 83125dbc94aa1bb110d170d46ed70b8fdbd5f15e
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Mar 26 21:58:49 2023 +0200

    gnu: linux-pam: Allow compilation on GNU/Hurd.
    
    * gnu/packages/linux.scm (linux-pam)[arguments]: Add #:phases.
---
 gnu/packages/linux.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 4bc547e832..fb29730bf3 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1824,6 +1824,16 @@ which need to be installed separately.")
                                        #~("--disable-nis")
                                        #~()))
 
+      #:phases (if (target-hurd?)
+                   #~(modify-phases %standard-phases
+                       (add-after 'unpack 'skip-pam-limits
+                         (lambda _
+                           ;; 'pam_limits.c' uses <sys/prctl.h>, which is
+                           ;; Linux-specific.  Skip it on GNU/Hurd.
+                           (substitute* "modules/Makefile.in"
+                             (("pam_limits") "")))))
+                   #~%standard-phases)
+
       ;; XXX: Tests won't run in chroot, presumably because /etc/pam.d
       ;; isn't available.
       #:tests? #f))



reply via email to

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