package/libxmlsec1: new package
PATCH v4 1/1 package/libxmlsec1: new package
Introduce the libxmlsec1 library package. libxmlsec implements XML security standards.
The library has only a few mandatory dependencies (libxml2 and a crypto library). It needs one of the following cryptographic libraries:
OpenSSL, NSS, or Gcrypt/GNUTLS. Default to openssl for now to keep the package simple.
---
This is based on the patch provided by Alexis Lothoré last year. I updated it to latest available release and fixed some issues found via test-pkg.
./utils/test-pkg -p libxmlsec1
bootlin-armv5-uclibc [1/6]: OK
bootlin-armv7-glibc [2/6]: OK
bootlin-armv7m-uclibc [3/6]: OK
bootlin-x86-64-musl [4/6]: OK
br-arm-full-static [5/6]: OK
bootlin-aarch64-glibc-old [6/6]: OK6 builds, 0 skipped, 0 build failed, 0 legal-info failed, 0 show-info failed
--- DEVELOPERS | 1 + package/Config.in | 1 + package/libxmlsec1/Config.in | 11 +++++++++++ package/libxmlsec1/libxmlsec1.hash | 4 ++++ package/libxmlsec1/libxmlsec1.mk | 30 ++++++++++++++++++++++++++++++ 5 files changed, 47 insertions(+) create mode 100644 package/libxmlsec1/Config.in create mode 100644 package/libxmlsec1/libxmlsec1.hash create mode 100644 package/libxmlsec1/libxmlsec1.mk
DEVELOPERS +1 -0
@@ -3430,6 +3430,7 @@ F: package/asterisk/ F: package/evilwm/ F: package/fbv/ F: package/libpam-pkcs11/ +F: package/libxmlsec1/ F: package/mksh/ F: package/ruby/ F: package/uclibc/
package/Config.in +1 -0
@@ -1641,6 +1641,7 @@ menu "Crypto" source "package/libtomcrypt/Config.in" source "package/libuecc/Config.in" source "package/libxcrypt/Config.in" + source "package/libxmlsec1/Config.in" source "package/mbedtls/Config.in" source "package/nettle/Config.in" source "package/oath-toolkit/Config.in"
package/libxmlsec1/Config.in new file +11 -0
@@ -0,0 +1,11 @@ +config BR2_PACKAGE_LIBXMLSEC1 + bool "libxmlsec1" + select BR2_PACKAGE_LIBXML2 + select BR2_PACKAGE_OPENSSL + help + XMLSec library provides C based implementation for major XML + Security standards: + - XML Signature Syntax and Processing + - XML Encryption Syntax and Processing + + https://www.aleksey.com/xmlsec/
package/libxmlsec1/libxmlsec1.hash new file +4 -0
@@ -0,0 +1,4 @@ +# Locally calculated +sha256 a631c8cd7a6b86e6adb9f5b935d45a9cf9768b3cb090d461e8eb9d043cf9b62f xmlsec1-1.3.9.tar.gz +# Locally calculated +sha256 d5e9388534256360c6a009d4f19ab2b8d6ec0aa7ff32a51e22d899ed7beb5c48 Copyright
package/libxmlsec1/libxmlsec1.mk new file +30 -0
@@ -0,0 +1,30 @@ +################################################################################ +# +# libxmlsec1 +# +################################################################################ + +LIBXMLSEC1_VERSION = 1.3.9 +LIBXMLSEC1_SOURCE = xmlsec1-$(LIBXMLSEC1_VERSION).tar.gz +LIBXMLSEC1_SITE = http://www.aleksey.com/xmlsec/download +LIBXMLSEC1_LICENSE = MIT +LIBXMLSEC1_LICENSE_FILES = Copyright + +LIBXMLSEC1_INSTALL_STAGING = YES + +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) +LIBXMLSEC1_CONF_ENV += LIBS=-latomic +endif + +LIBXMLSEC1_CONF_OPTS += \ + --enable-crypto-dl=no \ + --disable-pedantic \ + --with-openssl=$(STAGING_DIR)/usr \ + --without-gnutls \ + --without-nss \ + --without-gcrypt \ + --without-libxslt + +LIBXMLSEC1_DEPENDENCIES = libxml2 openssl + +$(eval $(autotools-package))
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello,
Quoted 9 lines · Waldemar Brodkorb
Introduce the libxmlsec1 library package. libxmlsec implements XML security standards.
The library has only a few mandatory dependencies (libxml2 and a crypto library). It needs one of the following cryptographic libraries:
OpenSSL, NSS, or Gcrypt/GNUTLS. Default to openssl for now to keep the package simple.Signed-off-by Waldemar Brodkorb <[email protected]>
Sorry Waldemar, I'm seeing your patch now after having applied the one from Alexis. Could you send any updates as patches on top of master?
package/libxmlsec1/Config.in line 4
Quoted 10 lines
package/libxmlsec1/Config.in new file +4
-0@@ -0,0 +1,11 @@ +config BR2_PACKAGE_LIBXMLSEC1 + bool "libxmlsec1" + select BR2_PACKAGE_LIBXML2 + select BR2_PACKAGE_OPENSSL
I see you did not select libxslt here, while Alexis did so in his patch. So I assume libxslt is not mandatory?
package/libxmlsec1/Config.in line 7
Quoted 3 lines
package/libxmlsec1/Config.in new file +3
-0+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) +LIBXMLSEC1_CONF_ENV += LIBS=-latomic +endif
Alexis patch did not have this. I assume it fixes issue on SPARC ?
package/libxmlsec1/Config.in line 8
Quoted 1 line
package/libxmlsec1/Config.in new file +1
-0+$(eval $(autotools-package))
Your patch did not have the host variant, which Alexis needed.
Best regards,
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot