On Mar 17, 2008, at 2:35 PM, devzero2000 wrote:
> Hi
>
> I wanted to know if, with the withdraw from RPM 5 of rpmrc, the
> support to /usr/lib/rpm/<vendor>/macros is withdrawn also.
>
All depends on interpretation.
rpm reads macro files as specified according to the same rules as
always.
the cpu-vendor-os-gnu 4-tuple stored in /etc/rpm/platform defines
%{_target_vendor} while bootrstrapping, which gives the intrinsic
ability of 1-of-N per-vendor selectivity.
but the issue invariably boils down to
What is the one perfect default macro configuration path(s)?
> In such case, the new place for put the "vendor" macro file would
> have to be /etc/rpm/macros.<vendor>: it is right?
>
all depends on POV. sure /etc/rpm/macros.<vendor> can be used,
will be picjed up by the /etc/rpm/macros.* glob compiled in by default.
OTOH, there's no control of precedence order through a glob ...
> This is important to know, as in Fedora system the corrected path
> for "gnu autotools" macro (e.g. _sysconfdir ) have been contained
> historically in the /usr/lib/rpm/redhat/macros, installated by
> redhat-rpm-macros rpm, via the "magic" of rpmrc and rpm itself, i
> think.
>
Ask Fedora. They do not use rpm5 ...
73 de Jeff
Received on Mon Mar 17 20:16:03 2008