From: Alexandru Ardelean Date: Thu, 4 Jun 2026 13:58:24 +0000 (+0300) Subject: libsoup3: make zstd optional, drop unused deps X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=636d0216d728c6ebe2444a9052da859c3738d913;p=openwrt-packages.git libsoup3: make zstd optional, drop unused deps Meson auto-detects zstd if staged by other builds. So, we need to enforce it enabled/disabled via build options. Drop libxml2 and libgnutls from DEPENDS. They're not required in libsoup3. Maybe they're left-overs from libsoup2. Signed-off-by: Alexandru Ardelean --- diff --git a/libs/libsoup3/Makefile b/libs/libsoup3/Makefile index fb3b1bd34..554630a20 100644 --- a/libs/libsoup3/Makefile +++ b/libs/libsoup3/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libsoup3 PKG_VERSION:=3.7.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=libsoup-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@GNOME/libsoup/$(basename $(PKG_VERSION)) @@ -30,13 +30,24 @@ define Package/libsoup3 CATEGORY:=Libraries TITLE:=libsoup3 URL:=https://wiki.gnome.org/Projects/libsoup - DEPENDS:=+glib2 +libxml2 +libgnutls +libsqlite3 +libpsl +libnghttp2 + DEPENDS:=+glib2 +libsqlite3 +libpsl +libnghttp2 +LIBSOUP3_ZSTD:libzstd +endef + +define Package/libsoup3/config + config LIBSOUP3_ZSTD + bool "zstd Content-Encoding support" + depends on PACKAGE_libsoup3 + default n + help + Enable transparent decoding of zstd-compressed HTTP responses. + This pulls in libzstd. Leave disabled to keep the footprint small. endef MESON_ARGS += \ -Dgssapi=disabled \ -Dntlm=disabled \ -Dbrotli=disabled \ + -Dzstd=$(if $(CONFIG_LIBSOUP3_ZSTD),enabled,disabled) \ -Dtls_check=false \ -Dintrospection=disabled \ -Dvapi=disabled \