gnu: libsemanage: Remove input labels.
* gnu/packages/selinux.scm (libsemanage)[arguments]: Use G-expression. [native-inputs, inputs]: Remove labels.
This commit is contained in:
parent
54f14833a9
commit
9bfdd1e7cb
@ -187,41 +187,33 @@ the core SELinux management utilities.")
|
|||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments (package-arguments libsepol)
|
(substitute-keyword-arguments (package-arguments libsepol)
|
||||||
((#:make-flags flags)
|
((#:make-flags flags)
|
||||||
`(cons* "PYTHON=python3"
|
#~(cons* "PYTHON=python3"
|
||||||
(string-append "PYTHONLIBDIR="
|
(string-append "PYTHONLIBDIR="
|
||||||
(assoc-ref %outputs "out")
|
#$output
|
||||||
"/lib/python"
|
"/lib/python"
|
||||||
,(version-major+minor (package-version python))
|
#$(version-major+minor (package-version python))
|
||||||
"/site-packages/")
|
"/site-packages/")
|
||||||
,flags))
|
#$flags))
|
||||||
((#:phases phases)
|
((#:phases phases)
|
||||||
`(modify-phases ,phases
|
#~(modify-phases #$phases
|
||||||
(delete 'portability)
|
(delete 'portability)
|
||||||
(replace 'enter-dir
|
(replace 'enter-dir
|
||||||
(lambda _ (chdir ,name)))
|
(lambda _ (chdir #$name)))
|
||||||
(add-before 'install 'adjust-semanage-conf-location
|
(add-before 'install 'adjust-semanage-conf-location
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "src/Makefile"
|
(substitute* "src/Makefile"
|
||||||
(("DEFAULT_SEMANAGE_CONF_LOCATION=/etc")
|
(("DEFAULT_SEMANAGE_CONF_LOCATION=/etc")
|
||||||
"DEFAULT_SEMANAGE_CONF_LOCATION=$(PREFIX)/etc"))))
|
"DEFAULT_SEMANAGE_CONF_LOCATION=$(PREFIX)/etc"))))
|
||||||
(add-after 'build 'pywrap
|
(add-after 'build 'pywrap
|
||||||
(lambda* (#:key make-flags #:allow-other-keys)
|
(lambda* (#:key make-flags #:allow-other-keys)
|
||||||
(apply invoke "make" "pywrap" make-flags)))
|
(apply invoke "make" "pywrap" make-flags)))
|
||||||
(add-after 'install 'install-pywrap
|
(add-after 'install 'install-pywrap
|
||||||
(lambda* (#:key make-flags #:allow-other-keys)
|
(lambda* (#:key make-flags #:allow-other-keys)
|
||||||
(apply invoke "make" "install-pywrap" make-flags)))))))
|
(apply invoke "make" "install-pywrap" make-flags)))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("libsepol" ,libsepol)
|
(list audit libsepol libselinux python-wrapper))
|
||||||
("libselinux" ,libselinux)
|
|
||||||
("audit" ,audit)
|
|
||||||
;; For pywrap phase
|
|
||||||
("python" ,python-wrapper)))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("bison" ,bison)
|
(list bison flex pkg-config swig))
|
||||||
("flex" ,flex)
|
|
||||||
;; For pywrap phase
|
|
||||||
("swig" ,swig)
|
|
||||||
("pkg-config" ,pkg-config)))
|
|
||||||
(synopsis "SELinux policy management libraries")
|
(synopsis "SELinux policy management libraries")
|
||||||
(description
|
(description
|
||||||
"The libsemanage library provides an API for the manipulation of SELinux
|
"The libsemanage library provides an API for the manipulation of SELinux
|
||||||
|
Loading…
x
Reference in New Issue
Block a user