[Rpm-maint] [PATCH] rpmbuild: clean up buildroot handling, set a default buildroot
Bill Nottingham
notting at redhat.com
Fri Feb 16 16:44:17 UTC 2007
R P Herrold (herrold at owlriver.com) said:
> [herrold at couch buildroot]$ rpmbuild -ba dummy-buildroot.spec \
> 2>&1 | grep 'ACME'
> + echo 'ACME /var/tmp/spot '
> ACME /var/tmp/spot
> [herrold at couch buildroot]$ rpmbuild -ba \
> --define 'buildroot /var/tmp/herrold' \
> dummy-buildroot.spec 2>&1 | grep 'ACME'
> + echo 'ACME /var/tmp/spot '
> ACME /var/tmp/spot
> [herrold at couch buildroot]$
Ignore my other message, I misread. So, what's going on here is
the order of precedence of macro evaluation - iirc, it's system,
commandline, then spec file. This I suppose is the genesis of
JBJ's patch for the .<macro> namespace, but I'm not sure it's
necessary for this, as this behavior is pretty much expected
for macros (and needed so packages can override everything from
%{version} to %{_bindir}).
Bill
More information about the Rpm-maint
mailing list