mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: libsepol: Fix build on non-x86_64.
* gnu/packages/selinux.scm (libsepol)[arguments]: Add phase "portability". (checkpolicy, libselinux, libsemanage, secilc, python-sepolgen, python-setools, policycoreutils)[arguments]: Remove inherited phase "portability".
This commit is contained in:
parent
57f9671d22
commit
50e8790335
1 changed files with 15 additions and 1 deletions
|
@ -73,7 +73,14 @@ (define-public libsepol
|
|||
(modify-phases %standard-phases
|
||||
(delete 'configure)
|
||||
(add-after 'unpack 'enter-dir
|
||||
(lambda _ (chdir ,name) #t)))))
|
||||
(lambda _ (chdir ,name) #t))
|
||||
(add-after 'enter-dir 'portability
|
||||
(lambda _
|
||||
(substitute* "src/ibpkeys.c"
|
||||
(("#include \"ibpkey_internal.h\"" line)
|
||||
(string-append line "\n#include <inttypes.h>\n"))
|
||||
(("%#lx") "%#\" PRIx64 \""))
|
||||
#t)))))
|
||||
(native-inputs
|
||||
`(("flex" ,flex)))
|
||||
(home-page "https://selinuxproject.org/")
|
||||
|
@ -101,6 +108,7 @@ (define-public checkpolicy
|
|||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(delete 'configure)
|
||||
(delete 'portability)
|
||||
(add-after 'unpack 'enter-dir
|
||||
(lambda _ (chdir ,name) #t)))))
|
||||
(inputs
|
||||
|
@ -136,6 +144,7 @@ (define-public libselinux
|
|||
,flags))
|
||||
((#:phases phases)
|
||||
`(modify-phases ,phases
|
||||
(delete 'portability)
|
||||
(replace 'enter-dir
|
||||
(lambda _ (chdir ,name) #t))
|
||||
(add-after 'enter-dir 'remove-Werror
|
||||
|
@ -187,6 +196,7 @@ (define-public libsemanage
|
|||
,flags))
|
||||
((#:phases phases)
|
||||
`(modify-phases ,phases
|
||||
(delete 'portability)
|
||||
(replace 'enter-dir
|
||||
(lambda _ (chdir ,name) #t))
|
||||
(add-after 'build 'pywrap
|
||||
|
@ -228,6 +238,7 @@ (define-public secilc
|
|||
,flags)))
|
||||
((#:phases phases)
|
||||
`(modify-phases ,phases
|
||||
(delete 'portability)
|
||||
(replace 'enter-dir
|
||||
(lambda _ (chdir ,name) #t))))))
|
||||
(inputs
|
||||
|
@ -250,6 +261,7 @@ (define-public python-sepolgen
|
|||
,@(substitute-keyword-arguments (package-arguments libsepol)
|
||||
((#:phases phases)
|
||||
`(modify-phases ,phases
|
||||
(delete 'portability)
|
||||
(replace 'enter-dir
|
||||
(lambda _ (chdir "python/sepolgen") #t))
|
||||
;; By default all Python files would be installed to
|
||||
|
@ -310,6 +322,7 @@ (define-public python-setools
|
|||
`(#:tests? #f ; the test target causes a rebuild
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(delete 'portability)
|
||||
(add-after 'unpack 'set-SEPOL-variable
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(setenv "SEPOL"
|
||||
|
@ -372,6 +385,7 @@ (define-public policycoreutils
|
|||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(delete 'configure)
|
||||
(delete 'portability)
|
||||
(add-after 'unpack 'enter-dir
|
||||
(lambda _ (chdir ,name) #t))
|
||||
(add-after 'enter-dir 'ignore-/usr-tests
|
||||
|
|
Loading…
Reference in a new issue