gnu: icu4c: Patch RUNPATH of libraries.
* gnu/packages/icu4c.scm (icu4c): Elf-patch RUNPATH of libraries, for instance of libicuuc.so.
This commit is contained in:
parent
43824910f2
commit
a2270ce260
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
(define-module (gnu packages icu4c)
|
(define-module (gnu packages icu4c)
|
||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
|
#:use-module (gnu packages patchelf)
|
||||||
#:use-module (gnu packages perl)
|
#:use-module (gnu packages perl)
|
||||||
#:use-module (guix licenses)
|
#:use-module (guix licenses)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
|
@ -38,9 +39,18 @@
|
||||||
(sha256 (base32
|
(sha256 (base32
|
||||||
"13yz0kk6zsgj94idnlr3vbg8iph5z4ly4b4xrd5wfja7q3ijdx56"))))
|
"13yz0kk6zsgj94idnlr3vbg8iph5z4ly4b4xrd5wfja7q3ijdx56"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(inputs `(("perl" ,perl)))
|
(inputs
|
||||||
|
`(("patchelf" ,patchelf)
|
||||||
|
("perl" ,perl)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:modules ((guix build gnu-build-system)
|
||||||
|
(guix build utils)
|
||||||
|
(guix build rpath)
|
||||||
|
(srfi srfi-26))
|
||||||
|
#:imported-modules ((guix build gnu-build-system)
|
||||||
|
(guix build utils)
|
||||||
|
(guix build rpath))
|
||||||
|
#:phases
|
||||||
(alist-replace
|
(alist-replace
|
||||||
'unpack
|
'unpack
|
||||||
(lambda* (#:key source #:allow-other-keys)
|
(lambda* (#:key source #:allow-other-keys)
|
||||||
|
@ -56,7 +66,16 @@
|
||||||
(("`/bin/sh")
|
(("`/bin/sh")
|
||||||
(string-append "`" (which "bash"))))
|
(string-append "`" (which "bash"))))
|
||||||
(apply configure args)))
|
(apply configure args)))
|
||||||
%standard-phases))))
|
(alist-cons-after
|
||||||
|
'strip 'add-lib-to-runpath
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(lib (string-append out "/lib")))
|
||||||
|
;; Add LIB to the RUNPATH of all the libraries.
|
||||||
|
(with-directory-excursion out
|
||||||
|
(for-each (cut augment-rpath <> lib)
|
||||||
|
(find-files "lib" ".*")))))
|
||||||
|
%standard-phases)))))
|
||||||
(synopsis "ICU, International Components for Unicode")
|
(synopsis "ICU, International Components for Unicode")
|
||||||
(description
|
(description
|
||||||
"ICU is a set of C/C++ and Java libraries providing Unicode and
|
"ICU is a set of C/C++ and Java libraries providing Unicode and
|
||||||
|
|
Loading…
Reference in New Issue