[Rpm-maint] [rpm-software-management/rpm] RFE: cleanly support post-stripping actions in spec (Issue #3092)

Panu Matilainen notifications at github.com
Mon May 13 10:18:17 UTC 2024


Looking at Fedora packages, there's a very distinct use-case for which multiple packages have to override the entire %__spec_install_post section: stripping changes checksums and the like, and any embedded signatures in files will have to be (re)done after the stripping.

As the kernel.spec puts it:
```
# Disgusting hack alert! We need to ensure we sign modules *after* all
# invocations of strip occur, which is in __debug_install_post if
# find-debuginfo.sh runs, and __os_install_post if not.
```

This pattern causes a verbatim copy of %__spec_install_post to be carried in affected packages (nettle, nss, openssl, gnutls, libgcrypt, you get the picture), and as ever with copies, they get out of sync and lack features/fixes when there are changes to the original.

We need to offer a clean way to do this without needing ugly copies and overrides.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3092
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/3092 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240513/be8f864a/attachment-0001.html>


More information about the Rpm-maint mailing list