Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 739512 - net-libs/libslirp: support building a static library
Summary: net-libs/libslirp: support building a static library
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 739514
  Show dependency tree
 
Reported: 2020-08-29 17:10 UTC by David Michael
Modified: 2020-08-29 18:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Michael 2020-08-29 17:10:05 UTC
Please add USE=static-libs support, which is required by QEMU with USE=static.

--- net-libs/libslirp/libslirp-4.3.1.ebuild
+++ net-libs/libslirp/libslirp-4.3.1.ebuild
@@ -13,6 +13,7 @@
 
 LICENSE="BSD"
 SLOT="0"
+IUSE="static-libs"
 
 RDEPEND="dev-libs/glib:="
 
@@ -25,3 +26,10 @@
 	echo "${PV}" > .tarball-version || die
 	echo -e "#!${BASH}\necho -n \$(cat '${S}/.tarball-version')" > build-aux/git-version-gen || die
 }
+
+src_configure() {
+	local emesonargs=(
+		-Ddefault_library=$(usex static-libs both shared)
+	)
+	meson_src_configure
+}
Comment 1 Larry the Git Cow gentoo-dev 2020-08-29 18:49:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a15d7caa3306003967173cd9da68466d0d490540

commit a15d7caa3306003967173cd9da68466d0d490540
Author:     David Michael <fedora.dm0@gmail.com>
AuthorDate: 2020-08-29 18:46:10 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2020-08-29 18:49:03 +0000

    net-libs/libslirp: Support static-libs
    
    Closes: https://bugs.gentoo.org/739512
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 net-libs/libslirp/libslirp-4.3.1.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)
Comment 2 Zac Medico gentoo-dev 2020-08-29 18:49:35 UTC
Thanks!