[Mageia-dev] [RFC] remove support for /etc/rpm/macros.d/*.macros

nicolas vigier boklm at mars-attacks.org
Mon Jul 30 18:21:06 CEST 2012


On Mon, 30 Jul 2012, Olivier Blin wrote:

> Olav Vitters <olav at vitters.nl> writes:
> 
> > On Mon, Jul 30, 2012 at 04:47:54PM +0200, Thierry Vignaud wrote:
> >> I would like to drop that patch from rpm (one less to maintain).
> >> That means basically renaming files:
> >>   /etc/rpm/macros.d/foobar.macros => /etc/rpm/macros/macros.foobar
> > [..]
> >> WDYT?
> >
> > I thought latest idea that /etc is solely for the sysadmin, so shouldn't
> > above be:
> >   /usr/rpm/macros/macros.foobar
> 
> Right, these macros are not supposed to be edited by the sysadmin, we
> could even use /usr/lib/rpm/macros.<foo>
> (we already use this for perl, php, python, systemd)

Actually rpm provide some macro file in /usr/lib/rpm/macros.<foo>, but
they need to be included manually from spec file. They start with a
comment like this :
# To make use of these macros insert the following line into your spec
# file:
# %include %{_rpmconfigdir}/macros.perl



More information about the Mageia-dev mailing list