rpmbuild error

bclark at bwkip.com bclark at bwkip.com
Thu Mar 11 19:54:36 UTC 2010


>
> On Mar 11, 2010, at 1:06 PM, bclark at bwkip.com wrote:
>
>>>
>>> On Mar 10, 2010, at 3:27 PM, bclark at bwkip.com 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 at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list
>


I tried both /var/tmp and {_tmppath} both still have the ${prefix}

rpm -E '%{_tmppath}'
${prefix}/var/tmp

Brian



More information about the Rpm-list mailing list