Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 739514 - app-emulation/qemu: support USE="static slirp"
Summary: app-emulation/qemu: support USE="static slirp"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on: 739512
Blocks:
  Show dependency tree
 
Reported: 2020-08-29 17:10 UTC by David Michael
Modified: 2020-08-29 20:52 UTC (History)
3 users (show)

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


Attachments
patch (0001-app-emulation-qemu-fix-USE-static-slirp.patch,2.20 KB, patch)
2020-08-29 20:07 UTC, David Michael
Details | Diff

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:06 UTC
Statically linked QEMU can't use "-netdev user" since the following commit.  (The build fails since it can't find libslirp.a if you try to enable it.)

https://github.com/gentoo/gentoo/commit/74f5d45c968b306b0063063f945b30163e9add89

Please adjust all ebuilds since 5.0.0-r2 to depend on a static libslirp.

--- app-emulation/qemu/qemu-5.0.0-r2.ebuild
+++ app-emulation/qemu/qemu-5.0.0-r2.ebuild
@@ -148,7 +148,7 @@
 	)
 	sdl-image? ( media-libs/sdl2-image[static-libs(+)] )
 	seccomp? ( >=sys-libs/libseccomp-2.1.0[static-libs(+)] )
-	slirp? ( net-libs/libslirp )
+	slirp? ( net-libs/libslirp[static-libs(+)] )
 	smartcard? ( >=app-emulation/libcacard-2.5.0[static-libs(+)] )
 	snappy? ( app-arch/snappy:= )
 	spice? (
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2020-08-29 18:50:43 UTC
gentoo's net-libs/libslirp does not install static libraries:

"""
$ qlist net-libs/libslirp
/usr/lib64/libslirp.so.0
/usr/lib64/libslirp.so
/usr/lib64/pkgconfig/slirp.pc
/usr/lib64/libslirp.so.0.2.2
/usr/include/slirp/libslirp.h
/usr/include/slirp/libslirp-version.h
/usr/share/doc/libslirp-4.3.1/README.md.bz2
"""
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-08-29 18:52:20 UTC
(In reply to Sergei Trofimovich from comment #1)
> gentoo's net-libs/libslirp does not install static libraries.

Oh, I missed blocker bug. The change looks fine.

Can you upload ppatch appliable by 'git am'?
Comment 3 David Michael 2020-08-29 20:07:26 UTC
Created attachment 657432 [details, diff]
patch
Comment 4 Larry the Git Cow gentoo-dev 2020-08-29 20:52:17 UTC
The bug has been closed via the following commit(s):

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

commit b6e5f810703b8205d693f904254ed687c4da4846
Author:     David Michael <fedora.dm0@gmail.com>
AuthorDate: 2020-08-29 20:05:38 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-08-29 20:51:44 +0000

    app-emulation/qemu: fix USE="static slirp"
    
    Closes: https://bugs.gentoo.org/739514
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: David Michael <fedora.dm0@gmail.com>
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 app-emulation/qemu/qemu-5.0.0-r2.ebuild | 2 +-
 app-emulation/qemu/qemu-5.1.0.ebuild    | 2 +-
 app-emulation/qemu/qemu-9999.ebuild     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2020-08-29 20:52:37 UTC
Thank you!