From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PPiaQ-0004n2-LS for garchives@archives.gentoo.org; Mon, 06 Dec 2010 21:27:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 130F4E06B0; Mon, 6 Dec 2010 21:26:28 +0000 (UTC) Received: from mxi2.callplus.net.nz (mx194.callplus.net.nz [202.180.66.194]) by pigeon.gentoo.org (Postfix) with ESMTP id 8209BE06B0 for ; Mon, 6 Dec 2010 21:26:26 +0000 (UTC) Received: from wmsrv3.tranzpeer.net (HELO localhost) ([202.180.66.4]) by ismtp02.callplus.net.nz with ESMTP; 07 Dec 2010 10:26:25 +1300 Received: from 132.181.64.237 ([132.181.64.237]) by webmail.slingshot.co.nz (Horde) with HTTP for ; Tue, 07 Dec 2010 10:25:59 +1300 Message-ID: <20101207102559.z40w8cswwcw4sc0g@webmail.slingshot.co.nz> Date: Tue, 07 Dec 2010 10:25:59 +1300 From: fbissey@slingshot.co.nz To: gentoo-science@lists.gentoo.org Subject: Re: [gentoo-science] [sage-on-prefix] sympow References: <1291670037.26551.1@ledaig> In-Reply-To: <1291670037.26551.1@ledaig> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-science@lists.gentoo.org Reply-to: gentoo-science@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs X-Originating-IP: 132.181.64.237 X-Archives-Salt: c9df4676-6707-4681-9be8-f17277cf4188 X-Archives-Hash: 2cc39c1123975b0601cfe995f1211ce3 Quoting Steven Trogdon : > 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