On Sat, Dec 03, 2011 at 05:20:32PM +0100, Jakub Wilk wrote:
> * Miguel de Val-Borro <miguel.de...@gmail.com>, 2011-12-03, 16:32:
> >>>--- numexpr-1.4.2/debian/rules     2011-04-07 04:10:59.000000000 +0200
> >>>+++ numexpr-1.4.2/debian/rules     2011-12-03 12:13:42.000000000 +0100
> >>>@@ -19,4 +19,7 @@
> >>> install/$(DEB_PYTHON_MODULE_PACKAGES)::
> >>>   sed -i 's#\#!/usr/bin/python[0-9].[0-9]#\#!/usr/bin/python#' \
> >>>           $(cdbs_python_destdir)usr/bin/*
> >>>+
> >>>+build/python-numexpr::
> >>>+  dh_numpy
> >>> # rm -f $(cdbs_python_destdir)usr/share/doc/python-numexpr/LICENSE.txt
> >>
> >>That's an unusual place to call dh_numpy (or any helper that generates 
> >>dependencies). The patch happens to do the trick for the moment, but 
> >>only because dh_numpy is quite dumb and doesn't look at package 
> >>contents. If dh_numpy ever grows smarter, this package will break.
> >
> >Would it be correct to call dh_numpy under the install rule?
> >
> >install/python-numexpr::
> >     dh_numpy
> >
> >When the package is built like that it also has the right dependency on 
> >numpy.
> 
> AFAICS, yes, that'd be correct.

This is fixed in the attached patch to be applied to 1.4.2-1.1.

Thanks,
Miguel
diff -Nru numexpr-1.4.2/debian/changelog numexpr-1.4.2/debian/changelog
--- numexpr-1.4.2/debian/changelog      2011-12-03 18:00:30.000000000 +0100
+++ numexpr-1.4.2/debian/changelog      2011-12-03 18:08:50.000000000 +0100
@@ -1,3 +1,10 @@
+numexpr (1.4.2-1.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Move call to dh_numpy under the install rule.
+
+ -- Miguel de Val Borro <miguel.de...@gmail.com>  Sat, 03 Dec 2011 18:05:28 
+0100
+
 numexpr (1.4.2-1.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff -Nru numexpr-1.4.2/debian/rules numexpr-1.4.2/debian/rules
--- numexpr-1.4.2/debian/rules  2011-12-03 18:01:13.000000000 +0100
+++ numexpr-1.4.2/debian/rules  2011-12-03 18:05:17.000000000 +0100
@@ -19,7 +19,7 @@
 install/$(DEB_PYTHON_MODULE_PACKAGES)::
        sed -i 's#\#!/usr/bin/python[0-9].[0-9]#\#!/usr/bin/python#' \
                $(cdbs_python_destdir)usr/bin/*
+#      rm -f $(cdbs_python_destdir)usr/share/doc/python-numexpr/LICENSE.txt
 
-build/python-numexpr::
+install/python-numexpr::
        dh_numpy
-#      rm -f $(cdbs_python_destdir)usr/share/doc/python-numexpr/LICENSE.txt

Reply via email to