RPM Community Forums

Mailing List Message of <rpm-users>

Re: Where to put distrubtion-specific macros

From: Jeff Johnson <n3npq@mac.com>
Date: Tue 14 Oct 2008 - 19:22:04 CEST
Message-id: <0A0D74F9-5A9D-49D6-8D47-2EE32FF7F9F8@mac.com>

On Oct 14, 2008, at 1:13 PM, Eric MSP Veith wrote:

> Hash: SHA1
> Hello,
> ok, these options pretty much look very specific, either for a user  
> or a
> build process or a spec file. But how would a distributor ship his own
> macros? Is it patching the "offical" macros file?

Distributors do pretty much what they want.

There is a convention for
to be loaded that has been in rpm for like 5 years.

However most distributors don't use that mechanism
and just hack changes directly into /usr/lib/rpm/macros
in spite of the warning

# This is a global RPM configuration file. All changes made here will
# be lost when the rpm package is upgraded. Any per-system configuration
# should be added to %{_etcrpm}/macros, while per-user configuration  
# be added to ~/.rpmmacros.

that has been distributed with rpm since forever. Oh well ...

In practice, It Really Doesn't Matter, choose some macro paths that
make sense for your rpm usage cases.

The real flaw is that rpm is already looking in far too many places
for macro configuration that is never present. Its way easier to  
invent flexibility
than it is to actually populate and use the desired built-in  


73 de Jeff
Received on Tue Oct 14 19:22:10 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.