gnu: libsepol: Use G-expression.
* gnu/packages/selinux.scm (libsepol)[arguments]: Convert to gexp.
This commit is contained in:
parent
c6e3f4eb5a
commit
d7278e4020
1 changed files with 26 additions and 25 deletions
|
@ -54,37 +54,38 @@
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/SELinuxProject/selinux")
|
(url "https://github.com/SELinuxProject/selinux")
|
||||||
(commit version)))
|
(commit version)))
|
||||||
(file-name (git-file-name "selinux" version))
|
(file-name (git-file-name "selinux" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1lcmgmfr0q7g5cwg6b7jm6ncw8cw6c1jblkm93v1g37bfhcgrqc0"))))
|
"1lcmgmfr0q7g5cwg6b7jm6ncw8cw6c1jblkm93v1g37bfhcgrqc0"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; tests require checkpolicy, which requires libsepol
|
(list
|
||||||
#:test-target "test"
|
#:tests? #f ; tests require checkpolicy, which requires libsepol
|
||||||
#:make-flags
|
#:test-target "test"
|
||||||
(let ((out (assoc-ref %outputs "out")))
|
#:make-flags
|
||||||
(list (string-append "PREFIX=" out)
|
#~(let ((out #$output))
|
||||||
(string-append "SHLIBDIR=" out "/lib")
|
(list (string-append "PREFIX=" out)
|
||||||
(string-append "MAN3DIR=" out "/share/man/man3")
|
(string-append "SHLIBDIR=" out "/lib")
|
||||||
(string-append "MAN5DIR=" out "/share/man/man5")
|
(string-append "MAN3DIR=" out "/share/man/man3")
|
||||||
(string-append "MAN8DIR=" out "/share/man/man8")
|
(string-append "MAN5DIR=" out "/share/man/man5")
|
||||||
(string-append "CFLAGS=-Wno-error")
|
(string-append "MAN8DIR=" out "/share/man/man8")
|
||||||
(string-append "LDFLAGS=-Wl,-rpath=" out "/lib")
|
(string-append "CFLAGS=-Wno-error")
|
||||||
(string-append "CC=" ,(cc-for-target))))
|
(string-append "LDFLAGS=-Wl,-rpath=" out "/lib")
|
||||||
#:phases
|
(string-append "CC=" #$(cc-for-target))))
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
(delete 'configure)
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'enter-dir
|
(delete 'configure)
|
||||||
(lambda _ (chdir ,name)))
|
(add-after 'unpack 'enter-dir
|
||||||
(add-after 'enter-dir 'portability
|
(lambda _ (chdir #$name)))
|
||||||
(lambda _
|
(add-after 'enter-dir 'portability
|
||||||
(substitute* "src/ibpkeys.c"
|
(lambda _
|
||||||
(("#include \"ibpkey_internal.h\"" line)
|
(substitute* "src/ibpkeys.c"
|
||||||
(string-append line "\n#include <inttypes.h>\n"))
|
(("#include \"ibpkey_internal.h\"" line)
|
||||||
(("%#lx") "%#\" PRIx64 \"")))))))
|
(string-append line "\n#include <inttypes.h>\n"))
|
||||||
|
(("%#lx") "%#\" PRIx64 \"")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list flex))
|
(list flex))
|
||||||
(home-page "https://selinuxproject.org/")
|
(home-page "https://selinuxproject.org/")
|
||||||
|
|
Reference in a new issue