From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 028BE1388C0 for ; Wed, 24 Feb 2016 22:09:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5B1E121C007; Wed, 24 Feb 2016 22:09:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0968621C007 for ; Wed, 24 Feb 2016 22:09:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E44E3340DAD for ; Wed, 24 Feb 2016 22:09:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 482868DB for ; Wed, 24 Feb 2016 22:09:09 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1456351736.ca901d8defa4b4c3c1ddeb129f8fdf15268625ab.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/gmp/files/, dev-libs/gmp/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/gmp/files/gmp-6.1.0-noexecstack-detect.patch dev-libs/gmp/gmp-6.1.0.ebuild X-VCS-Directories: dev-libs/gmp/files/ dev-libs/gmp/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: ca901d8defa4b4c3c1ddeb129f8fdf15268625ab X-VCS-Branch: master Date: Wed, 24 Feb 2016 22:09:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 24ee6bad-37af-439e-bc79-a5ac56e2640e X-Archives-Hash: cf0196795e6e6b01ac5e92c0f83aae3c commit: ca901d8defa4b4c3c1ddeb129f8fdf15268625ab Author: Mike Frysinger gentoo org> AuthorDate: Wed Feb 24 19:49:22 2016 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Wed Feb 24 22:08:56 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca901d8d dev-libs/gmp: work around broken clang during noexecstack detection .../gmp/files/gmp-6.1.0-noexecstack-detect.patch | 23 ++++++++++++++++++++++ dev-libs/gmp/gmp-6.1.0.ebuild | 2 ++ 2 files changed, 25 insertions(+) diff --git a/dev-libs/gmp/files/gmp-6.1.0-noexecstack-detect.patch b/dev-libs/gmp/files/gmp-6.1.0-noexecstack-detect.patch new file mode 100644 index 0000000..558ba60 --- /dev/null +++ b/dev-libs/gmp/files/gmp-6.1.0-noexecstack-detect.patch @@ -0,0 +1,23 @@ +gmp's -Wa,--noexecstack check is based on glibc's, so backport a change +that went into it there: +https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=215a87451d1fd623fd2699fa57f16f8ab6f6a2f3 +https://sourceware.org/bugzilla/show_bug.cgi?id=6428 + +this is to workaround broken clang assembler that fails w/CFLAGS=-g: +http://crbug.com/585930 +https://llvm.org/bugs/show_bug.cgi?id=11740 + +patch has been sent upstream too: +https://gmplib.org/list-archives/gmp-bugs/2016-February/003916.html + +--- a/configure ++++ b/configure +@@ -11339,7 +11339,7 @@ EOF + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } \ + && grep .note.GNU-stack conftest.s >/dev/null \ +- && { ac_try='${CC} $CFLAGS $CPPFLAGS -Wa,--noexecstack ++ && { ac_try='${CC} $ASMFLAGS -Wa,--noexecstack + -c -o conftest.o conftest.s >/dev/null' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 diff --git a/dev-libs/gmp/gmp-6.1.0.ebuild b/dev-libs/gmp/gmp-6.1.0.ebuild index 6bc3b8f..e97c46f 100644 --- a/dev-libs/gmp/gmp-6.1.0.ebuild +++ b/dev-libs/gmp/gmp-6.1.0.ebuild @@ -38,6 +38,8 @@ src_prepare() { # note: we cannot run autotools here as gcc depends on this package elibtoolize + epatch "${FILESDIR}"/${PN}-6.1.0-noexecstack-detect.patch + # GMP uses the "ABI" env var during configure as does Gentoo (econf). # So, to avoid patching the source constantly, wrap things up. mv configure configure.wrapped || die