[ale] more rpms problems

Ken Nagorski kenn at pcintelligent.com
Thu Feb 28 12:05:06 EST 2002


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}/
ln -s libgd.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libgd.so
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

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)

If I take that out - I get this.

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.






More information about the Ale mailing list