mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-01 00:52:55 -05:00
gnu: bcachefs-tools-static: Fix build.
This follows up on commit 196e3f5235
:
bcachefs-tools now unconditionally builds and installs libbcachefs.so.
* gnu/packages/file-systems.scm (bcachefs-tools-static)[arguments]:
Add a new 'skip-shared-library phase.
This commit is contained in:
parent
1f5e6ff648
commit
5df03003e6
1 changed files with 11 additions and 1 deletions
|
@ -507,7 +507,17 @@ (define-public bcachefs-tools/static
|
||||||
(substitute-keyword-arguments (package-arguments bcachefs-tools)
|
(substitute-keyword-arguments (package-arguments bcachefs-tools)
|
||||||
((#:make-flags make-flags)
|
((#:make-flags make-flags)
|
||||||
`(append ,make-flags
|
`(append ,make-flags
|
||||||
(list "LDFLAGS=-static")))))
|
(list "LDFLAGS=-static")))
|
||||||
|
((#:phases phases)
|
||||||
|
`(modify-phases ,phases
|
||||||
|
(add-after 'unpack 'skip-shared-library
|
||||||
|
(lambda _
|
||||||
|
(substitute* "Makefile"
|
||||||
|
;; Building the shared library with ‘-static’ obviously fails…
|
||||||
|
(("^((all|install):.*)\\blib\\b(.*)" _ prefix suffix)
|
||||||
|
(string-append prefix suffix "\n"))
|
||||||
|
;; …as does installing a now non-existent file.
|
||||||
|
((".*\\$\\(INSTALL\\).* lib.*") ""))))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("eudev:static" ,eudev "static")
|
`(("eudev:static" ,eudev "static")
|
||||||
("libscrypt:static" ,libscrypt "static")
|
("libscrypt:static" ,libscrypt "static")
|
||||||
|
|
Loading…
Reference in a new issue