RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Question on /usr/lib/rpm/<vendor>/macros unsupport

From: Jeff Johnson <n3npq@mac.com>
Date: Mon 17 Mar 2008 - 20:15:30 CET
Message-Id: <2C7CA3CE-F7C2-4895-B968-F667F2646773@mac.com>

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
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.