From: Anders Kaseorg Date: Thu, 5 Feb 2009 07:07:10 +0000 (-0500) Subject: Only exclude glibc-private for new enough libc6. X-Git-Tag: debian/1.8-0debathena4~1 X-Git-Url: http://andersk.mit.edu/gitweb/nss_nonlocal.git/commitdiff_plain/21ca49e170d195bf58f9fb8feaa5ded54cb5f803?hp=a7faa89a584271bd620d2429002d9cad9311439c Only exclude glibc-private for new enough libc6. Old dpkg-shlibdeps does not support -x. Signed-off-by: Anders Kaseorg --- diff --git a/debian/rules b/debian/rules index b5c63d8..d6a072e 100755 --- a/debian/rules +++ b/debian/rules @@ -10,7 +10,11 @@ include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk DEB_CONFIGURE_PREFIX = / -DEB_DH_SHLIBDEPS_ARGS = -- -xglibc-private + +LIBC6_VERSION := $(shell dpkg-query --showformat='$${Version}' --show libc6) +ifeq ($(shell dpkg --compare-versions '$(LIBC6_VERSION)' '>=' '2.8+20080809' && echo y),y) + DEB_DH_SHLIBDEPS_ARGS = -- -xglibc-private +endif debian/stamp-autotools-files: DEB_AUTO_UPDATE_AUTOMAKE += --foreign --add-missing