[Rpm-maint] [rpm-software-management/rpm] RPM shows warning about including file twice when using %doc (#336)

Panu Matilainen notifications at github.com
Tue Oct 24 07:34:06 UTC 2017


This is quite a common pattern in packaging where you have a package owned "top" directory and then you'd want that *one* (or two...) file/directory inside that to differ from the defaults. Whether for file ownership / permission bits or virtual attributes. Not specific to %doc or %license at all.

The warning is there to point out possible packaging bugs, so what's needed is a way to tell rpm what you actually mean here. One possibility is simply making the pattern legitimate and try to be more clever about the complaints, generally something like: if one entry is using defaults and the other has non-default values then just let the non-default win silently, but if both are using non-default values then both can't be right and a warning should be issued. And I suppose a warning should be issued for identical entries too - it might be entirely harmless but it's almost certainly a packaging mistake anyway.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/336#issuecomment-338901018
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20171024/d567f51a/attachment.html>


More information about the Rpm-maint mailing list