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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 744F615800A for ; Sun, 6 Aug 2023 11:49:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6F4F42BC017; Sun, 6 Aug 2023 11:49:08 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4E47B2BC013 for ; Sun, 6 Aug 2023 11:49:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2B61E340E2C for ; Sun, 6 Aug 2023 11:49:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8DA87F16 for ; Sun, 6 Aug 2023 11:49:05 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1691322517.cc9abc19ceb0c3bb7d2632394c38f4772f490ca8.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/acl/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/acl/acl-2.3.1-r1.ebuild sys-apps/acl/acl-2.3.1-r2.ebuild X-VCS-Directories: sys-apps/acl/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: cc9abc19ceb0c3bb7d2632394c38f4772f490ca8 X-VCS-Branch: master Date: Sun, 6 Aug 2023 11:49:05 +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: 083bb20e-afaa-4914-888f-ccf4246e1dd2 X-Archives-Hash: 9e30bd7d575e23bf2c273884538a793f commit: cc9abc19ceb0c3bb7d2632394c38f4772f490ca8 Author: Sam James gentoo org> AuthorDate: Sun Aug 6 11:43:26 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sun Aug 6 11:48:37 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc9abc19 sys-apps/acl: use tc-enables-fortify-source Better than fragile optimisation level checking. Bug: https://bugs.gentoo.org/841770 Bug: https://bugs.gentoo.org/847280 Signed-off-by: Sam James gentoo.org> sys-apps/acl/acl-2.3.1-r1.ebuild | 6 ++---- sys-apps/acl/acl-2.3.1-r2.ebuild | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/sys-apps/acl/acl-2.3.1-r1.ebuild b/sys-apps/acl/acl-2.3.1-r1.ebuild index c167d5b8ae70..371710aeb2ee 100644 --- a/sys-apps/acl/acl-2.3.1-r1.ebuild +++ b/sys-apps/acl/acl-2.3.1-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit flag-o-matic libtool multilib-minimal usr-ldscript +inherit flag-o-matic libtool multilib-minimal toolchain-funcs usr-ldscript DESCRIPTION="Access control list utilities, libraries, and headers" HOMEPAGE="https://savannah.nongnu.org/projects/acl" @@ -42,9 +42,7 @@ multilib_src_configure() { # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104964 # https://savannah.nongnu.org/bugs/index.php?62519 # bug #847280 - if is-flagq '-O[23]' || is-flagq '-Ofast' ; then - # We can't unconditionally do this b/c we fortify needs - # some level of optimisation. + if tc-enables-fortify-source ; then filter-flags -D_FORTIFY_SOURCE=3 append-cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 fi diff --git a/sys-apps/acl/acl-2.3.1-r2.ebuild b/sys-apps/acl/acl-2.3.1-r2.ebuild index e94a237871d1..d89fd34d6a13 100644 --- a/sys-apps/acl/acl-2.3.1-r2.ebuild +++ b/sys-apps/acl/acl-2.3.1-r2.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit flag-o-matic libtool multilib-minimal usr-ldscript +inherit flag-o-matic libtool multilib-minimal toolchain-funcs usr-ldscript DESCRIPTION="Access control list utilities, libraries, and headers" HOMEPAGE="https://savannah.nongnu.org/projects/acl" @@ -46,9 +46,7 @@ multilib_src_configure() { # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104964 # https://savannah.nongnu.org/bugs/index.php?62519 # bug #847280 - if is-flagq '-O[23]' || is-flagq '-Ofast' ; then - # We can't unconditionally do this b/c we fortify needs - # some level of optimisation. + if tc-enables-fortify-source ; then filter-flags -D_FORTIFY_SOURCE=3 append-cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 fi