libsoup3: make zstd optional, drop unused deps
authorAlexandru Ardelean <redacted>
Thu, 4 Jun 2026 13:58:24 +0000 (16:58 +0300)
committerHannu Nyman <redacted>
Fri, 5 Jun 2026 04:16:01 +0000 (07:16 +0300)
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 <redacted>
libs/libsoup3/Makefile

index fb3b1bd34ceef975e90c1bf7ca019ab2f1034307..554630a2004cd8c92d7c365cd06a02e8b60004eb 100644 (file)
@@ -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 \
git clone https://git.99rst.org/PROJECT