[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: check-buildroot failure
- From: "Tom \"spot\" Callaway" <tcallawa redhat com>
- To: Development discussions related to Fedora Core <fedora-devel-list redhat com>
- Subject: Re: check-buildroot failure
- Date: Sun, 29 Jul 2007 11:44:04 -0500
On Sun, 2007-07-29 at 11:14 -0400, Steve Dickson wrote:
> I'm getting the following build error:
>
> /usr/lib/rpm/check-buildroot
> /var/tmp/libgssapi-0.11-root/usr/lib64/pkgconfig/libgssapi.pc:prefix=/var/tmp/libgssapi-0.11-root
> Found '/var/tmp/libgssapi-0.11-root' in installed files; aborting
> error: Bad exit status from /var/tmp/rpm-tmp.75914 (%install)
Steve,
Look closely at what you've pasted:
The file (/var/tmp/libgssapi-0.11-root/usr/lib64/pkgconfig/libgssapi.pc)
contains the rpm buildroot inside of it.
The script printed the line where the buildroot appears:
prefix=/var/tmp/libgssapi-0.11-root
Since this is not what you want the prefix to be for the installed
package, you need to fixup that .pc file in the %install section of your
spec.
sed -i "s|${RPM_BUILD_ROOT}||g" $RPM_BUILD_ROOT
%{_libdir}/pkgconfig/libgssapi.pc
That line should do the trick.
~spot
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]