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 6521915800F for ; Wed, 8 Feb 2023 04:18:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2B740E0536; Wed, 8 Feb 2023 04:18:11 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1466EE0536 for ; Wed, 8 Feb 2023 04:18:11 +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 08F00340E23 for ; Wed, 8 Feb 2023 04:18:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 97F398A3 for ; Wed, 8 Feb 2023 04:18:08 +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: <1675829856.526eb8d42a4ff112e1e3b0f8aee4ae57778f66d6.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/rocr-runtime/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/rocr-runtime/rocr-runtime-5.3.3-r1.ebuild dev-libs/rocr-runtime/rocr-runtime-5.3.3.ebuild X-VCS-Directories: dev-libs/rocr-runtime/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 526eb8d42a4ff112e1e3b0f8aee4ae57778f66d6 X-VCS-Branch: master Date: Wed, 8 Feb 2023 04:18:08 +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: 820853f6-3348-4822-b19f-c9d38166bbf6 X-Archives-Hash: b3cebdc6fe0a86d0d586269d2805fc59 commit: 526eb8d42a4ff112e1e3b0f8aee4ae57778f66d6 Author: Yiyang Wu gmail com> AuthorDate: Wed Feb 8 02:38:50 2023 +0000 Commit: Sam James gentoo org> CommitDate: Wed Feb 8 04:17:36 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=526eb8d4 dev-libs/rocr-runtime: NDEBUG by default; add debug use flag The rocr-runtime relies on -DNDEBUG cxxflag to build without debug code. Previously debug codes are turned on and issues are observed by users. Reference: https://github.com/RadeonOpenCompute/ROCm/issues/1880#issuecomment-1416759759 Signed-off-by: Yiyang Wu gmail.com> Closes: https://github.com/gentoo/gentoo/pull/29297 Signed-off-by: Sam James gentoo.org> .../{rocr-runtime-5.3.3.ebuild => rocr-runtime-5.3.3-r1.ebuild} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev-libs/rocr-runtime/rocr-runtime-5.3.3.ebuild b/dev-libs/rocr-runtime/rocr-runtime-5.3.3-r1.ebuild similarity index 94% rename from dev-libs/rocr-runtime/rocr-runtime-5.3.3.ebuild rename to dev-libs/rocr-runtime/rocr-runtime-5.3.3-r1.ebuild index 99184725f576..f408d4213314 100644 --- a/dev-libs/rocr-runtime/rocr-runtime-5.3.3.ebuild +++ b/dev-libs/rocr-runtime/rocr-runtime-5.3.3-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake llvm +inherit cmake flag-o-matic llvm LLVM_MAX_SLOT=15 @@ -25,6 +25,7 @@ PATCHES=( LICENSE="MIT" SLOT="0/$(ver_cut 1-2)" +IUSE="debug" COMMON_DEPEND="dev-libs/elfutils" RDEPEND="${COMMON_DEPEND}" @@ -36,8 +37,6 @@ DEPEND="${COMMON_DEPEND} BDEPEND="app-editors/vim-core" # vim-core is needed for "xxd" -CMAKE_BUILD_TYPE=Release - src_prepare() { # ... otherwise system llvm/clang is used ... sed -e "/find_package(Clang REQUIRED HINTS /s:\${CMAKE_INSTALL_PREFIX}/llvm \${CMAKE_PREFIX_PATH}/llvm PATHS /opt/rocm/llvm:$(get_llvm_prefix ${LLVM_MAX_SLOT}):" -i image/blit_src/CMakeLists.txt || die @@ -49,6 +48,7 @@ src_prepare() { } src_configure() { + use debug || append-cxxflags "-DNDEBUG" local mycmakeargs=( -DINCLUDE_PATH_COMPATIBILITY=OFF ) cmake_src_configure }