Red Hat Bugzilla – Bug 59347
--buildroot does not work
Last modified: 2008-05-01 11:38:01 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.72 [en] (X11; U; Linux 2.2.16-23.uid32 i686)
Description of problem:
rpm --buildroot produces
--buildroot: unknown option
which is annoying since man rpm says
The following options may also be used:
When building a package, override the BuildRoot tag
with directory DIRECTORY.
this works in 7.1.
i looked for documentation as to where buildroot went, but i can't find any,
even through google.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. try to build an rpm using --buildroot <dir>
2. get error message.
3. look at man page.
Actual Results: i get an error, instead of building the RPM. this works in
Expected Results: RPM to build. man page to document the new option if the name
i even grepped the docs for buildroot, and didn't find any notices about it
1) invoke rpmbuild, not rpm.
2) Configure popt magic glue for --buildroot:
echo "rpm exec --buildroot rpmb --buildroot" >> /etc/popt
The issue is that the build modes of rpm are now in /usr/bin/rpmbuild,
not in /bin/rpm.