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 44D0C158451 for ; Tue, 9 Jan 2024 02:40:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 638A6E2AFA; Tue, 9 Jan 2024 02:40:23 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 AE2B6E2AFA for ; Tue, 9 Jan 2024 02:40:22 +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 E0E0D343282 for ; Tue, 9 Jan 2024 02:40:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1C783AE5 for ; Tue, 9 Jan 2024 02:40:20 +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: <1704767978.10cd51b1cac70e3f180a04b2e9ea3c6eb46150fd.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/ksh/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-shells/ksh/ksh-1.0.8.ebuild app-shells/ksh/ksh-9999.ebuild X-VCS-Directories: app-shells/ksh/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 10cd51b1cac70e3f180a04b2e9ea3c6eb46150fd X-VCS-Branch: master Date: Tue, 9 Jan 2024 02:40:20 +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: 124700d5-8018-4f72-896c-2e3ac914acf8 X-Archives-Hash: 85705ba7cc73fba3b22049677eaf98c5 commit: 10cd51b1cac70e3f180a04b2e9ea3c6eb46150fd Author: Sam James gentoo org> AuthorDate: Tue Jan 9 02:39:38 2024 +0000 Commit: Sam James gentoo org> CommitDate: Tue Jan 9 02:39:38 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10cd51b1 app-shells/ksh: clean up flag handling * Filter LTO instead of just -Wno-erroring things indicating it's unsafe * Try to respect CC/AR/NM more Signed-off-by: Sam James gentoo.org> app-shells/ksh/ksh-1.0.8.ebuild | 9 ++++----- app-shells/ksh/ksh-9999.ebuild | 11 +++++------ 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/app-shells/ksh/ksh-1.0.8.ebuild b/app-shells/ksh/ksh-1.0.8.ebuild index 4cda30c54705..c97a769209a6 100644 --- a/app-shells/ksh/ksh-1.0.8.ebuild +++ b/app-shells/ksh/ksh-1.0.8.ebuild @@ -40,18 +40,17 @@ src_compile() { "-Wno-unused-but-set-variable" "-Wno-cpp" "-Wno-maybe-uninitialized" - "-Wno-lto-type-mismatch" - "-Wno-error=int-conversion" - "-Wno-int-conversion" "-P" ) append-cflags $(test-flags-CC ${extraflags[@]}) + append-cflags -fno-strict-aliasing filter-flags '-fdiagnostics-color=always' # https://github.com/ksh93/ksh/issues/379 - export CCFLAGS="${CFLAGS} -fno-strict-aliasing" + filter-lto + export CCFLAGS="${CFLAGS}" tc-export AR CC LD NM - sh bin/package make SHELL="${BROOT}"/bin/sh || die + sh bin/package make AR="${AR}" CC="${CC}" NM="${NM}" SHELL="${BROOT}"/bin/sh || die } src_test() { diff --git a/app-shells/ksh/ksh-9999.ebuild b/app-shells/ksh/ksh-9999.ebuild index f59df92a2e4a..c97a769209a6 100644 --- a/app-shells/ksh/ksh-9999.ebuild +++ b/app-shells/ksh/ksh-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 2021-2022 Gentoo Authors +# Copyright 2021-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -40,18 +40,17 @@ src_compile() { "-Wno-unused-but-set-variable" "-Wno-cpp" "-Wno-maybe-uninitialized" - "-Wno-lto-type-mismatch" - "-Wno-error=int-conversion" - "-Wno-int-conversion" "-P" ) append-cflags $(test-flags-CC ${extraflags[@]}) + append-cflags -fno-strict-aliasing filter-flags '-fdiagnostics-color=always' # https://github.com/ksh93/ksh/issues/379 - export CCFLAGS="${CFLAGS} -fno-strict-aliasing" + filter-lto + export CCFLAGS="${CFLAGS}" tc-export AR CC LD NM - sh bin/package make SHELL="${BROOT}"/bin/sh || die + sh bin/package make AR="${AR}" CC="${CC}" NM="${NM}" SHELL="${BROOT}"/bin/sh || die } src_test() {