mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-05 10:20:14 +01:00
gnu: rpm: Set localstatedir to /var.
* gnu/packages/package-management.scm (rpm) [configure-flags]: Add --localstatedir=/var. [phases] {patch-build-system}: New phase.
This commit is contained in:
parent
0ec8c97344
commit
de2729bd96
1 changed files with 11 additions and 2 deletions
|
@ -842,13 +842,22 @@ features of Stow with some extensions.")
|
||||||
(outputs '("out" "debug"))
|
(outputs '("out" "debug"))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:configure-flags '("--enable-python")
|
'(#:configure-flags '("--enable-python"
|
||||||
|
;; The RPM database must be writable.
|
||||||
|
"--localstatedir=/var")
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases (modify-phases %standard-phases
|
||||||
(add-after 'unpack 'fix-lua-check
|
(add-after 'unpack 'fix-lua-check
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "configure"
|
(substitute* "configure"
|
||||||
(("lua >= ?.?")
|
(("lua >= ?.?")
|
||||||
"lua-5.3 >= 5.3")))))))
|
"lua-5.3 >= 5.3"))))
|
||||||
|
(add-after 'unpack 'patch-build-system
|
||||||
|
(lambda _
|
||||||
|
;; The build system attempts to create /var in the build
|
||||||
|
;; chroot, and fails.
|
||||||
|
(substitute* "Makefile.in"
|
||||||
|
((".*MKDIR_P) \\$\\(DESTDIR)\\$\\(localstatedir.*")
|
||||||
|
"")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list pkg-config
|
(list pkg-config
|
||||||
python))
|
python))
|
||||||
|
|
Loading…
Add table
Reference in a new issue