Re: What "target" macros are loaded? (With --target option.)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, May 16, 2006 at 11:30:36AM +0200, Toralf Lund wrote:
> On my Enterprise Linux installation, the default "macrofiles" setup is
> 
> /usr/lib/rpm/macros:/usr/lib/rpm/%{_target}/macros:/etc/rpm/macros.specspo:/etc/rpm/macros.prelink:/etc/rpm/macros.solve:/etc/rpm/macros.up2date:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.rpmmacros
> 
> I thought this meant that if I did
> 
> rpmbuild --target <something>
> 
> then /usr/lib/rpm/<something>/macros and /etc/rpm/<something>/macros 
> would be loaded (among other things), but based on experiments I just 
> did, it looks like this is not the case. In fact, it seems like rpmbuild 
> will still look for /usr/lib/rpm/i686-redhat-linux-gnu/macros and 
> /etc/rpm/i686-redhat-linux-gnu/macros, i.e. that "--target" has no 
> effect on the macro file search. Is that right? Is it the way it's 
> supposed to be?
> 
> rpm version is 4.2.3-24_nonptl.

You can always use --define.

Replace %{_target} on your macrofiles setup for, say: %{customtag},
then:

rpmbuild --define 'customtag XXXX'

- -- 
Rodrigo Barbosa <rodrigob@xxxxxxxxxxxxxxx>
"Quid quid Latine dictum sit, altum viditur"
"Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)

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

iD8DBQFEadeMpdyWzQ5b5ckRAns+AJ0d46reMafuVOrZILnlAdhopDey8wCgiynR
BZLHbYAz38YBjYmWkTDfutw=
=H9pb
-----END PGP SIGNATURE-----

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux