Package: src:shogun
Version: 1.1.0-3
Severity: normal
Tags: patch

Your source package is not correctly attaching dependencies to the shogun-
csharp-modular package. This is due to an unfortunate design flaw with the CDBS
build system you're using, which causes it to throw away all useful packaging
metadata across package lines in any package where both arch and arch-indep
packages are produced.

The attached patch tweaks the build system to call dh_clideps in a way that the
data is not discarded.

One related issue I have not addressed in this patch is that any packages built
against libshogun11 do not version their dependency. If libshogun11 is
sufficiently ABI-unstable that this should be required, then you should include
the following or similar in debian/rules:

DEB_DH_MAKESHLIBS_ARGS_libshogun11 := -V 'libshogun11 (= 1.1.0-3)'



-- System Information:
Debian Release: wheezy/sid
  APT prefers oneiric
  APT policy: (500, 'oneiric')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-12-generic (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
diff -Nru shogun-1.1.0/debian/changelog shogun-1.1.0/debian/changelog
--- shogun-1.1.0/debian/changelog	2012-01-23 08:07:54.000000000 +0000
+++ shogun-1.1.0/debian/changelog	2012-01-23 22:23:00.000000000 +0000
@@ -1,3 +1,14 @@
+shogun (1.1.0-3.1) unstable; urgency=low
+
+  * debian/rules:
+    + Include workaround for CDBS throwing away vital packaging data
+      required by dh_clideps to resolve dependencies.
+  * debian/control:
+    + Scrap unneeded manual dependencies on libmono-corlib4.0-cil and 
+      libshogun11.
+
+ -- Jo Shields <[email protected]>  Mon, 23 Jan 2012 22:20:55 +0000
+
 shogun (1.1.0-3) unstable; urgency=low
 
   * Make csharp package depend on libmono-corlib4.0-cil; remove csharp:Depends
diff -Nru shogun-1.1.0/debian/control shogun-1.1.0/debian/control
--- shogun-1.1.0/debian/control	2012-01-23 08:07:54.000000000 +0000
+++ shogun-1.1.0/debian/control	2012-01-23 22:19:31.000000000 +0000
@@ -256,8 +256,7 @@
 
 Package: shogun-csharp-modular
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, libshogun11 (= ${binary:Version}),
- ${cli:Depends}, libmono-corlib4.0-cil
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${cli:Depends}
 Description: Large Scale Machine Learning Toolbox
  SHOGUN - is a new machine learning toolbox with focus on large scale kernel
  methods and especially on Support Vector Machines (SVM) with focus to
diff -Nru shogun-1.1.0/debian/rules shogun-1.1.0/debian/rules
--- shogun-1.1.0/debian/rules	2012-01-22 21:32:07.000000000 +0000
+++ shogun-1.1.0/debian/rules	2012-01-23 22:20:53.000000000 +0000
@@ -126,9 +126,11 @@
 		DESTDIR=$(CURDIR)/debian/shogun-csharp-modular 
 	#dh_makeclilibs -a -V
 	#dh_installcligac -a
-	dh_clideps -a
 	touch $@
 
+binary-predeb/shogun-csharp-modular:: binary-fixup/$(LIBSHOGUN)
+	dh_clideps -pshogun-csharp-modular
+
 # java-modular
 install/shogun-java-modular:: debian/stamp-install-java-modular
 debian/stamp-install-java-modular:

Reply via email to