[ale] more rpms problems

James P. Kinney III jkinney at localnetsolutions.com
Thu Feb 28 12:29:32 EST 2002


Building rpms is truly weird.

Yes, it it putting everything in the $RPM_BUILD_ROOT. That is used to
setup the temporary install place. When the package is finally built,
the $RPM_BUILD_ROOT path is removed.

Details below:

On Thu, 2002-02-28 at 12:05, Ken Nagorski wrote:
> Hi there,
> 
> I really hope there is someone on this list that knows about building RPMS
> cause this it frustrtating.
> 
> OK - If I have this in the spec file,
> 
> install -m 755 libgd.so.%{version} $RPM_BUILD_ROOT%{_libdir}/

At this point, you have installed the lib in $RPM_BUILD_ROOT%{_libdir}

> ln -s libgd.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libgd.so

Here you are trying to link from the compiled lib to the one you just
installed! Delete this line.

> ln -s libgd.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libgd.so.2
> ln -s libgd.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libgd.so.2.0

These two lines are trying to make a link into the
$RPM_BUILD_ROOT%{_libdir} from the compile directory. The line should
probably start out like: (line wrap warning!)
ln -s $RPM_BUILD_ROOT%{_libdir}/libgd.so.${version} \
$RPM_BUILD_ROOT%{_libdir}/libgd.so.2
> 
> I get this,
> 
> + install -m 755 libgd.so.2.0.1 /var/tmp/gd-root/usr/lib/
> + ln -s libgd.so.2.0.1 /var/tmp/gd-root/usr/lib/libgd.so
> ln: `/var/tmp/gd-root/usr/lib/libgd.so': File exists
> error: Bad exit status from /var/tmp/rpm-tmp.10995 (%install)

Exactly! The place it's trying to make the link was already installed by
the install -m line
> 
> If I take that out - I get this.

I'm not sure what you took out here.

> 
> RPM build errors:
>     Symlink points to BuildRoot: /usr/lib/libgd.so.2 ->
> /var/tmp/gd-root/usr/lib/libgd.so.2.0.0
>     Symlink points to BuildRoot: /usr/lib/libgd.so ->
> /var/tmp/gd-root/usr/lib/libgd.so.2.0.0
> [root at redhat SPECS]# vi gd-2.0.1.spec
> 
> As far as I can tell from reading the spec file and what I know about how
> the build process goes it's working out of the $RPM_BUILD_ROOT which is
> var/tmp/gd-root/usr/lib/libgd.so.2.0.0 so of course it is a link to itself.
> This is so frustrating cause I have read the docs at rpm.org and a few other
> places and everything I have found is so brief and has nonthing about
> troubleshooting.
> 
> And why is it linking anything to the build root anyway? It is just a tmp
> dir - There is something I am so totally missing here and it is making me
> insane... Uhg!
> 
> Thanks
> Ken
> 
> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.10995 (%install)
> 
> 
> 
> 
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
> sent to listmaster at ale dot org.
> 
-- 
James P. Kinney III   \Changing the mobile computing world/
President and COO      \          one Linux user         /
Local Net Solutions,LLC \           at a time.          /
770-493-8244             \.___________________________./

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7 



 This is a digitally signed message part




More information about the Ale mailing list