commit:     f4c630c4f5935f1d90a3c7b6cebc5dbdb13ccce3
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Mon May 19 21:30:09 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May 20 13:04:24 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4c630c4

app-arch/dpkg: add --enable-static

dpkg currenty doesn't support shared libraries where GNU libtool will
implicitly enable static libraries if both --disable-shared and
--disable-static are used while slibtool will disable both.

Closes: https://bugs.gentoo.org/956332
Upstream-Issue: https://dev.midipix.org/cross/slibtool/issue/79
Signed-off-by: orbea <orbea <AT> riseup.net>
Part-of: https://github.com/gentoo/gentoo/pull/42164
Closes: https://github.com/gentoo/gentoo/pull/42164
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-arch/dpkg/dpkg-1.22.14.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/app-arch/dpkg/dpkg-1.22.14.ebuild 
b/app-arch/dpkg/dpkg-1.22.14.ebuild
index a38c5e55ff69..bbd537850d2b 100644
--- a/app-arch/dpkg/dpkg-1.22.14.ebuild
+++ b/app-arch/dpkg/dpkg-1.22.14.ebuild
@@ -63,11 +63,17 @@ src_prepare() {
 src_configure() {
        tc-export AR CC
 
+       # dpkg uses LT_INIT([disable-shared]) in configure.ac where GNU libtool
+       # enables static if both --disable-shared and --disable-static are set 
while
+       # slibtool disables both so explicitly set --enable-static until 
upstream
+       # supports shared libraries.
+       # https://bugs.gentoo.org/956332
        local myconf=(
                --disable-compiler-warnings
                --disable-devel-docs
                --disable-dselect
                --disable-start-stop-daemon
+               --enable-static
                --enable-unicode
                --localstatedir="${EPREFIX}"/var
                $(use_enable nls)

Reply via email to