2010/7/17 François Bissey <f.r.bis...@massey.ac.nz>:
>> As an aside, if two upstream packages include another upstream
>> package (e.g. both include GMP) what does Sage do? Are there
>> two copies of GMP? They could have different versions of the
>> same package since project 1 could have stopped at one version
>> and project 2 could have stopped at another. Sage could be
>> using a third.
>
> Funny you mentioned GMP. At one point givaro was shipping its own
> GMP. It was actually an accident on the givaro devs part - and I had
> notified them. But I didn't notify this list. So in at least one release
> givaro was actually overwriting part of GMP.

  I think there may be still duplicates somewhere, not just GMP, but
probably don't affect sage because either sage doesn't build it by
default, e.g. gap optional modules, or sage talks to it using the
pexpect interface.

> For your question I guess it depends if it is kept internally without
> clash with anything else or it actively tries to overwrite things that
> have been installed already.
> The second one is a no-no, and the first one should be fixed to use upstream
> but not as a matter of emergency I would guess.

  If it is linked statically, and provides only an opaque interface,
usually it should just work, but that may depend on how the duplicates
access external resources, like files, kernel interface, etc. Problems
can get serious on shared objects when there are name clashes
(I remember when I tried LD_PRELOAD=libpolybori.so and discovered that
it builds stubs to several libc calls if UNIX is not defined, and it
is not in Linux).

  About Tim Daly comment that I think may be related to axiom :-) The
axiom package was broken for quite some time in Mandriva. My first
work on it I got it to work with system gmp,
but need several gcl patches. When someone else in Mandriva updated to
gmp 5, I rebuilt axiom using its internal copy of gmp3 (I am using git
axiom). In case you want to check it:
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/axiom/

> Francois

Paulo

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

Reply via email to