Question about profile.d scripts definition in Spec file

Ralf Corsepius rc040203 at freenet.de
Sun Aug 2 06:54:21 UTC 2015


On 08/02/2015 08:39 AM, Marcin Haba wrote:
> Hello,
>
> I am trying to make informal review following feature request:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1244353
>
> One from warnings returned by rpmlint is:
>
> ossim-data.x86_64: W: non-conffile-in-etc /etc/profile.d/ossim.sh
>
> Because ossim.sh is not configuration file but shell script (as usual in
> profile.d/) I had a doubt about treating this warning.

Well, I sense a misinterpretation of "%config".

In the context of the /etc file hierarchy "%config" means 
"user-customizable", which means rpm/yum/dnf updates must not destroy 
any changes a user may have applied and should backup instead.

> So I asked on fedora-review IRC channel and there I received answer that
> this warning is acceptable.
Well, it's a minor issue, but it definitely is arguable.

> In the bugzilla task I received answer that for the ossim.sh file should
> be used %config macro.
>
> My question is: what is valid answer for this case?

My recommendation is to use %config.

Ralf



More information about the devel mailing list