← Back to team overview

dolfin team mailing list archive

Re: Debian/Ubuntu Repositories

 

Åsmund Ødegård wrote:


On 9/17/07, *LUK ShunTim* <shuntim.luk@xxxxxxxxxxxx <mailto:shuntim.luk@xxxxxxxxxxxx>> wrote:

    Anders Logg wrote:
     > Note that Åsmund Ødegård is now the maintainer of the packages,
    so you
     > need to update the key used to sign the packages:
     >
     > sudo wget http://www.fenics.org/debian/pubring.gpg -O- | sudo
    apt-key add -
     >
     > /Anders
     >

    Thanks for make it apt-gettable. Please consider making syfi depends
    *explicitly* on python2.5 so that it can play nicely with debian. The
    default python version in debian (sid) is 2.4.



If you can try again now, I am happy to hear about it - I think I managed to upload a new version of syfi now with python2.5 listed explicitly as dep.

Hello Asmund,

Thanks very much. However, not good yet. Error message:

<error>
The following packages have unmet dependencies:
  syfi: Depends: python (>= 2.5) but 2.4.4-6 is to be installed
E: Broken packages
</error>

I tried building it from deb-src and got until:

<error>
Making install in python
make[3]: Entering directory `/home/st/00work/fenics/deb/syfi-0.4.1/python'
python setup.py install --prefix=/usr --install-platlib=/home/st/00work/fenics/deb/syfi-0.4.1/debian/syfi/usr/lib/python2.5
running install
running build
running build_py
copying SyFi.py -> build/lib.linux-i686-2.4
running build_ext
building '_SyFi' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -I. -I../syfi -I/usr/include/python2.4 -c SyFi_wrap.cxx -o build/temp.linux-i686-2.4/SyFi_wrap.o cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
SyFi_wrap.cxx: In function ‘PyObject* ex2type(const GiNaC::ex*)’:
SyFi_wrap.cxx:3060: error: switch quantity not an integer
SyFi_wrap.cxx:3061: error: ‘TINFO_basic’ was not declared in this scope
SyFi_wrap.cxx:3062: error: ‘TINFO_numeric’ was not declared in this scope
...
error: command 'gcc' failed with exit status 1
</error>

Somehow it picked up the default python2.4,"build/lib.linux-i686-2.4" and "-I/usr/include/python2.4",..., and not python2.5.

I guess it has something to do with the dh_pycentral command. I'm now reading the debian policy document

http://www.debian.org/doc/packaging-manuals/python-policy/

and see if I can figure out something. I'm just a user, not a developer. Don't hold your breadth. :-)

Thanks again,
ST
--



Follow ups

References