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 1O3PSX-0001Re-NE for garchives@archives.gentoo.org; Sun, 18 Apr 2010 08:02:29 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C123AE0959 for ; Sun, 18 Apr 2010 08:02:28 +0000 (UTC) Received: from mxi2.callplus.net.nz (mx198.callplus.net.nz [202.180.66.198]) by pigeon.gentoo.org (Postfix) with ESMTP id 20C83E08F9 for ; Sun, 18 Apr 2010 07:46:33 +0000 (UTC) Received: from 119-224-48-139.callplus.net.nz (HELO vrooom.localnet) ([119.224.48.139]) by ismtp02.callplus.net.nz with ESMTP; 18 Apr 2010 19:46:32 +1200 From: =?iso-8859-1?q?Fran=E7ois_Bissey?= To: gentoo-science@lists.gentoo.org Subject: Re: [gentoo-science] sage-4.3.5-r1 && sage-core Date: Sun, 18 Apr 2010 19:46:31 +1200 User-Agent: KMail/1.13.2 (Linux/2.6.32-gentoo-r1; KDE/4.4.2; i686; ; ) References: <1271568736.17226.0@pavilion64> In-Reply-To: <1271568736.17226.0@pavilion64> 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="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201004181946.31241.f.r.bissey@massey.ac.nz> X-Archives-Salt: 31a4ee4f-a67e-4941-b92c-a702d47707c3 X-Archives-Hash: f5aec4808cb202dce23c13ae4f4a84ff > Christopher, > > The follow probably only applies to amd64. Sage will not install with the > subject ebuilds. The > "sage -c" during postinstall fails because the files > > /opt/sage/local/lib/sage-flag.txt > /opt/sage/local/lib/sage-current-location.txt > > cannot be written since /opt/sage/local/lib doesn't exit. I suppose the > files are needed. One can create the symlink lib -> lib64 if lib is needed > or whatever. Even if this is fixed "sage -c" fails because the amd64-hack > patch does't take. The spkg-install is bypassed with the sage-core ebuild. > I tried a variety of things to get Sage to install and adding > > append-flags -fno-strict-aliasing > > to the sage-core ebuild works here. I'm not sure of the impact on ~x86 or > ~pcc. > Hi Steve, thanks for the report. We need to patch the sage-location script. I would prefer to get rid of it actually but that may not be possible in the short term. The problem is right there at the top of the script: #!/usr/bin/env python import os, sys SAGE_ROOT = os.environ['SAGE_ROOT'] location_file = '%s/local/lib/sage-current-location.txt'%SAGE_ROOT flags_file = '%s/local/lib/sage-flags.txt'%SAGE_ROOT ----------------- We put things nicely into lib/lib64 now, so it is a problem. We may have to grep all the sage scripts for other offenders. I am not sure I can post a fix straight away: sed -i "s:local/lib/sage:local/$(get_libdir)/sage:g" sage-location in src_prepare should do the trick. Francois