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:
Andrew Tropin 2024-08-27 12:53:31 +04:00
parent 09abfd628a
commit 4a19fe41c3
No known key found for this signature in database
GPG Key ID: 2208D20958C1DEB0

View File

@ -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'