Hi
I am trying to upgrde out openldap ver 2.3 to the lastest version 2.4, howevre there is no rpm avaibale for 2.4 so i decide to create my own for centOS flavour 5.2
here is the part look of my spec file openldap.spec
Summary: openldap Installer Name: openldap Version: 2.4 Release: 1 Vendor: net Solutions License: Commercial Group: ms6 BuildRoot: /usr/src/redhat/BUILD/openldap Provides: openldap AutoReq: no AutoReqProv: no
%description This package contains the F-PROT Antivirus for Linux.
%files
/bin/ /bin/ldapexop /bin/ldapmodify /bin/ldappasswd /bin/ldapadd /bin/ldapmodrdn /bin/ldapdelete /bin/ldapsearch /bin/ldapcompare /bin/ldapwhoami /etc/openldap/ /etc/openldap/ldap.conf.default /etc/openldap/ldap.conf /usr/include/ /usr/include/lber_types.h /usr/include/ldap_schema.h /usr/include/ldap_features.h /usr/include/ldap_cdefs.h /usr/include/lber.h /usr/include/ldap.h /usr/include/slapi-plugin.h /usr/include/ldap_utf8.h /lib/ /lib/liblber-2.4.so.2 /lib/liblber.la /lib/libldap_r-2.4.so.2.1.0 /lib/libldap_r-2.4.so.2 /lib/libldap_r.so /lib/libldap_r.a /lib/libldap_r.la /lib/liblber.so /lib/liblber.a /lib/libldap.so /lib/libldap-2.4.so.2 /lib/liblber-2.4.so.2.1.0 /lib/libldap.a /lib/libldap-2.4.so.2.1.0 /lib/libldap.la .
.
/usr/share/man/man5/slapd-sock.5 /usr/share/man/man5/slapd.access.5 /usr/share/man/man5/slapd-relay.5 /usr/share/man/man5/slapd-meta.5 /usr/share/man/man5/slapo-syncprov.5 /usr/share/man/man5/slapd-hdb.5 /usr/share/man/man5/slapo-rwm.5 /usr/share/man/man5/slapd.plugin.5 /usr/share/man/man5/ldif.5 /usr/share/man/man5/slapd-monitor.5 /usr/share/man/man5/slapd-perl.5 %defattr(-, root, root)
%post cd /lib ln -s libldap_r-2.4.so.2 libldap_r-2.4.so.2.1.0 ln -s libldap_r.so libldap_r-2.4.so.2.1.0 ln -s liblber.so liblber-2.4.so.2.1.0 ln -s libldap.so libldap-2.4.so.2.1.0 ln -s libldap-2.4.so.2 libldap-2.4.so.2.1.0
it runs perfecetly and creates the RPM for me in /usr/src/redhat/RPMS/i386/openldap-2.4-1.i386.rpm
however when i try to upgards the rpm it give me dependencies ....
[root@pune openldap]# rpm -Uvh /usr/src/redhat/RPMS/i386/openldap-2.4-1.i386.rpm error: Failed dependencies: liblber-2.3.so.0 is needed by (installed) apr-util-1.2.7-6.i386 liblber-2.3.so.0 is needed by (installed) openldap-devel-2.3.27-5.i386 liblber-2.3.so.0 is needed by (installed) httpd-2.2.3-6.el5.centos.1.i386 liblber-2.3.so.0 is needed by (installed) cyrus-sasl-2.1.22-4.i386 liblber-2.3.so.0 is needed by (installed) nss_ldap-253-3.i386 liblber-2.3.so.0 is needed by (installed) php-ldap-5.1.6-5.el5.i386 liblber-2.3.so.0 is needed by (installed) openldap-clients-2.3.27-5.i386 liblber-2.3.so.0 is needed by (installed) postfix-2.5.5-1.cdb.pcre.sasl2.spf.rhel5.i386 liblber-2.3.so.0 is needed by (installed) cyrus-imapd-2.3.13-4.i386 liblber-2.3.so.0 is needed by (installed) mod_perl-2.0.2-6.1.i386 liblber-2.3.so.0 is needed by (installed) squid-2.6.STABLE6-4.i386 libldap-2.3.so.0 is needed by (installed) libuser-0.54.7-2.el5.1.i386 libldap-2.3.so.0 is needed by (installed) apr-util-1.2.7-6.i386 libldap-2.3.so.0 is needed by (installed) openldap-devel-2.3.27-5.i386 libldap-2.3.so.0 is needed by (installed) httpd-2.2.3-6.el5.centos.1.i386 libldap-2.3.so.0 is needed by (installed) cyrus-sasl-2.1.22-4.i386 libldap-2.3.so.0 is needed by (installed) sudo-1.6.8p12-10.i386
these modules are already present in the lib directory .........../lib/liblber-2.3.so.0 .............
Can some one help me with this error
Thnsk a million
-
Regards Agnello D'souza
On Mon, 2009-03-02 at 18:14 +0530, Agnello George wrote:
here is the part look of my spec file openldap.spec
Take what you have here, and scrap it.
Grab the openldap SRPM already in CentOS, extract the spec file from it, modify, and buils.
On Mon, Mar 2, 2009 at 6:23 PM, Ignacio Vazquez-Abrams ivazqueznet@gmail.com wrote:
On Mon, 2009-03-02 at 18:14 +0530, Agnello George wrote:
here is the part look of my spec file openldap.spec
Take what you have here, and scrap it.
Grab the openldap SRPM already in CentOS, extract the spec file from it, modify, and buils.
I was trying to find the src rpm for openldap 2.4 but couldnt find, I downloaded the following src rpm http://isoredirect.centos.org/centos/5.2/os/SRPMS/openldap-2.3.27-8.el5_1.3....
i extracted the spec file but I am not very good at editing a extensively created spec file
ther are alot of patches etc in the ../SOURCE/ dir .....
can some one help me out here !!
On Mon, 2009-03-02 at 18:53 +0530, Agnello George wrote:
On Mon, Mar 2, 2009 at 6:23 PM, Ignacio Vazquez-Abrams ivazqueznet@gmail.com wrote:
On Mon, 2009-03-02 at 18:14 +0530, Agnello George wrote:
here is the part look of my spec file openldap.spec
Take what you have here, and scrap it.
Grab the openldap SRPM already in CentOS, extract the spec file from it, modify, and buils.
I was trying to find the src rpm for openldap 2.4 but couldnt find, I downloaded the following src rpm http://isoredirect.centos.org/centos/5.2/os/SRPMS/openldap-2.3.27-8.el5_1.3....
i extracted the spec file but I am not very good at editing a extensively created spec file
ther are alot of patches etc in the ../SOURCE/ dir .....
Just remove the patches and sources you don't need, and run with it.
On Mon, Mar 2, 2009 at 7:44 AM, Agnello George agnello.dsouza@gmail.com wrote:
Hi
I am trying to upgrde out openldap ver 2.3 to the lastest version 2.4, howevre there is no rpm avaibale for 2.4 so i decide to create my own for centOS flavour 5.2
It's probably worth mentioning that the openldap version shipped with centos is very heavily linked throughout the distribution. If you upgrade the ldap version, you may have to provide older libraries for backwards compatibility (as the base package does) or you'll have to rebuild everything built against openldap against your new version.
On a side note (and while I understand it's just a spec file) you can't really take the openldap package and strip the openldap license from it unless their license allows this (I don't believe it does). You'd have to add your commercial bits in a separate package which plugs into the openldap framework.
On Mon, Mar 2, 2009 at 7:17 PM, Jim Perrin jperrin@gmail.com wrote:
On Mon, Mar 2, 2009 at 7:44 AM, Agnello George agnello.dsouza@gmail.com wrote:
Hi
I am trying to upgrde out openldap ver 2.3 to the lastest version 2.4, howevre there is no rpm avaibale for 2.4 so i decide to create my own for centOS flavour 5.2
It's probably worth mentioning that the openldap version shipped with centos is very heavily linked throughout the distribution. If you upgrade the ldap version, you may have to provide older libraries for backwards compatibility (as the base package does) or you'll have to rebuild everything built against openldap against your new version.
[solved]
You were rith about the backwards compatibility issue , the older libraries would be liblber-2.3.so.0 and libldap-2.3.so.0 ........ .
i was chking out the cent os dev maillist archives for this particular issue and foud that Jeff Sheltren created the src rpm the link here http://staff.osuosl.org/~jeff/openldap/
i jsut did a rpmbulid again the created spec file and it creates rpm called compat-openldap-2.4.11_2.3.27-1.3.el5.i386.rpm that does the magic :-D
less compat-openldap-2.4.11_2.3.27-1.3.el5.i386.rpm
lrwxr-xr-x 1 root root 21 Mar 2 19:41 /usr/lib/liblber-2.3.so.0 -> liblber-2.3.so.0.2.15 -rwxr-xr-x 1 root root 137508 Mar 2 19:41 /usr/lib/liblber-2.3.so.0.2.15 lrwxr-xr-x 1 root root 21 Mar 2 19:41 /usr/lib/libldap-2.3.so.0 -> libldap-2.3.so.0.2.15 -rwxr-xr-x 1 root root 757630 Mar 2 19:41 /usr/lib/libldap-2.3.so.0.2.15 lrwxr-xr-x 1 root root 23 Mar 2 19:41 /usr/lib/libldap_r-2.3.so.0 -> libldap_r-2.3.so.0.2. 15 -rwxr-xr-x 1 root root 827929 Mar 2 19:41 /usr/lib/libldap_r-2.3.so.0.2.15 . . .
Thanks again for all the help
Agnello