RPM Community Forums

Mailing List Message of <rpm-users>

Re: Where to put distrubtion-specific macros

From: Eric MSP Veith <eveith@wwweb-library.net>
Date: Tue 14 Oct 2008 - 19:42:35 CEST
Message-Id: <200810141742.38351.eveith@wwweb-library.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok, thanks for the answers.
I'll put my stuff into /usr/lib/rpm/my-distro then. As far as I understood, 
these macros should overwrite definitions already existing 
in /usr/lib/rpm/macros, right?

And thanks again for all the help. :-)
		-- Eric


On Tuesday 14 October 2008, Jeff Johnson <n3npq@mac.com> wrote:
> On Oct 14, 2008, at 1:13 PM, Eric MSP Veith wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > 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
>      /usr/lib/rpm/VENDOR/macros
> 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
> should
> # 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
> flexibility.
>
> hth
>
> 73 de Jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkj02gsACgkQfkUtd7QNU/siagCfRSVcheodoNdx8WkfN9PTgdsN
9EcAoLXNy0UaYxQ3VAFKfacHOiB8ZUUm
=hnjL
-----END PGP SIGNATURE-----
Received on Tue Oct 14 19:42:41 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.