Re: rpmbuild error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Mar 11, 2010, at 1:06 PM, bclark@xxxxxxxxx wrote:


On Mar 10, 2010, at 3:27 PM, bclark@xxxxxxxxx wrote:

I am getting this error:

error: error creating temporary file ${prefix}/var/tmp/rpm-tmp.CsA3oo:
No
such file or directory
error: Unable to open temp file

This error occurs after call to check-files.

lines of executing (%PREP,%BUILD, %INSTALL) also have the ${prefix} but
it
has a prior / example) /${prefix}/var/tmp/rpm-tmp.t50rm1

Not sure where $prefix is coming from

RPM Version: 4.8.0

command executed: rpmbuild -ba filename.spec



You most likely have ${prefix} somewhere in your spec file. can you provide a
paste with the contents of the spec file?

http://pastie.org/


Here is the paste of the spec file:

Summary: Man pages for man
Name: man-pages
Version: 3.23
Release: 1
License: GPL
Group: Documentation
Source: %name-%version.tar.bz2
BuildRoot: %name-%version-%release-build


My BuildRoot is usually something like this:

BuildRoot: /var/tmp/%{name}-%{version}-%{release}-build

or I think this will work but I'm not certain how consistently, depending on distribution, %_tmppath is available

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build

try this command and verify what you get: rpm -E '%{_tmppath}'

I suspect if you set your BuildRoot to something like that your problem will go away.

Todd
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux