On Fri, Sep 16, 2011 at 10:24:37AM +0200, Jakub Wilk wrote:
> Package: python-biosig
> Version: 0.96.3+svn2677-2
> Severity: serious
> Justification: Policy 3.5
>
> In a minimal sid chroot:
> | $ python -c 'import biosig'
> | ImportError: numpy.core.multiarray failed to import
> | Traceback (most recent call last):
> | File "<string>", line 1, in <module>
> | File "/usr/lib/pymodules/python2.6/biosig.py", line 26, in <module>
> | _biosig = swig_import_helper()
> | File "/usr/lib/pymodules/python2.6/biosig.py", line 22, in
> swig_import_helper
> | _mod = imp.load_module('_biosig', fp, pathname, description)
> | ImportError: numpy.core.multiarray failed to import
>
> BTW, since your package uses Numpy via a C extension module, you should use
> dh_numpy to generate versioned dependency on it.
This patch fixes the numpy dependency using dh_numpy under the
override_dh_auto_install command.
Miguel
diff -Nru biosig4c++-0.96.3+svn2677/debian/changelog biosig4c++-0.96.3+svn2677/debian/changelog
--- biosig4c++-0.96.3+svn2677/debian/changelog 2011-07-09 16:42:23.000000000 +0200
+++ biosig4c++-0.96.3+svn2677/debian/changelog 2011-12-02 20:06:05.000000000 +0100
@@ -1,3 +1,11 @@
+biosig4c++ (0.96.3+svn2677-2.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Fix "missing dependency on python-numpy" by adding dh_numpy under
+ override_dh_auto_install (Closes: #641790)
+
+ -- Miguel de Val Borro <[email protected]> Fri, 02 Dec 2011 20:02:39 +0100
+
biosig4c++ (0.96.3+svn2677-2) unstable; urgency=low
* up_for_loop_initial patch to prevent FTBFS. Thanks Aurelien Jarno for
diff -Nru biosig4c++-0.96.3+svn2677/debian/rules biosig4c++-0.96.3+svn2677/debian/rules
--- biosig4c++-0.96.3+svn2677/debian/rules 2011-07-09 16:42:23.000000000 +0200
+++ biosig4c++-0.96.3+svn2677/debian/rules 2011-12-02 20:07:03.000000000 +0100
@@ -41,6 +41,8 @@
install mex/mexS*.mex debian/octave-biosig$(OCTDIR)
[ -e /usr/bin/octave-depends ] && octave-depends
+ dh_numpy
+
override_dh_strip:
dh_strip --dbg-package=libbiosig0-dbg
: # Address lintian concern about location