rpath fails rpmbuild

Ian Chapman packages at amiga-hardware.com
Sun Jun 4 18:17:01 UTC 2006


Chitlesh GOORAH wrote:
> Hello,
> 
> I am trying to push knetstats to FE.
> 
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=193929
> 
> but with rpmbuild -ba knetstats.spec, Im failing on to
> 
> ERROR   0001: file '/usr/bin/knetstats' contains a standard rpath
> '/usr/lib' in [/usr/lib/qt-3.3/lib:/usr/lib/kde3:/usr/lib]
> error: Bad exit status from /var/tmp/rpm-tmp.38355 (%install)
> 
> and I have to do QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild -ba
> knetstats.spec so that It builds successfully.

Using QA_RPATHS just masks the problem, it doesn't fix it. You could 
probably patch the SConstruct file to disable rpath, in other words this 
line:

env.KDEuse("environ rpath")

might be better as

env.KDEuse("environ")

On first glance, I've noticed other problems with the spec, but see your 
BZ page for that.

-- 
Ian Chapman.




More information about the fedora-extras-list mailing list