1 |
> Hi Steve, |
2 |
> |
3 |
> On Sunday 18 April 2010 21:10:17 Steven Trogdon wrote: |
4 |
> > Christopher, |
5 |
> > |
6 |
> > |
7 |
> > |
8 |
> > I've finally gotten around to trying the changes and a clean emerge of |
9 |
> > everything installs as it should. Here a revdep-rebuild reveals that |
10 |
> > libsingular.so can't be found. The proposed resolution is to re-emerge |
11 |
> > sage-core which, of course, doesn't resolve the issue. What's the |
12 |
> > procedure to update the ld cache when libraries like libsingular.so are |
13 |
> > not in the "standard" location? Should something be done in |
14 |
> > sage-singular that doesn't compromise things? |
15 |
> |
16 |
> I noticed the same behavior and looked at /etc/ld.so.cache which pointed |
17 |
> to /etc/env.d/... - so the gentoo way of doing this would be to add a |
18 |
> file which contains LDPATH="/opt/sage/local/lib". Though I did not test |
19 |
> it, it should work and I will add this file tomorrow. |
20 |
Hi guys, |
21 |
|
22 |
I don't like that solution at all. What will happen if you have system wide |
23 |
singular and sage-singular? |
24 |
If you add this file there is a good chance that someone wanting to use the |
25 |
system provided singular will end up using sage-singular. |
26 |
|
27 |
Just for the purpose of testing for side effects, I installed singular-3.1.1. |
28 |
revdep-rebuild didn't pick up on sage-core after that. Probably because |
29 |
libsingular lacks an soname and is completely unversioned. |
30 |
|
31 |
No. sage-env takes care of telling sage where to look. There is no real |
32 |
perfect solution so long as we have ship sage-singular. |
33 |
For now I would put a file in /etc/revdep-rebuild masking the offending |
34 |
libraries. |
35 |
50sage-core: |
36 |
#Those files look for a version of libsingular that will be located through |
37 |
# LD_LIBRARY_PATH at run-time. |
38 |
LD_LIBRARY_MASK="lib1.so lib2.so lib3.so" |
39 |
|
40 |
----- |
41 |
Of course that means that revdep-rebuild cannot pick up the fact that |
42 |
they are broken. Which of course it may not be able to do anyway because |
43 |
of the lack of versioning. |
44 |
On the positive side a change in sage-singular will always coincide with |
45 |
a change of sage-core so there shouldn't be any trouble. |
46 |
|
47 |
Francois |