commit:     719e0d13b5f3914483c6d531c7f7abe69baba601
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Tue May  6 16:50:20 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Tue May  6 17:40:29 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=719e0d13

sys-apps/dtc: fix USE=static-libs to control static libs

... as opposed to passing an upstream option to enable building
executables with `LDFLAGS="-static"`, while still installing the static
libs.

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

 sys-apps/dtc/{dtc-1.7.2-r1.ebuild => dtc-1.7.2-r2.ebuild} | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/sys-apps/dtc/dtc-1.7.2-r1.ebuild b/sys-apps/dtc/dtc-1.7.2-r2.ebuild
similarity index 94%
rename from sys-apps/dtc/dtc-1.7.2-r1.ebuild
rename to sys-apps/dtc/dtc-1.7.2-r2.ebuild
index 964f035d268d..0ee4b6bdc8c7 100644
--- a/sys-apps/dtc/dtc-1.7.2-r1.ebuild
+++ b/sys-apps/dtc/dtc-1.7.2-r2.ebuild
@@ -69,14 +69,15 @@ src_configure() {
                $(meson_feature yaml)
        )
 
-       # bug #909366
-       use static-libs && emesonargs+=( -Dstatic-build=true )
-
        meson_src_configure
 }
 
 src_install() {
        meson_src_install
+       if use !static-libs; then
+               # bug #907940
+               rm "${ED}/usr/$(get_libdir)"/*.a || die
+       fi
 
        use python && python_optimize "${ED}"
 }

Reply via email to