summary refs log tree commit diff
path: root/gnu/packages/linux.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2023-03-26 21:58:49 +0200
committerLudovic Courtès <ludo@gnu.org>2023-03-30 12:44:20 +0200
commit83125dbc94aa1bb110d170d46ed70b8fdbd5f15e (patch)
tree94d71ee1523746ec88d9dd8dbc6bf17fc10e9b7e /gnu/packages/linux.scm
parent1c179980fa32ef436c5d49d275510444573cf1ea (diff)
downloadguix-83125dbc94aa1bb110d170d46ed70b8fdbd5f15e.tar.gz
gnu: linux-pam: Allow compilation on GNU/Hurd.
* gnu/packages/linux.scm (linux-pam)[arguments]: Add #:phases.
Diffstat (limited to 'gnu/packages/linux.scm')
-rw-r--r--gnu/packages/linux.scm10
1 files changed, 10 insertions, 0 deletions
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))