gnu: libcamera: Re-sign binaries after stripping.
* gnu/packages/networking.scm (libcamera) [arguments]: Re-sign binaries after stripping. Change-Id: If57a44d22347d8ebc7eab7df343e9c3996fe1793
This commit is contained in:
parent
09abfd628a
commit
4a19fe41c3
@ -427,7 +427,21 @@ them in order to efficiently transfer a minimal amount of data.")
|
||||
(mkdir-p (string-append gst "/lib"))
|
||||
(rename-file
|
||||
(string-append out "/lib/gstreamer-1.0")
|
||||
(string-append gst "/lib/gstreamer-1.0"))))))))
|
||||
(string-append gst "/lib/gstreamer-1.0")))))
|
||||
(add-after 'shrink-runpath 're-sign-binaries
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
"Update signatures of all ipa libraries.
|
||||
|
||||
After stipping phases signatures are not valid anymore, so it's necessary to
|
||||
re-sign."
|
||||
(let* ((out (assoc-ref outputs "out")))
|
||||
(for-each
|
||||
(lambda (file)
|
||||
(invoke
|
||||
"source/src/ipa/ipa-sign.sh" "src/ipa-priv-key.pem"
|
||||
file (string-append file ".sign")))
|
||||
(find-files
|
||||
(string-append out "/lib/libcamera") "\\.so$"))))))))
|
||||
(native-inputs
|
||||
(list googletest
|
||||
graphviz ;for 'dot'
|
||||
|
Loading…
Reference in New Issue
Block a user