[Rpm-maint] [rpm-software-management/rpm] Buildroot policy scripts run before %doc processing (Issue #3558)

Panu Matilainen notifications at github.com
Fri Feb 7 08:22:50 UTC 2025


The "special %doc" is indeed very, very special.

Build root policy applies to files installed by %install stage, the %doc processing occurs much, much, much later. Changing this would probably be very difficult due to the way the special %doc and %license processing is tied to %files section processing. And, who knows what it doing so would break because this has been the case for closer to 30 years now.

Maybe it'd nowadays be (more) feasible to have eg %install specific macro that does something similar to what the build-in %doc does, but from %install. But no such macro exists now.

For existing rpm's, the only way to get brp-scripts to process documentation is to install the docs in %install stage.

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

Message ID: <rpm-software-management/rpm/issues/3558/2642230921 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250207/2500135b/attachment.htm>


More information about the Rpm-maint mailing list