From 21ca49e170d195bf58f9fb8feaa5ded54cb5f803 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 5 Feb 2009 02:07:10 -0500 Subject: [PATCH] Only exclude glibc-private for new enough libc6. Old dpkg-shlibdeps does not support -x. Signed-off-by: Anders Kaseorg --- debian/rules | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.45.0