From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 finch.gentoo.org (Postfix) with ESMTPS id 8E3C21584AD for ; Tue, 06 May 2025 12:20:13 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 5251A343112 for ; Tue, 06 May 2025 12:20:13 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 464A311036F; Tue, 06 May 2025 12:20:12 +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 bobolink.gentoo.org (Postfix) with ESMTPS id 3D05911036F for ; Tue, 06 May 2025 12:20:12 +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 E5C2E33BEB9 for ; Tue, 06 May 2025 12:20:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4CC6013F9 for ; Tue, 06 May 2025 12:20:10 +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: <1746533467.3e0d044a818e015fba7fdd2662c400891698360e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/unittest++/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/unittest++/unittest++-2.0.0-r3.ebuild X-VCS-Directories: dev-libs/unittest++/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3e0d044a818e015fba7fdd2662c400891698360e X-VCS-Branch: master Date: Tue, 06 May 2025 12:20:10 +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: 5263ea4f-1022-4fc2-ba4e-4cc18220abd5 X-Archives-Hash: c4e2261162fd29b37c6c1e4fa531bc08 commit: 3e0d044a818e015fba7fdd2662c400891698360e Author: Sam James gentoo org> AuthorDate: Tue May 6 11:34:26 2025 +0000 Commit: Sam James gentoo org> CommitDate: Tue May 6 12:11:07 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e0d044a dev-libs/unittest++: use dot-a.eclass ... to avoid installing broken static libraries w/ LTO. Signed-off-by: Sam James gentoo.org> dev-libs/unittest++/unittest++-2.0.0-r3.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dev-libs/unittest++/unittest++-2.0.0-r3.ebuild b/dev-libs/unittest++/unittest++-2.0.0-r3.ebuild index da4923ad6108..9cbe4fef7219 100644 --- a/dev-libs/unittest++/unittest++-2.0.0-r3.ebuild +++ b/dev-libs/unittest++/unittest++-2.0.0-r3.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake +inherit cmake dot-a MY_PN="unittest-cpp" MY_P="${MY_PN}-${PV}" @@ -37,6 +37,8 @@ src_prepare() { } src_configure() { + lto-guarantee-fat + local mycmakeargs=( # Don't build with -Werror: https://bugs.gentoo.org/747583 -DUTPP_AMPLIFY_WARNINGS=OFF @@ -48,3 +50,9 @@ src_configure() { src_test() { "${BUILD_DIR}/TestUnitTest++" || die "Tests failed" } + + +src_install() { + cmake_src_install + strip-lto-bytecode +}