The package fails to compile with USE=static-libs with: libfdt/meson.build:37:11: ERROR: Tried to create target "fdt", but a target of that name already exists. build.log and meson-log.txt attached. Reproducible: Always Steps to Reproduce: 1. emerge =sys-apps/dtc-1.7.0 Actual Results: The build fails. Expected Results: The build should complete without errors.
Please include the full build.log, meson-log.txt, amd emerge --info.
Created attachment 864802 [details] emerge.info
Created attachment 864803 [details] build.log
Created attachment 864804 [details] meson-log.txt
I am also experiencing this exact build problem
Also seeing this since a while.
Here's a diff that'll fix it. @lu_zero - Lemme know if you want me to commit it. diff --git a/sys-apps/dtc/dtc-1.7.0.ebuild b/sys-apps/dtc/dtc-1.7.0.ebuild index a56040b060aa..4c213fb685de 100644 --- a/sys-apps/dtc/dtc-1.7.0.ebuild +++ b/sys-apps/dtc/dtc-1.7.0.ebuild @@ -63,12 +63,13 @@ src_prepare() { src_configure() { local emesonargs=( - -Ddefault_library=$(usex static-libs both shared) -Dtools=true -Dvalgrind=disabled # only used for some tests $(meson_feature python) $(meson_feature yaml) ) + use static-libs && emesonargs+=( -Dstatic-build=true ) + meson_src_configure }
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0428966db63c13fc0142f0500e5c44895793eb37 commit 0428966db63c13fc0142f0500e5c44895793eb37 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-09-25 02:19:33 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-09-25 02:19:33 +0000 sys-apps/dtc: fix static build Closes: https://bugs.gentoo.org/909366 Thanks-to: Jason A. Donenfeld <zx2c4@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org> sys-apps/dtc/dtc-1.7.0.ebuild | 4 +++- sys-apps/dtc/dtc-9999.ebuild | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)