Package: libcups2-dev
Version: 1.6.4-2
Severity: minor

cups-config --libs outputs (even when --static is not specified) a list
of linker flags that is much longer than necessary.

Apart from passing on extra unnecessary flags to users
of cups-config, this has the consequence of libcups2-dev ending up
with dependencies on (among others) libkrb5-dev. libkrb5-dev conflicts
with some other packages (most notably heimdal-dev), making it
impossible to have heimdal-dev and libcups2-dev installed together.

The attached patch should fix cups-config. I would also report this
bug upstream, but unfortunately upstream's bugtracker seems to be down.
:-(

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11-2-amd64 (SMP w/4 CPU cores)
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 libcups2-dev depends on:
ii  libcups2       1.6.4-2
ii  libgnutls-dev  2.12.23-8
ii  libkrb5-dev    1.12~alpha1+dfsg-1

libcups2-dev recommends no packages.

libcups2-dev suggests no packages.

-- no debconf information
diff --git a/cups-config.in b/cups-config.in
index 436800a..84237a7 100755
--- a/cups-config.in
+++ b/cups-config.in
@@ -105,7 +105,7 @@ while test $# -gt 0; do
 	    ;;
 	--libs)
 	    if test $static = no; then
-	        libs="@EXTLINKCUPS@ $LIBS";
+	        libs="@EXTLINKCUPS@";
  	        if test $image = yes; then
  	            libs="@EXTLINKCUPSIMAGE@ $libs"
 		fi

Reply via email to