mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: lvm2: Make sure compiled objects are stripped.
* gnu/packages/linux.scm (lvm2)[arguments]: Add 'make-objects-writeable' phase.
This commit is contained in:
parent
123c0ffb87
commit
7ca97fae36
1 changed files with 11 additions and 1 deletions
|
@ -1671,7 +1671,17 @@ (define-public lvm2
|
|||
|
||||
;; Replace /bin/sh with the right file name.
|
||||
(patch-makefile-SHELL "make.tmpl")
|
||||
#t)))
|
||||
#t))
|
||||
(add-before 'strip 'make-objects-writable
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
;; Make compiled objects writable so they can be stripped.
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(for-each (lambda (file)
|
||||
(chmod file #o755))
|
||||
(append
|
||||
(find-files (string-append out "/lib"))
|
||||
(find-files (string-append out "/sbin"))))
|
||||
#t))))
|
||||
|
||||
#:configure-flags (list (string-append "--sysconfdir="
|
||||
(assoc-ref %outputs "out")
|
||||
|
|
Loading…
Reference in a new issue