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 A1BA915802F for ; Sat, 11 Mar 2023 16:26:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB8E6E0898; Sat, 11 Mar 2023 16:26:44 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7A6FDE089A for ; Sat, 11 Mar 2023 16:26:44 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 29C95335D55 for ; Sat, 11 Mar 2023 16:26:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B57E78E8 for ; Sat, 11 Mar 2023 16:26:40 +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: <1678551916.65f5eec96be908fc0fc6ff1a4811242d049b8ef6.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rocminfo/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/rocminfo/rocminfo-5.1.3.ebuild dev-util/rocminfo/rocminfo-5.3.3.ebuild dev-util/rocminfo/rocminfo-5.4.3.ebuild dev-util/rocminfo/rocminfo-9999.ebuild X-VCS-Directories: dev-util/rocminfo/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 65f5eec96be908fc0fc6ff1a4811242d049b8ef6 X-VCS-Branch: master Date: Sat, 11 Mar 2023 16:26:40 +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: 71352ad2-53eb-4b0b-a619-ae38b0f0c9b1 X-Archives-Hash: cd8392c1f8f55a00ff3c9b195b675a61 commit: 65f5eec96be908fc0fc6ff1a4811242d049b8ef6 Author: Stijn Tintel linux-ipv6 be> AuthorDate: Sun Sep 4 19:22:22 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sat Mar 11 16:25:16 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65f5eec9 dev-util/rocminfo: enable release build The rocminfo CMake file uses a custom variable named ROCRTST_BLD_TYPE to set CMAKE_BUILD_TYPE. When not set, this defaults to Debug, which adds -O0 to CXXFLAGS. This overrides the optimization flags in CXXFLAGS in make.conf. When the CXXFLAGS in make.conf contain _FORTIFY_SOURCE, this breaks compilation with the following error: /usr/include/features.h:412:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp] 412 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ Fix this by setting the ROCRTST_BLD_TYPE variable to Release in mycmakeargs. Closes: https://bugs.gentoo.org/887583 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Stijn Tintel linux-ipv6.be> Closes: https://github.com/gentoo/gentoo/pull/27145 Signed-off-by: Sam James gentoo.org> dev-util/rocminfo/rocminfo-5.1.3.ebuild | 5 +++++ dev-util/rocminfo/rocminfo-5.3.3.ebuild | 5 +++++ dev-util/rocminfo/rocminfo-5.4.3.ebuild | 5 +++++ dev-util/rocminfo/rocminfo-9999.ebuild | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/dev-util/rocminfo/rocminfo-5.1.3.ebuild b/dev-util/rocminfo/rocminfo-5.1.3.ebuild index c090c863e060..6c175c0a3bd4 100644 --- a/dev-util/rocminfo/rocminfo-5.1.3.ebuild +++ b/dev-util/rocminfo/rocminfo-5.1.3.ebuild @@ -29,3 +29,8 @@ src_prepare() { sed -e "/num_change_since_prev_pkg(/cset(NUM_COMMITS 0)" -i cmake_modules/utils.cmake || die # Fix QA issue on "git not found" cmake_src_prepare } + +src_configure() { + local mycmakeargs=( -DROCRTST_BLD_TYPE=Release ) + cmake_src_configure +} diff --git a/dev-util/rocminfo/rocminfo-5.3.3.ebuild b/dev-util/rocminfo/rocminfo-5.3.3.ebuild index c090c863e060..6c175c0a3bd4 100644 --- a/dev-util/rocminfo/rocminfo-5.3.3.ebuild +++ b/dev-util/rocminfo/rocminfo-5.3.3.ebuild @@ -29,3 +29,8 @@ src_prepare() { sed -e "/num_change_since_prev_pkg(/cset(NUM_COMMITS 0)" -i cmake_modules/utils.cmake || die # Fix QA issue on "git not found" cmake_src_prepare } + +src_configure() { + local mycmakeargs=( -DROCRTST_BLD_TYPE=Release ) + cmake_src_configure +} diff --git a/dev-util/rocminfo/rocminfo-5.4.3.ebuild b/dev-util/rocminfo/rocminfo-5.4.3.ebuild index 34df3ab7b44e..15e50f8d07fa 100644 --- a/dev-util/rocminfo/rocminfo-5.4.3.ebuild +++ b/dev-util/rocminfo/rocminfo-5.4.3.ebuild @@ -29,3 +29,8 @@ src_prepare() { sed -e "/num_change_since_prev_pkg(/cset(NUM_COMMITS 0)" -i cmake_modules/utils.cmake || die # Fix QA issue on "git not found" cmake_src_prepare } + +src_configure() { + local mycmakeargs=( -DROCRTST_BLD_TYPE=Release ) + cmake_src_configure +} diff --git a/dev-util/rocminfo/rocminfo-9999.ebuild b/dev-util/rocminfo/rocminfo-9999.ebuild index c993e808caf5..2668b8684942 100644 --- a/dev-util/rocminfo/rocminfo-9999.ebuild +++ b/dev-util/rocminfo/rocminfo-9999.ebuild @@ -21,3 +21,8 @@ SLOT="0/$(ver_cut 1-2)" RDEPEND="dev-libs/rocr-runtime" DEPEND="${RDEPEND}" + +src_configure() { + local mycmakeargs=( -DROCRTST_BLD_TYPE=Release ) + cmake_src_configure +}