Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v4] package/libxmlsec1: new package
@ 2026-02-05  9:25 Waldemar Brodkorb
  2026-02-10 22:54 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Waldemar Brodkorb @ 2026-02-05  9:25 UTC (permalink / raw)
  To: buildroot; +Cc: alexis.lothore

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 <wbx@openadk.org>
---
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]: OK
6 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

diff --git a/DEVELOPERS b/DEVELOPERS
index 225d1ac917..5268625e97 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -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/
diff --git a/package/Config.in b/package/Config.in
index 6284bea7f4..e69dd6e9fb 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/libxmlsec1/Config.in b/package/libxmlsec1/Config.in
new file mode 100644
index 0000000000..ce3384e7b7
--- /dev/null
+++ b/package/libxmlsec1/Config.in
@@ -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/
diff --git a/package/libxmlsec1/libxmlsec1.hash b/package/libxmlsec1/libxmlsec1.hash
new file mode 100644
index 0000000000..be7ca529cb
--- /dev/null
+++ b/package/libxmlsec1/libxmlsec1.hash
@@ -0,0 +1,4 @@
+# Locally calculated
+sha256  a631c8cd7a6b86e6adb9f5b935d45a9cf9768b3cb090d461e8eb9d043cf9b62f  xmlsec1-1.3.9.tar.gz
+# Locally calculated
+sha256  d5e9388534256360c6a009d4f19ab2b8d6ec0aa7ff32a51e22d899ed7beb5c48  Copyright
diff --git a/package/libxmlsec1/libxmlsec1.mk b/package/libxmlsec1/libxmlsec1.mk
new file mode 100644
index 0000000000..a2d607c228
--- /dev/null
+++ b/package/libxmlsec1/libxmlsec1.mk
@@ -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))
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH v4] package/libxmlsec1: new package
  2026-02-05  9:25 [Buildroot] [PATCH v4] package/libxmlsec1: new package Waldemar Brodkorb
@ 2026-02-10 22:54 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-02-10 22:54 UTC (permalink / raw)
  To: Waldemar Brodkorb; +Cc: buildroot, alexis.lothore

Hello,

On Thu, Feb 05, 2026 at 10:25:55AM +0100, Waldemar Brodkorb wrote:
> 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 <wbx@openadk.org>

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?

> diff --git a/package/libxmlsec1/Config.in b/package/libxmlsec1/Config.in
> new file mode 100644
> index 0000000000..ce3384e7b7
> --- /dev/null
> +++ b/package/libxmlsec1/Config.in
> @@ -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?

> +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 ?

> +$(eval $(autotools-package))

Your patch did not have the host variant, which Alexis needed.

Best regards,

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-02-10 22:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-05  9:25 [Buildroot] [PATCH v4] package/libxmlsec1: new package Waldemar Brodkorb
2026-02-10 22:54 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox