gnu: linux-pam: Allow compilation on GNU/Hurd.
* gnu/packages/linux.scm (linux-pam)[arguments]: Add #:phases.
This commit is contained in:
parent
1c179980fa
commit
83125dbc94
1 changed files with 10 additions and 0 deletions
|
@ -1824,6 +1824,16 @@ which need to be installed separately.")
|
||||||
#~("--disable-nis")
|
#~("--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
|
;; XXX: Tests won't run in chroot, presumably because /etc/pam.d
|
||||||
;; isn't available.
|
;; isn't available.
|
||||||
#:tests? #f))
|
#:tests? #f))
|
||||||
|
|
Reference in a new issue