On Feb 19, 3:55 am, Simon King <k...@mathematik.uni-jena.de> wrote:
> Hi Martin,
>
> On Feb 19, 12:39 pm, Martin Albrecht <m...@informatik.uni-bremen.de>
> wrote:
>
> > On Thursday 19 February 2009, mabshoff wrote:
>
> > Simon, since it is rather hard to guess what your problem is exactly, why
> > don't you just post the SPKG somewhere so that someone else can take a look?
>
> OK, 
> seehttp://sage.math.washington.edu/home/SimonKing/SPKG/singular-3-1-0-be...

Oh well :)

> > Also, you need to rebuild all the extensions depending on libsingular, 
> > that's
> > probably causing your crash.
>
> So, this would answer my first question (how can one switch in an
> *existing* Sage build from one Singular version to another?).

We discussed that already, but once more: check devel/sage/
module_list.py for all extensions that link against libSingular and
touch them, followed by a sage -b or see below.

> But what are the extensions depending on libsingular?
> Is there an automated way to find out on what extensions need to be
> rebuilt when changing some spkg?

The trick is to add dependencies:

    Extension('sage.matrix.matrix_mod2_dense',
              sources = ['sage/matrix/matrix_mod2_dense.pyx'],
              libraries = ['gmp','m4ri', 'png12', 'gd'],
              depends = [SAGE_ROOT + "/local/include/png.h"]),

This example from devel/sage/module_list.py makes
matrix_mod2_dense.pyx depend on libpng. It should probably also depend
on gmp.h as well as m4ri.h, but I haven't gotten around to that.

So feel free to submit a patch that makes all libsingular extensions
dependent on singular.h. Once you upgrade the singular.spkg a "sage -
b" will rebuild all those extensions depending on it. I plan to add
those dependencies in the long term for a bunch of libraries, but
ntl.h and gmp.h are everywhere, so making extensions depend on those
two will trigger a complete rebuild which we want to avoid since their
ABI in this case is very stable.

> Cheers,
>      Simon

Cheers,

Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to