Gentoo Archives: gentoo-science

From: "François Bissey" <f.r.bissey@×××××××××.nz>
To: gentoo-science@l.g.o
Subject: Re: [gentoo-science] sage-4.3.5-r1 && sage-core
Date: Sun, 18 Apr 2010 08:02:29
Message-Id: 201004181946.31241.f.r.bissey@massey.ac.nz
In Reply to: [gentoo-science] sage-4.3.5-r1 && sage-core by Steven Trogdon
1 > Christopher,
2 >
3 > The follow probably only applies to amd64. Sage will not install with the
4 > subject ebuilds. The
5 > "sage -c" during postinstall fails because the files
6 >
7 > /opt/sage/local/lib/sage-flag.txt
8 > /opt/sage/local/lib/sage-current-location.txt
9 >
10 > cannot be written since /opt/sage/local/lib doesn't exit. I suppose the
11 > files are needed. One can create the symlink lib -> lib64 if lib is needed
12 > or whatever. Even if this is fixed "sage -c" fails because the amd64-hack
13 > patch does't take. The spkg-install is bypassed with the sage-core ebuild.
14 > I tried a variety of things to get Sage to install and adding
15 >
16 > append-flags -fno-strict-aliasing
17 >
18 > to the sage-core ebuild works here. I'm not sure of the impact on ~x86 or
19 > ~pcc.
20 >
21 Hi Steve,
22
23 thanks for the report. We need to patch the sage-location script. I would
24 prefer to get rid of it actually but that may not be possible in the short
25 term.
26 The problem is right there at the top of the script:
27 #!/usr/bin/env python
28
29 import os, sys
30
31 SAGE_ROOT = os.environ['SAGE_ROOT']
32
33 location_file = '%s/local/lib/sage-current-location.txt'%SAGE_ROOT
34 flags_file = '%s/local/lib/sage-flags.txt'%SAGE_ROOT
35
36 -----------------
37 We put things nicely into lib/lib64 now, so it is a problem.
38 We may have to grep all the sage scripts for other offenders.
39
40 I am not sure I can post a fix straight away:
41 sed -i "s:local/lib/sage:local/$(get_libdir)/sage:g" sage-location
42 in src_prepare should do the trick.
43
44 Francois