RPATH in various binaries

Pavel Zhukov pzhukov at redhat.com
Fri Nov 29 14:59:55 UTC 2013


On Fri, 29 Nov 2013, Richard W.M. Jones wrote:

| 
| On Fedora 20 (beta-ish), I did:
| 
| for f in /usr/bin/*; do chrpath -l $f ; done | grep RPATH > /tmp/rpaths.txt 
| 
| I removed from the final list private library RPATHs, which are
| permitted[1].  Here is the final list:
| 
| /usr/bin/afm2tfm: RPATH=/builddir/build/BUILD/texlive-2013/source/inst/lib
| <...>
| /usr/bin/xdvi-xaw: RPATH=/builddir/build/BUILD/texlive-2013/source/inst/lib
| 
| Note this list is not comprehensive because it's just binaries that I
| happened to have installed.
| 
| (a) Are these bugs?  They seem to be.
| 
| (b) I thought Fedora had an RPM install post script which was supposed
| to detect these and alert the packager?

Right now it doesn't have such script. packager/reviewer should take
care on this. 
Hovewer rpmlint shows something like: 
gela-asis.x86_64: E: binary-or-shlib-defines-rpath
/usr/lib64/gela-asis/libgela-asis.so
['/usr/lib/gcc/x86_64-redhat-linux/4.8.2/adalib/', '/usr/lib']
and errors should bot be ignored... 
| 
| Rich.
| 
| [1] https://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath
| 
| -- 
| Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
| virt-p2v converts physical machines to virtual machines.  Boot with a
| live CD or over the network (PXE) and turn machines into KVM guests.
| http://libguestfs.org/virt-v2v
| -- 
| devel mailing list
| devel at lists.fedoraproject.org
| https://admin.fedoraproject.org/mailman/listinfo/devel
| Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

-- 
Pavel


More information about the devel mailing list