unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#72828: Grafting breaks libraries signatures
@ 2024-08-27 10:46 Andrew Tropin via Bug reports for GNU Guix
  2024-08-31 19:36 ` bug#72828: libcamera module signatures Ludovic Courtès
  2024-09-02  8:37 ` bug#72828: Grafting breaks libcamera signatures Jacopo Mondi
  0 siblings, 2 replies; 8+ messages in thread
From: Andrew Tropin via Bug reports for GNU Guix @ 2024-08-27 10:46 UTC (permalink / raw)
  To: 72828

[-- Attachment #1: Type: text/plain, Size: 1267 bytes --]

TLDR: libcamera checks the signatures of its own libraries, when loading
them, grafts are enabled by default in Guix, grafted libraries fails to
pass the check.


The full story:

For the last a few days I was updating and fixing libcamera package.

The last problem I faced with it is invalid signatures:

[0:44:16.200646504] [17247] DEBUG IPAManager ipa_manager.cpp:316 IPA module /gnu/store/pfh7adzzy8akkqsjj4wlnmvmbzmrfbvk-libcamera-0.3.1/lib/libcamera/ipa_soft_simple.so signature is not valid

The full log:
https://paste.sr.ht/~abcdw/09e6d4aa66c8fb70a1e8e7e91bfef4cae5aa4e24#cam2.log

I thought it was because of grafts and tried to build it with
--no-grafts, it didn't help.  After that I realized that the signature
created during install phase and before strip phases.  I added a phase
after 'shrink-runpath and it helped:

https://git.savannah.gnu.org/cgit/guix.git/commit/?id=4a19fe41c3

qcam now shows the image, after that I removed --no-grafts flag and
built the package again and the problem came back (now because of
grafts).

The issue with related discussion in libcamera backtracker:
https://bugs.libcamera.org/show_bug.cgi?id=231


How we can solve or workaround this problem?

-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-09-05  7:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-27 10:46 bug#72828: Grafting breaks libraries signatures Andrew Tropin via Bug reports for GNU Guix
2024-08-31 19:36 ` bug#72828: libcamera module signatures Ludovic Courtès
2024-09-02  6:45   ` Andrew Tropin via Bug reports for GNU Guix
2024-09-02  8:37 ` bug#72828: Grafting breaks libcamera signatures Jacopo Mondi
2024-09-04 16:42   ` Ludovic Courtès
2024-09-04 17:42     ` Andrew Tropin via Bug reports for GNU Guix
2024-09-05  6:46       ` Andrew Tropin via Bug reports for GNU Guix
2024-09-05  6:56       ` Jacopo Mondi

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).