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

Re: 2.3.19 relocatable RPM package

On Monday 20 February 2006 14:23, Jehan PROCACCIA wrote:
> Hello
> for those of you intersted, I've rebuild relocatable RPM packages for
> openldap 2.3.19 . I took <fenlason@redhat.com> 2.3.11-3 as starting point.
> By relocatable I mean that you can install theses packages as a whole in
> a subdirectory without breaking the system rpm dependencies, the famous
> liblber and libldap libraries on which many of the installed packages
> are relying on, here's a usual typical upgrade to 2.3.11 error I get on
> my FC4
> error: Failed dependencies:
> liblber-2.2.so.7 is needed by (installed) cyrus-sasl-2.1.20-5.i386
> libldap-2.2.so.7 is needed by (installed) cyrus-sasl-2.1.20-5.i386

This is because there is no library package policy on RH. The relocation 
aspect should have no impact here (in the case of different library majors).

> Here's an example of installation in /usr/local without affecting my
> system dependent openldap 2.2.29-1.FC4 installation
> rpm -ivh --prefix=/usr/local/openldap-2.3.19-1
> /usr/src/redhat/RPMS/i386/openldap-*2.3.19-1*.rpm

Except that now you have packages that claim to provide:

However, they will not be found by the library loader.

> This implies a certain amount of editing to relfect  that scpecific
> PATH in slapd.conf and ldap init.d startup script !

And, you will need to edit /etc/ld.so.conf or similar, or set LD_LIBRARY_PATH 
for any application that is built against your 

Instead, you could split the library package off to get rid of the dependency 
problems (ie allow parallel installation of libraries with different major 
numbers), and provide for parallel installation of binaries (via suffixed 

But, then you'd end up with the packages I maintain for Mandriva, which also 
rebuild on RH/Fedora (although I personally only build on RHEL2.1/3/4 at 
present, they build fine - with some compatibility macros - on all versions 
of Fedora I have tried):



Buchan Milne
ISP Systems Specialist

Attachment: pgp7lvOe15ril.pgp
Description: PGP signature