commit:     d00b933c2a604864418137586a53ef7e1fdb3f6d
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 11 13:27:37 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Thu Dec 11 13:32:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d00b933c

sci-libs/indilib: use dot-a.eclass

... to avoid installing broken static libraries w/ LTO.

Closes: https://bugs.gentoo.org/963784
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 sci-libs/indilib/indilib-2.1.6-r1.ebuild | 9 ++++++++-
 sci-libs/indilib/indilib-2.1.7.ebuild    | 9 ++++++++-
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/sci-libs/indilib/indilib-2.1.6-r1.ebuild 
b/sci-libs/indilib/indilib-2.1.6-r1.ebuild
index ee699e003f48..5d8b8d617686 100644
--- a/sci-libs/indilib/indilib-2.1.6-r1.ebuild
+++ b/sci-libs/indilib/indilib-2.1.6-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cmake udev
+inherit cmake dot-a udev
 
 DESCRIPTION="INDI Astronomical Control Protocol library"
 HOMEPAGE="https://www.indilib.org/";
@@ -44,6 +44,8 @@ DEPEND="${RDEPEND}
 PATCHES=( "${FILESDIR}/${P}-system-hidapi.patch" ) # git master
 
 src_configure() {
+       lto-guarantee-fat
+
        local mycmakeargs=(
                -DINDI_SYSTEM_HIDAPILIB=ON
                -DINDI_SYSTEM_HTTPLIB=ON
@@ -73,6 +75,11 @@ src_test() {
        BUILD_DIR="${BUILD_DIR}"/integs cmake_src_test -j1
 }
 
+src_install() {
+       cmake_src_install
+       strip-lto-bytecode
+}
+
 pkg_postinst() {
        udev_reload
 }

diff --git a/sci-libs/indilib/indilib-2.1.7.ebuild 
b/sci-libs/indilib/indilib-2.1.7.ebuild
index 390d702609a2..2fb88d77c82e 100644
--- a/sci-libs/indilib/indilib-2.1.7.ebuild
+++ b/sci-libs/indilib/indilib-2.1.7.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cmake udev
+inherit cmake dot-a udev
 
 DESCRIPTION="INDI Astronomical Control Protocol library"
 HOMEPAGE="https://www.indilib.org/";
@@ -42,6 +42,8 @@ DEPEND="${RDEPEND}
 "
 
 src_configure() {
+       lto-guarantee-fat
+
        local mycmakeargs=(
                -DINDI_SYSTEM_HIDAPILIB=ON
                -DINDI_SYSTEM_HTTPLIB=ON
@@ -71,6 +73,11 @@ src_test() {
        BUILD_DIR="${BUILD_DIR}"/integs cmake_src_test -j1
 }
 
+src_install() {
+       cmake_src_install
+       strip-lto-bytecode
+}
+
 pkg_postinst() {
        udev_reload
 }

Reply via email to