[Pkg-openldap-devel] Bug#742841: Bug#742841: Bug#742841: src:openldap: openldap implicitly build depends on libldap2

Ryan Tandy ryan at nardis.ca
Fri Mar 28 02:35:55 UTC 2014


Hi Steve and Christian,

I've seen this as well, when rebuilding openldap against libkrb5-dev
instead of heimdal-dev. See attached build-against-libkrb5-dev.diff
that achieves that, and the log from the resulting build failure,
where libldap-2.4-2 was not installed in the build environment.

#724518 is related to this or possibly even a duplicate. The shlibs
hunk from the patch there (attached as
make-libldap-shlibs-available.diff) lets my build succeed, though I
can't comment on whether it's correct.

I don't know when this was introduced, but I saw it on 2.4.28 in precise.

Cheers,
Ryan
-------------- next part --------------
diff -u openldap-2.4.39/debian/control openldap-2.4.39/debian/control
--- openldap-2.4.39/debian/control
+++ openldap-2.4.39/debian/control
@@ -13,7 +13,7 @@
  libgnutls-dev (>= 1.7), unixodbc-dev, libncurses5-dev, libperl-dev (>= 5.8.0),
  libsasl2-dev, libslp-dev, libltdl-dev | libltdl3-dev (>= 1.4.3),
  libwrap0-dev, perl, debconf-utils, po-debconf, quilt (>= 0.46-7),
- groff-base, time, heimdal-dev,
+ groff-base, time, libkrb5-dev,
  dh-autoreconf
 Build-Conflicts: libbind-dev, bind-dev, libicu-dev, autoconf2.13
 Standards-Version: 3.9.1
@@ -39,17 +39,6 @@
  (slapd). The server can be used to provide a standalone directory
  service.
 
-Package: slapd-smbk5pwd
-Section: net
-Priority: extra
-Architecture: any
-Depends: slapd (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
-Description: Keeps Samba and Kerberos passwords in sync within slapd.
- Extends the PasswordModify Extended Operation to update Kerberos keys
- and Samba password hashes for an LDAP user. The Kerberos support is
- written for Heimdal using its hdb-ldap backend. The Samba support is
- written using the Samba 3.0 LDAP schema.
-
 Package: ldap-utils
 Section: net
 Priority: optional
diff -u openldap-2.4.39/debian/rules openldap-2.4.39/debian/rules
--- openldap-2.4.39/debian/rules
+++ openldap-2.4.39/debian/rules
@@ -87,12 +87,10 @@
 
 override_dh_auto_build:
 	dh_auto_build -- $(MAKEVARS)
-	$(MAKE) -C contrib/slapd-modules/smbk5pwd
 	$(MAKE) -C contrib/slapd-modules/autogroup
 
 override_dh_auto_install:
 	dh_auto_install -- $(MAKEVARS)
-	$(MAKE) -C contrib/slapd-modules/smbk5pwd install DESTDIR=$(installdir)
 	$(MAKE) -C contrib/slapd-modules/autogroup install DESTDIR=$(installdir)
 
 	# Empty the dependency_libs file in the .la files.
@@ -123,7 +121,6 @@
 
 override_dh_install:
 	dh_install
-	rm -rf $(CURDIR)/debian/slapd/usr/lib/ldap/smbk5pwd*
 	chmod 0755 $(CURDIR)/debian/slapd/usr/share/slapd/ldiftopasswd
 
 override_dh_installinit:
@@ -173,10 +170,6 @@
 	fi
 
 	# Clean the contrib directory
-	rm -rf contrib/slapd-modules/smbk5pwd/.libs \
-		contrib/slapd-modules/smbk5pwd/smbk5pwd.lo \
-		contrib/slapd-modules/smbk5pwd/smbk5pwd.la \
-		contrib/slapd-modules/smbk5pwd/smbk5pwd.o
 	rm -rf contrib/slapd-modules/autogroup/.libs \
 		contrib/slapd-modules/autogroup/autogroup.lo \
 		contrib/slapd-modules/autogroup/autogroup.la \
-------------- next part --------------
diff -u openldap-2.4.39/debian/rules openldap-2.4.39/debian/rules
--- openldap-2.4.39/debian/rules
+++ openldap-2.4.39/debian/rules
@@ -148,6 +148,8 @@
 	# at all, but that requires adjusting the build scripts first to
 	# link against libldap_r, otherwise dh_shlibdeps fails
 	#dh_makeshlibs -plibldap-2.4-2 -V 'libldap-2.4-2 (>= 2.4.7)'
+	mkdir -p debian/libldap-2.4-2/DEBIAN
+	cp -p debian/libldap-2.4-2.shlibs debian/libldap-2.4-2/DEBIAN/shlibs
 	echo "slapd:Provides=$$(objdump -p debian/slapd/usr/lib/$(DEB_HOST_MULTIARCH)/libslapi-*.so.* \
 		| sed -ne '/SONAME/ { s/[[:space:]]*SONAME[[:space:]]*//; \
 		                      s/\.so\./-/; p; q }' \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openldap_2.4.39-1_amd64-20140327-1913.build.gz
Type: application/x-gzip
Size: 115396 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-openldap-devel/attachments/20140327/21d08e8b/attachment-0001.bin>


More information about the Pkg-openldap-devel mailing list