[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: RE24 testing call (OpenLDAP 2.4.34)



Hi Quanah

On 02/22/2013 02:23 AM, Quanah Gibson-Mount wrote:
Sounds like your build linked to the system libraries (/usr/lib/).
ldif_debug has been in RE24 for quite some time.

I found the cause. The Fedora Packaging Guidelines don't allow rpath:
http://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath
The snippet below in the spec file causes make test to fail:

%configure
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

RHEL6/CentOS6's provided openldap RPM is required by a zillion packages so it can not be removed. To prevent the RE24 build from ever using the system openldap libs in /lib64 the solution seems to be to allow rpath in the RE24 build so the RE24 apps always use the RE24 libs in the $rpath location. Better solutions always welcome :-)

Hope this helps someone bumping into the same issue.

Regards,
Patrick