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 - 20:19:20 CEST
Message-Id: <200810141819.20509.eveith@wwweb-library.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 14 October 2008, Jeff Johnson <n3npq@mac.com> wrote:
> > 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?
>
> All depends on the ordering specified to --macros (and similar
> compiled in)
> colon separated paths.

Which normally is:

MACROFILES="${USRLIBRPM}/macros"
MACROFILES="${MACROFILES}:${USRLIBRPM}/%{_target}/macros"
MACROFILES="${MACROFILES}:${SYSCONFIGDIR}/macros.*"
MACROFILES="${MACROFILES}:${SYSCONFIGDIR}/macros"
MACROFILES="${MACROFILES}:${SYSCONFIGDIR}/%{_target}/macros"

So I'll either use my own list of macro paths or just drop a file 
into /etc/macros.

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

iEYEARECAAYFAkj04qgACgkQfkUtd7QNU/tD7QCdHVQmWTEK1ndjE4jkmL4nFsdd
k3UAnjdzGC+3ImPycacRqmz/C1IKgmhh
=vGWN
-----END PGP SIGNATURE-----
Received on Tue Oct 14 20:19:25 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.