Overriding default BuildRoot

Wempa, Kristofer Kristofer.Wempa at sig.com
Thu May 3 20:16:57 UTC 2012

I have been using RPM to build thousands of packages for various SuSE and RedHat Linux distributions.  We recently acquired Red Hat 6 servers and I noticed that the RPM on that server sets a "BuildRoot" by default.  I need to override this since we already have a well-defined structure for our tool chains.  Modifying all of the spec files is not an option since the packages all install in various ways.  I tried re-defining the %{buildroot} and %{_buildrootdir} macros in my local macros file, but it looks like RPM ignores this.  How can I unset the BuildRoot so that my builds will behave as they have with other operating systems ?  Thanks in advance.



IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20120503/ac07e00d/attachment.html>

More information about the Rpm-list mailing list