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 1FC6015ACFB for ; Wed, 26 Apr 2023 09:44:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CCFA0E088D; Wed, 26 Apr 2023 09:44:07 +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 B1513E0887 for ; Wed, 26 Apr 2023 09:44:07 +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 D3664340FB7 for ; Wed, 26 Apr 2023 09:44:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4CDAFA60 for ; Wed, 26 Apr 2023 09:44:03 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1682371369.c858e783d282e2b770996c2569ffaad1f5ca5556.flow@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: app-editors/imhex/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-editors/imhex/imhex-1.28.0.ebuild X-VCS-Directories: app-editors/imhex/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: c858e783d282e2b770996c2569ffaad1f5ca5556 X-VCS-Branch: master Date: Wed, 26 Apr 2023 09:44:03 +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: 4c2b1726-e566-4b21-bfd5-6304639a4397 X-Archives-Hash: 37e44203b73c4cbfc6a26264b7748bf8 commit: c858e783d282e2b770996c2569ffaad1f5ca5556 Author: Henri Gasc eurecom fr> AuthorDate: Mon Apr 24 21:21:54 2023 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Mon Apr 24 21:22:49 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c858e783 app-editors/imhex: use CFLAGS and CXXFLAGS, disable testing Closes: https://bugs.gentoo.org/904953 Closes: https://bugs.gentoo.org/904954 Signed-off-by: Henri Gasc eurecom.fr> app-editors/imhex/imhex-1.28.0.ebuild | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/app-editors/imhex/imhex-1.28.0.ebuild b/app-editors/imhex/imhex-1.28.0.ebuild index 8f91766d1..be29cd82b 100644 --- a/app-editors/imhex/imhex-1.28.0.ebuild +++ b/app-editors/imhex/imhex-1.28.0.ebuild @@ -55,12 +55,14 @@ pkg_pretend() { src_prepare() { default - # Due to network sandboxing, we can't do network test here. + # We are removing all tests altogether + # The tests need ImHex installed to succeed (see https://bugs.gentoo.org/attachment.cgi?id=860683), so we remove them + # We could use `ln "${BUILD_DIR}/lib/libimhex.so.${PV}" "/lib64/libimhex.so.${PV}"` and circumvent sandboxing sed -i \ - -e 's/StoreAPI$/#StoreAPI/' \ - -e 's/TipsAPI$/#TipsAPI/' \ - -e 's/ContentAPI$/#ContentAPI/' \ - "${S}/tests/helpers/CMakeLists.txt" || die + -e 's/enable_testing/#enable_testing/' \ + -e 's/add_subdirectory(tests/#add_subdirectory(tests/' \ + "${S}/CMakeLists.txt" || die + cmake_src_prepare } @@ -69,8 +71,8 @@ src_configure() { -D CMAKE_BUILD_TYPE="Release" \ -D CMAKE_C_COMPILER_LAUNCHER=ccache \ -D CMAKE_CXX_COMPILER_LAUNCHER=ccache \ - -D CMAKE_C_FLAGS="-fuse-ld=lld" \ - -D CMAKE_CXX_FLAGS="-fuse-ld=lld" \ + -D CMAKE_C_FLAGS="-fuse-ld=lld ${CFLAGS}" \ + -D CMAKE_CXX_FLAGS="-fuse-ld=lld ${CXXFLAGS}" \ -D CMAKE_OBJC_COMPILER_LAUNCHER=ccache \ -D CMAKE_OBJCXX_COMPILER_LAUNCHER=ccache \ -D CMAKE_SKIP_RPATH=ON \ @@ -97,13 +99,6 @@ src_configure() { cmake_src_configure } -src_test() { - pushd "${BUILD_DIR}" || die - emake unit_tests - popd || die - cmake_src_test -} - src_install() { cmake_src_install