From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AEF02139694 for ; Sun, 9 Jul 2017 15:14:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 27ED9214151; Sun, 9 Jul 2017 15:14:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0B7AA214151 for ; Sun, 9 Jul 2017 15:14:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 22FD3341BA8 for ; Sun, 9 Jul 2017 15:14:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E7A37746A for ; Sun, 9 Jul 2017 15:14:44 +0000 (UTC) From: "Mike Gilbert" 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 Gilbert" Message-ID: <1499612860.3d47ec7831aa3c05e7b9dd2fad67e3e9dcb38c18.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/gnu-efi/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-boot/gnu-efi/gnu-efi-3.0.6-r1.ebuild sys-boot/gnu-efi/gnu-efi-3.0.6.ebuild X-VCS-Directories: sys-boot/gnu-efi/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 3d47ec7831aa3c05e7b9dd2fad67e3e9dcb38c18 X-VCS-Branch: master Date: Sun, 9 Jul 2017 15:14:44 +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: 4a77989c-7d09-462a-9ef6-5705ab9028ab X-Archives-Hash: 1e6f131591face0a5341768b4fe174e1 commit: 3d47ec7831aa3c05e7b9dd2fad67e3e9dcb38c18 Author: Matthias Dahl binary-island eu> AuthorDate: Tue Jul 4 08:02:11 2017 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Sun Jul 9 15:07:40 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d47ec78 sys-boot/gnu-efi: Add custom-cflags flag and prevent avx instructions Building gnu-efi with custom compiler flags is risky at best and should generally be avoided. Nevertheless, if custom flags are used, we need to make sure no avx instructions are generated as those cause a non-functional gnu-efi build. This is only required for >= 3.0.5 as prior to this, "-mno-sse" was used which also implied no avx. Fixes bug #619628. .../{gnu-efi-3.0.6.ebuild => gnu-efi-3.0.6-r1.ebuild} | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/sys-boot/gnu-efi/gnu-efi-3.0.6.ebuild b/sys-boot/gnu-efi/gnu-efi-3.0.6-r1.ebuild similarity index 87% rename from sys-boot/gnu-efi/gnu-efi-3.0.6.ebuild rename to sys-boot/gnu-efi/gnu-efi-3.0.6-r1.ebuild index 838f2b4ecb0..356ce6f38e9 100644 --- a/sys-boot/gnu-efi/gnu-efi-3.0.6.ebuild +++ b/sys-boot/gnu-efi/gnu-efi-3.0.6-r1.ebuild @@ -19,7 +19,7 @@ SLOT="0" # IA64 build is broken in setjmp code: # https://sourceforge.net/p/gnu-efi/bugs/9/ KEYWORDS="-* ~amd64 ~arm ~arm64 -ia64 ~x86" -IUSE="abi_x86_32 abi_x86_64" +IUSE="abi_x86_32 abi_x86_64 -custom-cflags" DEPEND="sys-apps/pciutils" RDEPEND="" @@ -61,8 +61,15 @@ efimake() { src_compile() { tc-export BUILD_CC AR AS CC LD - # https://bugs.gentoo.org/607992 - filter-mfpmath sse + if use custom-cflags; then + # https://bugs.gentoo.org/607992 + filter-mfpmath sse + + # https://bugs.gentoo.org/619628 + append-flags $(test-flags-CC -mno-avx) + else + unset CFLAGS CPPFLAGS LDFLAGS + fi if [[ ${CHOST} == x86_64* ]]; then use abi_x86_32 && CHOST=i686 ABI=x86 efimake