diff options
author | John Helmert III <ajak@gentoo.org> | 2023-01-04 12:59:43 -0600 |
---|---|---|
committer | John Helmert III <ajak@gentoo.org> | 2023-01-18 12:58:48 -0600 |
commit | 559459da353a00d80820425ad5afcea0b129aa8c (patch) | |
tree | a7d14d2a7945d614091688732f61c648fba068a9 /app-emulation/qemu | |
parent | dev-python/mitmproxy_wireguard: add 0.1.20 (diff) | |
download | gentoo-559459da353a00d80820425ad5afcea0b129aa8c.tar.gz gentoo-559459da353a00d80820425ad5afcea0b129aa8c.tar.bz2 gentoo-559459da353a00d80820425ad5afcea0b129aa8c.zip |
app-emulation/qemu: dependency/automagic linkage fixups
Closes: https://bugs.gentoo.org/886207
Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'app-emulation/qemu')
-rw-r--r-- | app-emulation/qemu/files/qemu-7.2.0-disable-gmp.patch | 45 | ||||
-rw-r--r-- | app-emulation/qemu/qemu-7.2.0-r1.ebuild | 12 |
2 files changed, 53 insertions, 4 deletions
diff --git a/app-emulation/qemu/files/qemu-7.2.0-disable-gmp.patch b/app-emulation/qemu/files/qemu-7.2.0-disable-gmp.patch new file mode 100644 index 000000000000..3050228b4e0c --- /dev/null +++ b/app-emulation/qemu/files/qemu-7.2.0-disable-gmp.patch @@ -0,0 +1,45 @@ +commit 433c2acd1b9c3f7f5903273e85fed9a7f9157b23 +Author: John Helmert III <ajak@gentoo.org> +Date: Wed Jan 4 12:25:08 2023 -0600 + + meson.build: disable gmp + + gmp isn't required, and we want to avoid linking to it automatigcally + in Gentoo. + + Bug: https://bugs.gentoo.org/886207 + Signed-off-by: John Helmert III <ajak@gentoo.org> + +diff --git a/meson.build b/meson.build +index 5c6b5a1c75..2f9550362d 100644 +--- a/meson.build ++++ b/meson.build +@@ -1234,15 +1234,6 @@ if not gnutls_crypto.found() + endif + endif + +-gmp = dependency('gmp', required: false, method: 'pkg-config', kwargs: static_kwargs) +-if nettle.found() and gmp.found() +- hogweed = dependency('hogweed', version: '>=3.4', +- method: 'pkg-config', +- required: get_option('nettle'), +- kwargs: static_kwargs) +-endif +- +- + gtk = not_found + gtkx11 = not_found + vte = not_found +diff --git a/meson_options.txt b/meson_options.txt +index 4b749ca549..e06b274960 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -277,6 +277,8 @@ option('vduse_blk_export', type: 'feature', value: 'auto', + + option('capstone', type: 'feature', value: 'auto', + description: 'Whether and how to find the capstone library') ++option('gmp', type: 'feature', value: 'auto', ++ description: 'Whether or not to find the gmp library') + option('fdt', type: 'combo', value: 'auto', + choices: ['disabled', 'enabled', 'auto', 'system', 'internal'], + description: 'Whether and how to find the libfdt library') diff --git a/app-emulation/qemu/qemu-7.2.0-r1.ebuild b/app-emulation/qemu/qemu-7.2.0-r1.ebuild index 7d6949eb5d3a..44a3ff5b6fcf 100644 --- a/app-emulation/qemu/qemu-7.2.0-r1.ebuild +++ b/app-emulation/qemu/qemu-7.2.0-r1.ebuild @@ -151,7 +151,7 @@ done # respected). This is because qemu supports using the C library's API # when available rather than always using the external library. ALL_DEPEND=" - >=dev-libs/glib-2.0[static-libs(+)] + dev-libs/glib:2[static-libs(+)] sys-libs/zlib[static-libs(+)] python? ( ${PYTHON_DEPS} ) systemtap? ( dev-util/systemtap ) @@ -176,11 +176,14 @@ SOFTMMU_TOOLS_DEPEND=" fuse? ( >=sys-fs/fuse-3.1:3[static-libs(+)] ) glusterfs? ( >=sys-cluster/glusterfs-3.4.0[static-libs(+)] ) gnutls? ( - dev-libs/nettle:=[static-libs(+)] >=net-libs/gnutls-3.0:=[static-libs(+)] + dev-libs/nettle:=[static-libs(+)] ) gtk? ( + x11-libs/cairo + x11-libs/gdk-pixbuf:2 x11-libs/gtk+:3 + x11-libs/libX11 vte? ( x11-libs/vte:2.91 ) ) infiniband? ( sys-cluster/rdma-core[static-libs(+)] ) @@ -205,7 +208,7 @@ SOFTMMU_TOOLS_DEPEND=" ) pam? ( sys-libs/pam ) png? ( media-libs/libpng:0=[static-libs(+)] ) - pulseaudio? ( media-sound/pulseaudio ) + pulseaudio? ( media-libs/libpulse ) rbd? ( sys-cluster/ceph ) sasl? ( dev-libs/cyrus-sasl[static-libs(+)] ) sdl? ( @@ -223,7 +226,7 @@ SOFTMMU_TOOLS_DEPEND=" ) ssh? ( >=net-libs/libssh-0.8.6[static-libs(+)] ) udev? ( virtual/libudev:= ) - usb? ( >=virtual/libusb-1-r2[static-libs(+)] ) + usb? ( >=virtual/libusb-1-r2:1[static-libs(+)] ) usbredir? ( >=sys-apps/usbredir-0.6[static-libs(+)] ) vde? ( net-misc/vde[static-libs(+)] ) virgl? ( media-libs/virglrenderer[static-libs(+)] ) @@ -311,6 +314,7 @@ PATCHES=( "${FILESDIR}"/${PN}-6.0.0-make.patch "${FILESDIR}"/${PN}-7.1.0-also-build-virtfs-proxy-helper.patch "${FILESDIR}"/${PN}-7.1.0-capstone-include-path.patch + "${FILESDIR}"/${PN}-7.2.0-disable-gmp.patch ) QA_PREBUILT=" |