diff options
author | Marius Bakke <marius@gnu.org> | 2022-08-13 14:11:36 +0200 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2022-08-13 19:24:35 +0200 |
commit | d7278e4020cb3197d6f4d18e3347137e5f710774 (patch) | |
tree | 2369cc1cdc7b96c7787647fe26c2754c0558f755 /gnu/packages | |
parent | c6e3f4eb5adaab3701d42dbc4df88b7179a3b07a (diff) | |
download | guix-d7278e4020cb3197d6f4d18e3347137e5f710774.tar.gz |
gnu: libsepol: Use G-expression.
* gnu/packages/selinux.scm (libsepol)[arguments]: Convert to gexp.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/selinux.scm | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/gnu/packages/selinux.scm b/gnu/packages/selinux.scm index 7686db7421..e4c57f4747 100644 --- a/gnu/packages/selinux.scm +++ b/gnu/packages/selinux.scm @@ -54,37 +54,38 @@ (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/SELinuxProject/selinux") - (commit version))) + (url "https://github.com/SELinuxProject/selinux") + (commit version))) (file-name (git-file-name "selinux" version)) (sha256 (base32 "1lcmgmfr0q7g5cwg6b7jm6ncw8cw6c1jblkm93v1g37bfhcgrqc0")))) (build-system gnu-build-system) (arguments - `(#:tests? #f ; tests require checkpolicy, which requires libsepol - #:test-target "test" - #:make-flags - (let ((out (assoc-ref %outputs "out"))) - (list (string-append "PREFIX=" out) - (string-append "SHLIBDIR=" out "/lib") - (string-append "MAN3DIR=" out "/share/man/man3") - (string-append "MAN5DIR=" out "/share/man/man5") - (string-append "MAN8DIR=" out "/share/man/man8") - (string-append "CFLAGS=-Wno-error") - (string-append "LDFLAGS=-Wl,-rpath=" out "/lib") - (string-append "CC=" ,(cc-for-target)))) - #:phases - (modify-phases %standard-phases - (delete 'configure) - (add-after 'unpack 'enter-dir - (lambda _ (chdir ,name))) - (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 \""))))))) + (list + #:tests? #f ; tests require checkpolicy, which requires libsepol + #:test-target "test" + #:make-flags + #~(let ((out #$output)) + (list (string-append "PREFIX=" out) + (string-append "SHLIBDIR=" out "/lib") + (string-append "MAN3DIR=" out "/share/man/man3") + (string-append "MAN5DIR=" out "/share/man/man5") + (string-append "MAN8DIR=" out "/share/man/man8") + (string-append "CFLAGS=-Wno-error") + (string-append "LDFLAGS=-Wl,-rpath=" out "/lib") + (string-append "CC=" #$(cc-for-target)))) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'enter-dir + (lambda _ (chdir #$name))) + (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 \""))))))) (native-inputs (list flex)) (home-page "https://selinuxproject.org/") |