Building a deb for sage on Debian/Ubuntu

Jan Groenewald jan at
Sat Feb 25 20:02:46 UTC 2012


I am looking for a Debian or Ubuntu packaging mentor.

I am not an experienced debian packager, I am learning everything from
But I am an experienced system administrator.

I am hoping to find a mentor familiar with both Debian/Ubuntu and sage to
assist me.

I am trying to build a deb package for sage. I am doing this on launchpad
for Ubuntu using
I would not mind getting Sage into Debian first, but found the Ubuntu
more accessible and am an Ubuntu user.

I am NOT trying to debianize sage fully -- i.e. I do not want to have sage
on debian/ubuntu versions of all the spkg'es, my goal is just to make Sage
easy to
install on Ubuntu through a personal package archive, including all sage
versions of

I have succesfully built sage-4.8 on Ubuntu 12.04 (yes, the development
However, when running debuild, maxima fails to build:

l,-z,relro -L/home/jan/sage-4.8/sagemath/local/lib
-L/home/jan/sage-4.8/sagemath/local/lib -lecl -lgmp -lgc -ldl -lm make[4]:
*** [binary-ecl/maxima] Error 1
make[4]: Leaving directory
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
Error: Failed to build Maxima.

real    4m21.449s
user    3m49.458s
sys    0m19.189s
Error installing package maxima-5.23.2.p3
Please email sage-devel (
explaining the problem and including the relevant part of the log file
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/jan/sage-4.8/sagemath/spkg/build/maxima-5.23.2.p3 and type 'make' or
whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
  (cd '/home/jan/sage-4.8/sagemath/spkg/build/maxima-5.23.2.p3' &&
'/home/jan/sage-4.8/sagemath/sage' -sh)
When you are done debugging, you can type "exit" to leave the subshell.
make[2]: *** [installed/maxima-5.23.2.p3] Error 1
make[2]: Leaving directory `/home/jan/sage-4.8/sagemath/spkg'

real    145m34.953s
user    127m7.853s
sys    8m51.233s
Error building Sage.
make[1]: *** [build] Error 1
make[1]: Leaving directory `/home/jan/sage-4.8/sagemath'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1350:
dpkg-buildpackage -rfakeroot -D -us -uc failed
29 jan at osprey:~/sage-4.8/sagemath$


  /V\     Jan Groenewald
 /( )\
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Ubuntu-motu mailing list