Skip to contentSkip to conversation

package/libxmlsec1: drop mandatory libxslt dependency

PATCH In review Thomas Petazzoni via buildroot 1 participant 2 messages Feb 12

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libxmlsec1: drop mandatory libxslt dependency

Commit 7eeb574f0ec86e372bcc8a551e8e9bb88b8d6555 introduced the libxmlsec1 making libxslt a mandatory dependency, which it isn't.

This commit therefore make libxslt an optional dependency of the target libxmlsec1 package, and drops the dependency entirely for the host package.

---
 package/libxmlsec1/Config.in     |  1 -
 package/libxmlsec1/libxmlsec1.mk | 14 +++++++++++---
 2 files changed, 11 insertions(+), 4 deletions(-)
package/libxmlsec1/Config.in +0 -1
index 155efac825..4a686853ae 100644
@@ -2,7 +2,6 @@ config BR2_PACKAGE_LIBXMLSEC1
 	bool "libxmlsec1"
 	select BR2_PACKAGE_OPENSSL
 	select BR2_PACKAGE_LIBXML2
-	select BR2_PACKAGE_LIBXSLT
 	help
 	  XMLSec library provides C based implementation for major XML
 	  Security standards:
package/libxmlsec1/libxmlsec1.mk +11 -3
index 08f1f9eccd..d0d553c48c 100644
@@ -10,8 +10,8 @@ LIBXMLSEC1_SITE = https://github.com/lsh123/xmlsec/releases/download/$(LIBXMLSEC
 LIBXMLSEC1_LICENSE = MIT
 LIBXMLSEC1_LICENSE_FILES = Copyright
 LIBXMLSEC1_INSTALL_STAGING = YES
-LIBXMLSEC1_DEPENDENCIES = libxml2 libxslt openssl
-HOST_LIBXMLSEC1_DEPENDENCIES = host-libxml2 host-libxslt host-openssl
+LIBXMLSEC1_DEPENDENCIES = libxml2 openssl
+HOST_LIBXMLSEC1_DEPENDENCIES = host-libxml2 host-openssl
 LIBXMLSEC1_AUTORECONF = YES
 
 LIBXMLSEC1_CONF_OPTS = \
@@ -26,7 +26,15 @@ HOST_LIBXMLSEC1_CONF_OPTS = \
 	--with-openssl \
 	--without-gnutls \
 	--without-gcrypt \
-	--without-nss
+	--without-nss \
+	--without-libxslt
+
+ifeq ($(BR2_PACKAGE_LIBXSLT),y)
+LIBXMLSEC1_DEPENDENCIES += libxslt
+LIBXMLSEC1_CONF_OPTS += --with-libxslt
+else
+LIBXMLSEC1_CONF_OPTS += --without-libxslt
+endif
 
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 8 lines · Thomas Petazzoni via buildroot

Commit 7eeb574f0ec86e372bcc8a551e8e9bb88b8d6555 introduced the libxmlsec1 making libxslt a mandatory dependency, which it isn't.

This commit therefore make libxslt an optional dependency of the target libxmlsec1 package, and drops the dependency entirely for the host package.

Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot