Bug 4968 - Buildroot doesn't work
Buildroot doesn't work
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
i386 Linux
high Severity high
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 1999-09-07 21:36 EDT by osman
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-09-10 10:26:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description osman 1999-09-07 21:36:57 EDT
In rpm-3.0.2-6.0.i386.rpm
The buildroot doesn't work.
If you specify a "BuildRoot: dir" in the specs file the
package is unable to be build because the files are not
found. This is verry strange because the files ARE there.
I currently am building a package for firewall setup and it
seems like it is using the REAL files on my system and not
the ones I want to distribute.
So it seems to me that it is incorrectly or even NOT parsing
the buildroot.
I use the following:
BuildRoot: %{builddir}/%{name}-%{version}
Wich was a legitimate use till now.
If I output the env.variables while building it shows that
it hasn't parsed the %{builddir}, if I use an absolute path
it gives an error while checking for the entries in %files
and says that the files are not found. But they are there!
Comment 1 Jeff Johnson 1999-09-10 10:26:59 EDT
Dunno where you defined builddir, rpm doesn't. Macro expansion
passes undefined %{foo} constructs exactly as is. I suspect you
want %{_builddir} but you should use something like
	BuildDir: /var/tmp/%{name}-%{version}
so that %{_builddir} will be defined correctly.

FWIW, almost every package in the RH distribution uses BuildRoot:

Note You need to log in before you can comment on or make changes to this bug.