[Python-modules-team] Bug#589592: Bug#589592: FTBFS: __multiarray_api.h:1208: error: 'NPY_API_VERSION' was not declared in this scope

Sandro Tosi morph at debian.org
Wed Jul 21 12:43:41 UTC 2010


Hello Soeren,

On Tue, Jul 20, 2010 at 23:46, Soeren Sonnenburg <sonne at debian.org> wrote:
> Package: python-numpy
> Version: 1:1.4.1-2
> Severity: normal
>
> This bug in numpy also causes shogun to FTBS. IMHO the right fix would
> be to use
>
> #include "numpy/_numpyconfig.h"
>
> in
>
> /usr/share/pyshared/numpy/core/include/numpy/numpyconfig.h

No, the error was to link /usr/include/python2.*/numpy to
/usr/share/pyshared/numpy/core/include instead of
/usr/lib/pymodules/python2.*/numpy/core/include/numpy. This has been
fixed with the (not yet released) -3 revision
(svn://svn.debian.org/python-modules/packages/numpy/trunk)

I run a test built of shogun with that revision and it passes the part
that failed before; anyhow, it seems to FTBFS because:

Adding cdbs dependencies to debian/shogun-doc-en.substvars
dh_installdirs -pshogun-doc-en
mkdir -p /home/morph/deb/tmp/shogun-0.9.3/debian/shogun-doc-en/usr/share/doc/shogun-doc-en/html
cd doc/html && cp *.html *.png *.gif *.css
/home/morph/deb/tmp/shogun-0.9.3/debian/shogun-doc-en/usr/share/doc/shogun-doc-en/html/
cp: cannot stat `*.gif': No such file or directory
make: *** [debian/stamp-install-doc-en] Error 1

(it was not in a clean chroot, tho) and if built twice in a row, with
tons of messages like:

dpkg-source: error: cannot represent change to
shogun-0.9.3/src/python_modular/Distance.i:
dpkg-source: error:   new version is symlink to ../modular/Distance.i
dpkg-source: error:   old version is nonexistent
dpkg-source: error: cannot represent change to
shogun-0.9.3/src/python_modular/sg_print_functions.cpp.o: binary file
contents changed
dpkg-source: error: add src/python_modular/sg_print_functions.cpp.o in
debian/source/include-binaries if you want to store the modified
binary in the debian tarball

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi





More information about the Python-modules-team mailing list