Package: libsexy-dev Version: 0.1.11-2+b1 Severity: normal libsexy uses the libs/cflags directly in it's pkg-config file, as opposed to using the pkg-config module names. This means that when the other modules' dependencies get updated, libsexy doesn't do the right thing until a new version is built (which is bad).
The attached patch uses the Requires.private field to only pull in the other libraries as and when needed. -- System Information: Debian Release: lenny/sid APT prefers stable APT policy: (990, 'stable'), (500, 'oldstable'), (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libsexy-dev depends on: ii libatk1.0-dev 1.29.3-1 Development files for the ATK acce ii libcairo2-dev 1.8.8-2 Development files for the Cairo 2D ii libfreetype6-dev 2.3.9-4 FreeType 2 font engine, developmen ii libglib2.0-dev 2.23.0-1 Development files for the GLib lib ii libgtk2.0-dev 2.19.1-1 Development files for the GTK+ lib ii libpango1.0-dev 1.26.1-1 Development files for the Pango ii libsexy2 0.1.11-2+b1 collection of additional GTK+ widg ii libxcursor-dev 1:1.1.9-1 X cursor management library (devel ii libxml2-dev 2.7.5.dfsg-1 Development files for the GNOME XM ii libxrender-dev 1:0.9.4-2 X Rendering Extension client libra libsexy-dev recommends no packages. -- no debconf information
>From fe747e04edf7fd127dad6d92bbda728260d169a8 Mon Sep 17 00:00:00 2001 From: Tom Parker <palf...@tevp.net> Date: Tue, 15 Dec 2009 15:56:28 +0000 Subject: [PATCH] Use pkg-config modules rather than libs/cflags --- configure | 2 ++ configure.ac | 1 + debian/changelog | 6 ++++++ libsexy.pc.in | 5 +++-- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/configure b/configure index bc49b6e..02cc707 100755 --- a/configure +++ b/configure @@ -20268,6 +20268,8 @@ echo "${ECHO_T}yes" >&6; } fi +PACKAGE_DEPS=$pkg_modules + GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0` diff --git a/configure.ac b/configure.ac index 1181192..3a2d8bb 100644 --- a/configure.ac +++ b/configure.ac @@ -86,6 +86,7 @@ pkg_modules="pango >= 1.4.0, glib-2.0 >= 2.4.0, gtk+-2.0 >= 2.4.0, libxml-2.0" PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) AC_SUBST(PACKAGE_CFLAGS) AC_SUBST(PACKAGE_LIBS) +AC_SUBST(PACKAGE_DEPS, $pkg_modules) GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0` AC_SUBST(GLIB_GENMARSHAL) diff --git a/debian/changelog b/debian/changelog index 7d44853..5fdf2ac 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +libsexy (0.1.11-3) UNRELEASED; urgency=low + + * Use pkg-config modules rather than libs/cflags + + -- Tom Parker <palf...@tevp.net> Tue, 15 Dec 2009 15:57:22 +0000 + libsexy (0.1.11-2) unstable; urgency=low * Fix DEB_SHLIBDEPS_INCLUDE_ and DEB_DH_MAKESHLIBS_ARGS_ to act on libsexy2 diff --git a/libsexy.pc.in b/libsexy.pc.in index 50d0d07..4dbd5cf 100644 --- a/libsexy.pc.in +++ b/libsexy.pc.in @@ -6,7 +6,8 @@ includedir=${prefix}/include Name: libsexy Description: Doing naughty things to good widgets Version: @VERSION@ -Libs: -L${libdir} -lsexy @PACKAGE_LIBS@ -Cflags: -I${includedir} @PACKAGE_CFLAGS@ +Requires.private: @PACKAGE_DEPS@ +Libs: -L${libdir} -lsexy +Cflags: -I${includedir} -- 1.6.5.3