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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 70BAA15823F for ; Mon, 20 Nov 2023 04:36:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 145A52BC025; Mon, 20 Nov 2023 04:36:19 +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 8F2132BC015 for ; Mon, 20 Nov 2023 04:36:18 +0000 (UTC) Received: from [2a0c:b641:69c:e781:f::2] (port=51638 helo=quark.does.not.exist) by muon.airelinux.org with esmtp (Exim 4.96) (envelope-from ) id 1r4w17-0002QD-1v; Mon, 20 Nov 2023 04:36:13 +0000 From: heroxbd@gentoo.org To: gentoo-dev@lists.gentoo.org Cc: Benda Xu Subject: [gentoo-dev] [PATCH] rocm.eclass: dev-util/hip as an exception, not to expose USE flags. Date: Mon, 20 Nov 2023 12:35:47 +0800 Message-ID: <20231120043605.37059-1-heroxbd@gentoo.org> X-Mailer: git-send-email 2.41.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 798a6c62-f91f-428d-8d17-5e7867dba5ec X-Archives-Hash: d19b9a99d832a8a55093fd3e98da47b6 From: Benda Xu Signed-off-by: Benda Xu --- eclass/rocm.eclass | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eclass/rocm.eclass b/eclass/rocm.eclass index b78dfea1cc31..04f321a83c8c 100644 --- a/eclass/rocm.eclass +++ b/eclass/rocm.eclass @@ -176,9 +176,12 @@ _rocm_set_globals() { local optflags=${allflags[@]/%/(-)?} ROCM_USEDEP=${optflags// /,} } -_rocm_set_globals -unset -f _rocm_set_globals +# dev-util/hip uses checkgpu but does not need the USE flags. +if [[ ${CATEGORY}/${PN} != dev-util/hip ]]; then + _rocm_set_globals + unset -f _rocm_set_globals +fi # @FUNCTION: get_amdgpu_flags # @USAGE: get_amdgpu_flags -- 2.41.0