[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#342888: Direct dependency on libgsf is superfluous

Package: kword
Version: 1:1.4.2-3
Severity: important
Tags: patch

The kword package has a direct dependency on the libgsf runtime package
which is complicating the transition of the new libgsf into testing.

This dependency is superfluous; it is introduced by relying on "wv2-config
--libs" output, which is deprecated behaviour in Debian (see

As a test, I've rebuilt koffice in a pbuilder sid chroot with a
/usr/bin/wv2-config modified not to include "-lgsf" in its output and the
resulting kword package no longer has a direct libgsf dependency.

If I'm understanding the koffice source package correctly, a way to fix it
in koffice directly is to patch ./filters/kword/msword/configure.in.in not
to use "wv2config --libs" output (see attachment) and to propagate that
change (regenerate the top-level configure.in; reauto* the source package;
update debian/patches/98_buildprep.diff).

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (800, 'unstable'), (750, 'experimental'), (500, 'testing-proposed-updates'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux
Locale: LANG=C, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
Obsig: developing a new sig
--- ./filters/kword/msword/configure.in.in	2005-10-05 12:26:33.000000000 +0200
+++ /tmp/configure.in.in	2005-12-11 15:52:01.000000000 +0100
@@ -26,7 +26,8 @@
   vers=`$WV2_CONFIG --version 2>/dev/null | $SED -e 's/libwv2 //' | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
   if test -n "$vers" && test "$vers" -ge 1009
-     LIBWV2_LIBS="`$WV2_CONFIG --libs`"
+     #LIBWV2_LIBS="`$WV2_CONFIG --libs`"
+     LIBWV2_LIBS="-lwv2"
      for args in $LIBWV2_LIBS; do
 	  case $args in

Reply to: