Re: Packages which needlessly use %defattr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 3, 2018 at 3:02 PM, Jason L Tibbitts III <tibbs@xxxxxxxxxxx> wrote:
> In a %files section of a specfile, the %defattr directive is used to set
> the default file ownership and permissions.  RPM has provided a sensible
> default since version 4.4 (which predates FC6 and RHEL5), but very many
> specfiles still include an initial %defattr line like
> "%defattr(-,root,root,-)" as the initial line in a %files section even
> though this has not been needed for well over a decade now.  This
> construct even appears in new specfiles, perhaps because it appears in
> so many existing packages.
>
> The packaging guidelines indicate that %defattr should not be used in
> this manner.  (This is not a recent change.)
> https://fedoraproject.org/wiki/Packaging:Guidelines#File_Permissions

Yeah, but since it's many thousands of packages, I think maybe you
didn't have to send the whole list?

It's been useful for legibility, even it's no longer recommended. Is
it really hurting anyone at this point? And is it worth the thousands
of .spec file changes to aggressively clear?

Also, it's not trivia to tell people "oh, my script is pretty safe,
but you should please check many thousands of packages for me!!!" How
about, instead, posting the script so we can check the syntax first?
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx/message/HAX6INYYG5ROMZTJIIEG464HMW4R364M/




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux