Snort mailing list archives
Re: how to make daq drop rpath?
From: Michael Altizer <mialtize () cisco com>
Date: Sun, 13 Nov 2016 23:26:55 -0500
On 11/12/2016 02:13 PM, Marcin Dulak wrote:
Hi, I'm packaging daq-2.0 for Fedora/EPEL, but the linking process uses rpath which is discouraged on Fedora/Debian systems. The details of the problem are given at: https://bugzilla.redhat.com/show_bug.cgi?id=1394502 and an example build log at https://kojipkgs.fedoraproject.org//work/tasks/4813/16424813/build.log Any suggestions how to solve it? Regards, Marcin
I've never found a clean way to get rid of RPATH from within autotools. However, I just tried with the libtool butchering option from https://fedoraproject.org/wiki/Packaging:Guidelines#Removing_Rpath and it seemed to work fine. $ autoreconf -ivf $ ./configure --prefix=/var/tmp/daq-install $ sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool $ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool $ make install $ find /var/tmp/daq-install/lib -name "*.so" | xargs readelf -d | grep RPATH <nothing> Without the hack, you'd see this: $ find /var/tmp/daq-install/lib -name "*.so" | xargs readelf -d | grep RPATH 0x000000000000000f (RPATH) Library rpath: [/var/tmp/daq-install/lib] 0x000000000000000f (RPATH) Library rpath: [/var/tmp/daq-install/lib] 0x000000000000000f (RPATH) Library rpath: [/var/tmp/daq-install/lib] ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ Snort-devel mailing list Snort-devel () lists sourceforge net https://lists.sourceforge.net/lists/listinfo/snort-devel Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=snort-devel Please visit http://blog.snort.org for the latest news about Snort!
Current thread:
- how to make daq drop rpath? Marcin Dulak (Nov 12)
- Re: how to make daq drop rpath? Michael Altizer (Nov 13)
- Re: how to make daq drop rpath? Marcin Dulak (Nov 15)
- Re: how to make daq drop rpath? Michael Altizer (Nov 13)