I tested this issue in my sid amd64 chroot as user nobody with a
nonexistant homedir.
The homedir issue was easy enough to fix but then the build failed with
what appeared to be problems caused by lack of a fortran compiler so I
added gfortran to the build-dependencies and installed it.
however I then got a load of undefined reference errors (the last couple
of which are copied below) and a failure to link
/nobody/nipy-0.1.2+1741/libfffpy/wrapper/fffpy.c:13: undefined reference
to `PyE
rr_SetString'
/usr/lib/gcc/x86_64-linux-gnu/4.3.3/libgfortranbegin.a(fmain.o): In
function `ma
in':
(.text+0x28): undefined reference to `MAIN__'
collect2: ld returned 1 exit status
error: Command "/usr/bin/gfortran -Wall
/nobody/nipy-0.1.2+1741/./build/temp.lin
ux-x86_64-2.5/nipy/neurospin/bindings/linalg.o -L/usr/lib -L/usr/lib
-L/nobody/n
ipy-0.1.2+1741/./build/temp.linux-x86_64-2.5 -lfffpy -llapack -lf77blas
-lcblas
-latlas -llapack -lf77blas -lcblas -latlas -lgfortran -o
/nobody/nipy-0.1.2+1741
/./build/lib.linux-x86_64-2.5/nipy/neurospin/bindings/linalg.so" failed
with exi
t status 1
make: *** [debian/python-module-stampdir/python-nipy] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
nob...@debian:/nobody/nipy-0.1.2+1741$
I have attatched a patch with the changes I have made but have no idea
how to troubleshoot this link error.
diff -ur nipy-0.1.2+1741/debian/control nipy-0.1.2+1741.new/debian/control
--- nipy-0.1.2+1741/debian/control 2009-07-05 02:28:10.000000000 +0000
+++ nipy-0.1.2+1741.new/debian/control 2009-07-05 02:17:00.000000000 +0000
@@ -3,7 +3,7 @@
Priority: extra
Maintainer: Experimental Psychology Maintainers <pkg-exppsy-maintain...@lists.alioth.debian.org>
Uploaders: Yaroslav Halchenko <deb...@onerussian.com>, Michael Hanke <michael.ha...@gmail.com>
-Build-Depends: cdbs, debhelper (>= 7), python-all-dev (>= 2.4), python-support (>= 0.6), python-scipy, python-numpy (>= 1.2), python-matplotlib (>= 0.98.3), python-sphinx (>= 0.6), python-nifti (>> 0.20090302), liblapack-dev, python-nose, liblapack-dev, python-dbg, python-numpy-dbg, texlive, texlive-latex-extra, graphviz
+Build-Depends: cdbs, debhelper (>= 7), python-all-dev (>= 2.4), python-support (>= 0.6), python-scipy, python-numpy (>= 1.2), python-matplotlib (>= 0.98.3), python-sphinx (>= 0.6), python-nifti (>> 0.20090302), liblapack-dev, python-nose, liblapack-dev, python-dbg, python-numpy-dbg, texlive, texlive-latex-extra, graphviz, gfortran
Standards-Version: 3.8.1
Homepage: http://neuroimaging.scipy.org
Vcs-Browser: http://git.debian.org/?p=pkg-exppsy/nipy.git
diff -ur nipy-0.1.2+1741/debian/rules nipy-0.1.2+1741.new/debian/rules
--- nipy-0.1.2+1741/debian/rules 2009-07-05 02:28:10.000000000 +0000
+++ nipy-0.1.2+1741.new/debian/rules 2009-07-05 02:07:29.000000000 +0000
@@ -1,5 +1,9 @@
#!/usr/bin/make -f
+#set up home directory to somewhere in our build tree
+#so sphinx doesn't fail
+export HOME:=$(PWD)/home
+
include /usr/share/cdbs/1/rules/debhelper.mk
DEB_PYTHON_SYSTEM = pysupport
# for earlier cdbs versions
@@ -13,6 +17,8 @@
#
doc: doc-stamp
doc-stamp: build/python-nipy
+ #create home directory for build stuff to run in
+ mkdir home
export PYTHONPATH=$$PWD/`/bin/ls -d build/lib.*`; cd doc; $(MAKE) html pdf
touch $@
@@ -90,5 +96,7 @@
clean::
rm -rf build nipy/neurospin/__config__.py
$(MAKE) -C doc clean
+ #clean up home we made for build
+ rm -rf home
.PHONY: doc clean
Only in nipy-0.1.2+1741.new/doc: build