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 1PGdfw-0006az-RG for garchives@archives.gentoo.org; Thu, 11 Nov 2010 20:23:16 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BCBCAE07BA; Thu, 11 Nov 2010 20:22:56 +0000 (UTC) Received: from mxi2.callplus.net.nz (mx194.callplus.net.nz [202.180.66.194]) by pigeon.gentoo.org (Postfix) with ESMTP id 47A0BE07BA for ; Thu, 11 Nov 2010 20:22:55 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au0GAIHf20x8xQFN/2dsb2JhbACUTY17csJPhUoEilg Received: from 124-197-1-77.callplus.net.nz (HELO vrooom.localnet) ([124.197.1.77]) by ismtp02.callplus.net.nz with ESMTP; 12 Nov 2010 09:22:54 +1300 From: =?iso-8859-1?q?Fran=E7ois_Bissey?= To: gentoo-science@lists.gentoo.org Subject: Re: [gentoo-science] sci-libs/mpir for the main tree Date: Fri, 12 Nov 2010 09:22:53 +1300 User-Agent: KMail/1.13.5 (Linux/2.6.35-gentoo-r4; KDE/4.4.5; i686; ; ) References: <20101108234212.GN1906@denkmatte.mittag-leffler.se> <201011100941.49756.cschwan@students.uni-mainz.de> <20101111191125.GQ5225@denkmatte.mittag-leffler.se> In-Reply-To: <20101111191125.GQ5225@denkmatte.mittag-leffler.se> 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: <201011120922.53204.f.r.bissey@massey.ac.nz> X-Archives-Salt: 1d80e89e-42e1-487a-9c57-6b31b9b0e997 X-Archives-Hash: 3d8791a213c511476e6767154ed603ba > Hi, > > On 09:41 Wed 10 Nov , Christopher Schwan wrote: > > I followed the instructions listed in number 6 of the following page: > > http://www.gentoo.org/proj/en/hardened/gnu-stack.xml . However, the fix > > is incomplete (some architectures still have executable stacks) and I > > had some problems with BASH: > > > > for i in $(find . -type f -name '*.asm') ; do > > > > echo $i >/dev/null > > cat >> $i <<-EOF > > > > #if defined(__linux__) && defined(__ELF__) > > .section .note.GNU-stack,"",%progbits > > #endif > > > > EOF > > > > done > > > > If I remove the line with "echo" (which *should* be completely useless), > > the cat command does not patch files - WHY ?! Also, mpir seemed to have > > dropped yasm beginning with mpir-2.1 (?), so I think at least one loop > > in mpir's ebuild is superfluous. > > I will look into this. What is the state for ppc and prefix ? In > short: What keywords should we have on mpir? I can only test ~amd64 and > ~x86. > Does work on ppc, I have emerged it regularly on my test machine. We have stopped caring about using mpir in sage for now, so I don't think Christopher tested it on prefix. As for the echo stuff we had a chat with xarty the other day and they don't seem to be necessary anymore. We suspect it was a bash (old version) problem. As for your question for the executable stack flag, we don't really know, but sage basically added it to LDFLAGS and we could try to do the same thing. Francois