Red Hat Bugzilla – Bug 145439
Contains insecure RPATHs
Last modified: 2007-11-30 17:10:58 EST
Description of problem:
| + /usr/lib/rpm/check-rpaths
| WARNING: file '/usr/lib/gphoto2_port/0.5.1/libgphoto2_port_serial.so' contains an invalid rpath '/var/tmp/gphoto2-2.1.5-root/usr/lib' in [/var/tmp/gphoto2-2.1.5-root/usr/lib]
| WARNING: file '/usr/lib/gphoto2_port/0.5.1/libgphoto2_port_usb.so' contains an invalid rpath '/var/tmp/gphoto2-2.1.5-root/usr/lib' in [/var/tmp/gphoto2-2.1.5-root/usr/lib]
| $ readelf -d /usr/lib/gphoto2/*/libgphoto2_agfa_cl20.so
| 0x0000000f (RPATH) Library rpath: [/usr/src/build/467105-i386/install/usr/lib]
Version-Release number of selected component (if applicable):
*** Bug 152008 has been marked as a duplicate of this bug. ***
Created attachment 112288 [details]
Fix for RPATH build problem (it causes some unpackaged files, which can be solved easily)
Fix is trivial and can be described by the following words: "Never use
%makeinstall, 'make DESTDIR=$RPM_BUILD_ROOT' is the better solution".
Created attachment 112289 [details]
proposed spec fix
Attached patch fixes it. On Rawhide, however, OpenJade causes a fatal error, so
I've only done a test-build on FC3.
Thanks, I used the patch from comment #3.