[Pkg-openldap-devel] [openldap] 06/17: * debian/rules: error out on build if an installed library has undefined symbols; future-proofing against a repeat of #304549.
Timo Aaltonen
tjaalton-guest at alioth.debian.org
Thu Oct 10 05:35:32 UTC 2013
This is an automated email from the git hooks/post-receive script.
tjaalton-guest pushed a commit to annotated tag 2.2.23-3
in repository openldap.
commit f8e03afa43103b6adb1a9be9d4e0627c59da9edb
Author: Steve Langasek <vorlon at debian.org>
Date: Sun Apr 17 08:28:45 2005 +0000
* debian/rules: error out on build if an installed library has
undefined symbols; future-proofing against a repeat of #304549.
---
debian/changelog | 6 ++++--
debian/rules | 7 +++++++
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index b56aad1..9f3cf1d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ openldap2.2 (2.2.23-3) unstable; urgency=low
libldap_r library ends up with dangling unversioned reference to
pthread_create() which gets resolved to a wrong version that causes
segfaults on 64-bit platforms. Closes: #304549.
+ * debian/rules: error out on build if an installed library has
+ undefined symbols; future-proofing against a repeat of #304549.
* debian/slapd.postinst: don't dump and reload directories unless we
know we're upgrading from an incompatible version! Closes: #304840.
* debian/slapd.scripts-common: don't use merge_logical_lines for
@@ -18,10 +20,10 @@ openldap2.2 (2.2.23-3) unstable; urgency=low
/usr/share/doc aren't penalized. Create links for the DB_CONFIG and
slapd.confg templates to /usr/share/doc/slapd/examples, since these
are worthwhile examples as well.
- * Updated maintainer scripts to keep DB_CONFIG for LDAP databases over
+ * Updated maintainer scripts to keep DB_CONFIG for LDAP databases over
upgrades (closes: #265860).
- -- Steve Langasek <vorlon at debian.org> Sun, 17 Apr 2005 00:47:52 -0700
+ -- Steve Langasek <vorlon at debian.org> Sun, 17 Apr 2005 01:24:12 -0700
openldap2.2 (2.2.23-2) unstable; urgency=low
diff --git a/debian/rules b/debian/rules
index 847770c..db74c22 100755
--- a/debian/rules
+++ b/debian/rules
@@ -42,6 +42,13 @@ build-stamp: $(builddir)/Makefile
install: install-stamp
install-stamp: build-stamp
$(MAKE) -C $(builddir) $(MAKEVARS) install
+ for F in $(installdir)/usr/lib/*.so.*.*.*; do \
+ if ldd -d -r $$F 2>&1 | grep '^undefined symbol:'; then \
+ echo; \
+ echo "library $$F has undefined references. Please fix this before continuing."; \
+ exit 1; \
+ fi; \
+ done
# Upstream installs schema files in mode 0444 - policy wants 0644
find $(installdir)/etc -type f|xargs chmod 0644
# Upstream manpages are section 8C but installed as section 8
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openldap/openldap.git
More information about the Pkg-openldap-devel
mailing list