mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-25 20:19:18 -05:00
gnu: sequoia: Fix pkgconfig files.
The pkgconfig files defines the wrong prefix: It is the build directory, while it should be the installation prefix. This is caused by Makefiles replacing `PREFIX` by `$(shell pwd)`. See <https://gitlab.com/sequoia-pgp/sequoia/-/issues/502> for details. * gnu/packages/sequoia.scm (sequoia)[fix-pkgconfig-file-substitutes]: New phase.
This commit is contained in:
parent
d58c9574b3
commit
fbe17e242b
1 changed files with 9 additions and 0 deletions
|
@ -148,6 +148,15 @@ (define-public sequoia
|
||||||
(("\\ssetup.py\\s+install\\s")
|
(("\\ssetup.py\\s+install\\s")
|
||||||
" setup.py install --root=/ --single-version-externally-managed "))
|
" setup.py install --root=/ --single-version-externally-managed "))
|
||||||
#t)))
|
#t)))
|
||||||
|
(add-after 'unpack 'fix-pkgconfig-file-substitutes
|
||||||
|
;; preempt Makefiles replacing PREFIX by pwd
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
(substitute* "ffi/sequoia.pc.in"
|
||||||
|
(("PREFIX") out))
|
||||||
|
(substitute* "openpgp-ffi/sequoia-openpgp.pc.in"
|
||||||
|
(("PREFIX") out))
|
||||||
|
#t)))
|
||||||
(add-after 'unpack 'set-missing-env-vars
|
(add-after 'unpack 'set-missing-env-vars
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
;; FIXME: why do we need to set this here?
|
;; FIXME: why do we need to set this here?
|
||||||
|
|
Loading…
Reference in a new issue