Packages installing files to /etc/rpm

Vít Ondruch vondruch at redhat.com
Mon Feb 3 08:32:05 UTC 2014


Dne 31.1.2014 21:23, Ville Skyttä napsal(a):
> A number of packages install files to /etc/rpm in Rawhide; the proper
> place for macros.* is /usr/lib/rpm/macros.d for rpm >= 4.11. And no
> matter what the location, these files should not be marked as %config.
>
> Specfiles not targeting EL < 7 can simply replace %{_sysconfdir}/rpm
> with %{_rpmconfigdir}/macros.d and ones that wish to stay compatible
> with EL5 and 6 can do something like this to find the proper dir:
>
> %global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] ||
> d=%{_sysconfdir}/rpm; echo $d)

Thanks for bringing this up. Just FYI, I proposed macro for the RPM
macros directory [1], which was not yet accepted/implemented:


>
> List of affected packages follows (maintainer package comaintainers):
>
> kanarip ruby bkabrda,jstribny,kanarip,mmorsi,mtasaka,skottler,tagoh,vondruch
> kanarip rubygems kanarip,mtasaka,skottler,stahnma,vondruch
>

Will take care of these as soon as new Ruby is approved for F21. The fix
is already prepared for some while in Ruby 2.1 branch [2].


Vít


[1] https://bugzilla.redhat.com/show_bug.cgi?id=1045070
[2]
http://pkgs.fedoraproject.org/cgit/ruby.git/commit/?h=private-ruby-2.1&id=0f37fb5c2c291a48379a7edb97c53ae991fcb401


More information about the devel mailing list