From patchwork Thu Sep 17 15:37:22 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 98547 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81FE0C88E72 for ; Thu, 17 Sep 2026 15:37:35 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.42667.1789659454763488567 for ; Thu, 17 Sep 2026 08:37:34 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=a9FFTkVs; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 989EE1476 for ; Thu, 17 Sep 2026 08:37:30 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D985D3F7B4 for ; Thu, 17 Sep 2026 08:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1789659454; bh=QV/2+e7bH9TxV2hbUD742qMOe7/9Mnj5Da5S2F7Z23o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=a9FFTkVsWuGPGiQSlLNYqUEee/EJ7m3axZccRap1pDXteRl/br0DwR2Kpv7dTE/VR CwnHrAu0a7dCoUpDQyw4EEAIf11Cc5o3Irn19FrdSPaseTn365zQVmI2Z5p5pZmds+ 3RFnW0oxIpxnUtiCB6zmLA/k6KQqnBmGh2I0FksI= From: Ross Burton To: openembedded-devel@lists.openembedded.org Subject: [PATCH v2 5/8] spice-gtk: clean up dependencies Date: Thu, 17 Sep 2026 16:37:22 +0100 Message-ID: <20260917153727.3057505-5-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260917153727.3057505-1-ross.burton@arm.com> References: <20260917153727.3057505-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 17 Sep 2026 15:37:35 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/130102 Instead of a single huge list of DEPENDS, add a number of PACKAGECONFIGs that reflect the upstream options available. Signed-off-by: Ross Burton --- .../recipes-support/spice/spice-gtk_0.42.bb | 44 +++++++------------ 1 file changed, 15 insertions(+), 29 deletions(-) diff --git a/meta-networking/recipes-support/spice/spice-gtk_0.42.bb b/meta-networking/recipes-support/spice/spice-gtk_0.42.bb index e8f9ddc5df8..dcfbc69e51b 100644 --- a/meta-networking/recipes-support/spice/spice-gtk_0.42.bb +++ b/meta-networking/recipes-support/spice/spice-gtk_0.42.bb @@ -14,35 +14,9 @@ SRC_URI = "gitsm://gitlab.freedesktop.org/spice/spice-gtk.git;protocol=https;bra CVE_STATUS[CVE-2012-4425] = "fixed-version: fixed since 0.15.3" - -DEPENDS = " \ - ${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)} \ - ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland wayland-native wayland-protocols', '', d)} \ - acl \ - cyrus-sasl \ - gstreamer1.0 \ - gstreamer1.0-plugins-base \ - gtk+3 \ - jpeg \ - json-glib \ - libcap-ng \ - libepoxy \ - libopus \ - libusb1 \ - libva \ - lz4 \ - pixman \ - python3-pyparsing-native \ - python3-six-native \ - spice-protocol \ - usbredir \ - usbutils \ - zlib \ -" +DEPENDS = "python3-six-native python3-pyparsing-native spice-protocol glib-2.0 pixman openssl jpeg zlib json-glib libcap-ng gstreamer1.0 gstreamer1.0-plugins-base" DEPENDS:append:libc-musl = " libucontext" -RDEPENDS:${PN} = "python3-pyparsing python3-six hwdata" - inherit meson pkgconfig vala gobject-introspection features_check gtk-doc REQUIRED_DISTRO_FEATURES = "opengl" @@ -57,9 +31,19 @@ do_configure:prepend() { echo ${PV} > ${S}/.tarball-version } -PACKAGECONFIG ??= "${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'vapi', '', d)} smartcard" -PACKAGECONFIG[vapi] = "-Dvapi=enabled,-Dvapi=disabled" +GTK_DEPS = "gtk+3 libepoxy libva ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland-native wayland-protocols wayland', '', d)}" + +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)} \ + ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'vapi', '', d)} \ + gtk lz4 opus sasl smartcard usbredir" +PACKAGECONFIG[gtk] = "-Dgtk=enabled,-Dgtk=disabled,${GTK_DEPS}" +PACKAGECONFIG[lz4] = "-Dlz4=enabled,-Dlz4=disabled,lz4" +PACKAGECONFIG[opus] = "-Dopus=enabled,-Dopus=disabled,libopus" +PACKAGECONFIG[polkit] = "-Dpolkit=enabled,-Dpolkit=disabled,polkit acl" +PACKAGECONFIG[sasl] = "-Dsasl=enabled,-Dsasl=disabled,cyrus-sasl" PACKAGECONFIG[smartcard] = "-Dsmartcard=enabled,-Dsmartcard=disabled,libcacard" +PACKAGECONFIG[usbredir] = "-Dusbredir=enabled,-Dusbredir=disabled,usbredir libusb1" +PACKAGECONFIG[vapi] = "-Dvapi=enabled,-Dvapi=disabled" PACKAGECONFIG[webdav] = "-Dwebdav=enabled,-Dwebdav=disabled,phodav libsoup" EXTRA_OEMESON = "-Dpie=true -Dusb-ids-path=${datadir}/hwdata/usb.ids " @@ -68,3 +52,5 @@ EXTRA_OEMESON:append:libc-musl = " -Dcoroutine=libucontext" LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -Wl,--undefined-version', '', d)}" FILES:${PN} += "${datadir}" + +RDEPENDS:${PN} = "hwdata"