[Rpm-maint] [PATCH] rpmbuild: clean up buildroot handling, set a default buildroot
Bill Nottingham
notting at redhat.com
Tue Feb 13 16:30:36 UTC 2007
Michael Schroeder (mls at suse.de) said:
> On Mon, Feb 12, 2007 at 03:37:23PM -0500, Bill Nottingham wrote:
> > + /* If buildroot is not set, set to a default value. */
> > + if (!spec->gotBuildRootURL) {
> > + int err = setBuildRoot(spec, "%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)");
> > +
> > + if (err)
> > + return err;
> > + }
>
> If you can set a default buildroot in /usr/lib/rpm/macros, why
> is there a need to *insist* on a buildroot? This breaks
> compatibility.
This would only trigger if:
a) no default buildroot is passed via --buildroot
b) no default buildroot is set via macros
c) there is no BuildRoot: line in the spec file
Is having a default (rather than *no*) buildroot in that case behavior that
we want to preserve?
Bill
More information about the Rpm-maint
mailing list