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 4DE7D1382C5 for ; Thu, 10 Dec 2020 09:04:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 77E62E08FB; Thu, 10 Dec 2020 09:04:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5725AE08FB for ; Thu, 10 Dec 2020 09:04:57 +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 B55D5340D50 for ; Thu, 10 Dec 2020 09:03:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9C892478 for ; Thu, 10 Dec 2020 09:02:35 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1607590953.541bb02a46aa817953c29c8ffef222bbfb58ebd8.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/qemu/, app-emulation/qemu/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/qemu/files/qemu-5.2.0-safe-stack.patch app-emulation/qemu/qemu-5.2.0.ebuild X-VCS-Directories: app-emulation/qemu/ app-emulation/qemu/files/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 541bb02a46aa817953c29c8ffef222bbfb58ebd8 X-VCS-Branch: master Date: Thu, 10 Dec 2020 09:02:35 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6441d1e8-3f12-4692-9d28-5121cbc960d7 X-Archives-Hash: 714e6ea53ce73d8b00b0313412dc866b commit: 541bb02a46aa817953c29c8ffef222bbfb58ebd8 Author: Sergei Trofimovich gentoo org> AuthorDate: Thu Dec 10 07:58:46 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Thu Dec 10 09:02:33 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=541bb02a app-emulation/qemu: fix safe-stack feature detection Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich gentoo.org> app-emulation/qemu/files/qemu-5.2.0-safe-stack.patch | 12 ++++++++++++ app-emulation/qemu/qemu-5.2.0.ebuild | 1 + 2 files changed, 13 insertions(+) diff --git a/app-emulation/qemu/files/qemu-5.2.0-safe-stack.patch b/app-emulation/qemu/files/qemu-5.2.0-safe-stack.patch new file mode 100644 index 00000000000..77ed254ab98 --- /dev/null +++ b/app-emulation/qemu/files/qemu-5.2.0-safe-stack.patch @@ -0,0 +1,12 @@ +If SafeStack fails to build it should be disabled, not enabled. +--- a/configure ++++ b/configure +@@ -4956,7 +4956,7 @@ if test "$safe_stack" = "no"; then + fi + else # "$safe_stack" = "" + # Set safe_stack to yes or no based on pre-existing flags +- if compile_prog "-Werror" ""; then ++ if ! compile_prog "-Werror" ""; then + safe_stack="no" + else + safe_stack="yes" diff --git a/app-emulation/qemu/qemu-5.2.0.ebuild b/app-emulation/qemu/qemu-5.2.0.ebuild index 3a200179aa2..a0c14681fac 100644 --- a/app-emulation/qemu/qemu-5.2.0.ebuild +++ b/app-emulation/qemu/qemu-5.2.0.ebuild @@ -225,6 +225,7 @@ RDEPEND="${CDEPEND} PATCHES=( "${FILESDIR}"/${PN}-2.11.1-capstone_include_path.patch + "${FILESDIR}"/${PN}-5.2.0-safe-stack.patch ) QA_PREBUILT="