Gentoo Archives: gentoo-science

From: Christopher Schwan <cschwan@××××××××××××××××××.de>
To: gentoo-science@l.g.o
Subject: Re: [gentoo-science] [sage-on-prefix] sympow
Date: Tue, 07 Dec 2010 11:49:32
Message-Id: 201012071248.35427.cschwan@students.uni-mainz.de
In Reply to: [gentoo-science] [sage-on-prefix] sympow by Steven Trogdon
1 Hi Steve,
2
3 On Monday 06 December 2010 22:13:57 Steven Trogdon wrote:
4 > Hi Christopher,
5 >
6 > Since sage-on-prefix is semi-official I though I would indicate an
7 > issue I encountered in installing Sage from sage-on-gentoo in a prefix
8 > on Debian Linux.
9
10 Thanks!
11
12 >
13 > When building sympow (sympow-1.018.1_p8-r1) the Debian system gcc
14 > compiler was being used instead of the Prefix gcc. This was because
15 > sympow provides in Configure a whichexe() function with hard-coded
16 > search paths. The easiest thing for me was to add:
17 >
18 > # fix EPREFIX in whichexe() function
19 > sed -i -e "s:-f \/bin:-f ${EPREFIX}\/bin:" \
20 > -e "s:echo \/bin:echo ${EPREFIX}\/bin:" \
21 > -e "s:\/usr:${EPREFIX}\/usr:g" \
22 > Configure || die "failed to fix EPREFIX in whichexe()"
23 >
24 > to src_prepare(). I didn't think about it until just recently, but
25 > perhaps the hard-coded paths could be removed so the prefix/gentoo
26 > system 'which' is used.
27
28 Yes, I simply replaced "whichexe " with "which ", which should do it.
29
30 >
31 > Steve
32
33 Christopher