From 08766acaa78dcf7b2174cca94d5e102f910df6dd Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Tue, 22 Sep 2015 13:37:01 +0800 Subject: Don't hardcode the libicuXX-dbg dependency. Closes: #798642 --- debian/control | 2 +- debian/rules | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/control b/debian/control index a1a6813..152172f 100644 --- a/debian/control +++ b/debian/control @@ -85,7 +85,7 @@ Package: libxml2-dbg Architecture: any Section: debug Priority: extra -Depends: libxml2 (= ${binary:Version}), libicu52-dbg, ${misc:Depends} +Depends: libxml2 (= ${binary:Version}), ${dep:libicudbg}, ${misc:Depends} Multi-Arch: same Description: Debugging symbols for the GNOME XML library XML is a metalanguage to let you design your own markup language. diff --git a/debian/rules b/debian/rules index 8264b07..5b849df 100755 --- a/debian/rules +++ b/debian/rules @@ -138,6 +138,9 @@ endif override_dh_makeshlibs: dh_makeshlibs -a $(if $(WITH_UDEB),--add-udeb=libxml2-udeb )-V 'libxml2 (>= 2.7.4)' -- -c4 +override_dh_gencontrol: + dh_gencontrol -- -Vdep:libicudbg="`dpkg-query -f '$${Depends}' -W libicu-dev | sed 's/.*\(libicu[0-9]*\).*/\1/'`-dbg" + %: ifeq ($(DEB_BUILD_PROFILE),stage1) dh $@ --with autoreconf -- cgit v1.2.3