* [gentoo-science] [sage-on-prefix] sympow
@ 2010-12-06 21:13 Steven Trogdon
2010-12-06 21:25 ` fbissey
2010-12-07 11:48 ` Christopher Schwan
0 siblings, 2 replies; 3+ messages in thread
From: Steven Trogdon @ 2010-12-06 21:13 UTC (permalink / raw
To: gentoo-science
[-- Attachment #1: Type: text/plain, Size: 911 bytes --]
Hi Christopher,
Since sage-on-prefix is semi-official I though I would indicate an
issue I encountered in installing Sage from sage-on-gentoo in a prefix
on Debian Linux.
When building sympow (sympow-1.018.1_p8-r1) the Debian system gcc
compiler was being used instead of the Prefix gcc. This was because
sympow provides in Configure a whichexe() function with hard-coded
search paths. The easiest thing for me was to add:
# fix EPREFIX in whichexe() function
sed -i -e "s:-f \/bin:-f ${EPREFIX}\/bin:" \
-e "s:echo \/bin:echo ${EPREFIX}\/bin:" \
-e "s:\/usr:${EPREFIX}\/usr:g" \
Configure || die "failed to fix EPREFIX in whichexe()"
to src_prepare(). I didn't think about it until just recently, but
perhaps the hard-coded paths could be removed so the prefix/gentoo
system 'which' is used.
Steve
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-science] [sage-on-prefix] sympow
2010-12-06 21:13 [gentoo-science] [sage-on-prefix] sympow Steven Trogdon
@ 2010-12-06 21:25 ` fbissey
2010-12-07 11:48 ` Christopher Schwan
1 sibling, 0 replies; 3+ messages in thread
From: fbissey @ 2010-12-06 21:25 UTC (permalink / raw
To: gentoo-science
Quoting Steven Trogdon <strogdon@d.umn.edu>:
> Hi Christopher,
>
> Since sage-on-prefix is semi-official I though I would indicate an
> issue I encountered in installing Sage from sage-on-gentoo in a prefix
> on Debian Linux.
>
> When building sympow (sympow-1.018.1_p8-r1) the Debian system gcc
> compiler was being used instead of the Prefix gcc. This was because
> sympow provides in Configure a whichexe() function with hard-coded
> search paths. The easiest thing for me was to add:
>
> # fix EPREFIX in whichexe() function
> sed -i -e "s:-f \/bin:-f ${EPREFIX}\/bin:" \
> -e "s:echo \/bin:echo ${EPREFIX}\/bin:" \
> -e "s:\/usr:${EPREFIX}\/usr:g" \
> Configure || die "failed to fix EPREFIX in whichexe()"
>
> to src_prepare(). I didn't think about it until just recently, but
> perhaps the hard-coded paths could be removed so the prefix/gentoo
> system 'which' is used.
>
Hi Steve,
I almost fell like forwarding that one to Dave on sage-devel for
a laugh. It looks like a fairly decent fix to me.
I am not back on duty but at least I read my email.
Francois
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-science] [sage-on-prefix] sympow
2010-12-06 21:13 [gentoo-science] [sage-on-prefix] sympow Steven Trogdon
2010-12-06 21:25 ` fbissey
@ 2010-12-07 11:48 ` Christopher Schwan
1 sibling, 0 replies; 3+ messages in thread
From: Christopher Schwan @ 2010-12-07 11:48 UTC (permalink / raw
To: gentoo-science
Hi Steve,
On Monday 06 December 2010 22:13:57 Steven Trogdon wrote:
> Hi Christopher,
>
> Since sage-on-prefix is semi-official I though I would indicate an
> issue I encountered in installing Sage from sage-on-gentoo in a prefix
> on Debian Linux.
Thanks!
>
> When building sympow (sympow-1.018.1_p8-r1) the Debian system gcc
> compiler was being used instead of the Prefix gcc. This was because
> sympow provides in Configure a whichexe() function with hard-coded
> search paths. The easiest thing for me was to add:
>
> # fix EPREFIX in whichexe() function
> sed -i -e "s:-f \/bin:-f ${EPREFIX}\/bin:" \
> -e "s:echo \/bin:echo ${EPREFIX}\/bin:" \
> -e "s:\/usr:${EPREFIX}\/usr:g" \
> Configure || die "failed to fix EPREFIX in whichexe()"
>
> to src_prepare(). I didn't think about it until just recently, but
> perhaps the hard-coded paths could be removed so the prefix/gentoo
> system 'which' is used.
Yes, I simply replaced "whichexe " with "which ", which should do it.
>
> Steve
Christopher
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-12-07 11:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-06 21:13 [gentoo-science] [sage-on-prefix] sympow Steven Trogdon
2010-12-06 21:25 ` fbissey
2010-12-07 11:48 ` Christopher Schwan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox