I've run into a couple of problems getting openldap running under SuSE 8.1
Linux.
1. The slapd program (and presumably others) are looking for the libdb-4
shared libraries instead of compiling with the static library in the
openpkg tree.
2. The %{l_prefix}/etc/openldap/slapd.conf file contains references to
the $RPM_BUILD_ROOT in some paths.
The only way I've been able to get around the Berkeley DB library program,
short of removing it from SuSE, was to rebuild the openpkg db package,
removing ``disable-shared'' from the configure. I know this violates the
static-only philosophy of openpkg, but I don't see any other practical way
to fix this type of conflict. FWIW, we're using gcc-3.2.1-20030114.
I'm attaching a diff for the openldap.spec file that replaces the
$RPM_BUILD_ROOT references in slapd.conf just prior to making the file
list.
Bill
--
INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Systems, Inc.
UUCP: camco!bill PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/
``We believe...that a mugger will kill you in the half-second it takes to
draw from the holster, but won't harm you while you dial the police on your
cell phone, talk to the dispatcher and wait half an hour for officers to
arrive.'' -- Gun-Control Net-work Credo
--- openldap.spec.orig 2003-02-21 10:27:17.000000000 -0800
+++ openldap.spec 2003-02-21 10:30:28.000000000 -0800
@@ -33,7 +33,7 @@
Group: Database
License: GPL
Version: 2.1.12
-Release: 20030212
+Release: 20030212a
# list of sources
Source0: ftp://ftp.openldap.org/pub/openldap/openldap-release/openldap-%{version}.tgz
@@ -92,6 +92,12 @@
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
%{l_shtool} install -c -m 755 -e 's;@l_prefix@;%{l_prefix};g' \
%{SOURCE rc.openldap} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
+
+ # fix bogus path in slapd.conf
+ %{l_shtool} subst -v -s \
+ -e "s!$RPM_BUILD_ROOT!!g" \
+ $RPM_BUILD_ROOT%{l_prefix}/etc/openldap/slapd.conf
+
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} \
'%config %{l_prefix}/etc/openldap/ldap*'