Skip to contentSkip to conversation

package/xml-security-c: new package

PATCH Superseded Matt Weber 2 participants 2 messages Jun 9, 2020 – Sep 13, 2020

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Matt Weber

author
#0 lore raw

PATCH v2 1/1 package/xml-security-c: new package

From: Chris Simons <[email protected]>

Adds support for the Apache Santuario XML Security for C++ that implementations the XML Digital Signature and Encryption specifications.

--
Changes
v1 -> v2
[Thomas P
- Added build time dependency on openssl as it is needed (test build lucked out that openssl was already built)
- Added autoconf cached value for getcmd test and upstreamed
- Made Config.in dependency style updates

---
 DEVELOPERS                                    |  1 +
 package/Config.in                             |  1 +
 ...ariable-cache-option-for-getcwd-test.patch | 50 +++++++++++++++++++
 package/xml-security-c/Config.in              | 15 ++++++
 package/xml-security-c/xml-security-c.hash    |  4 ++
 package/xml-security-c/xml-security-c.mk      | 19 +++++++
 6 files changed, 90 insertions(+)
 create mode 100644 package/xml-security-c/0001-autoconf-variable-cache-option-for-getcwd-test.patch
 create mode 100644 package/xml-security-c/Config.in
 create mode 100644 package/xml-security-c/xml-security-c.hash
 create mode 100644 package/xml-security-c/xml-security-c.mk
DEVELOPERS +1 -0
index efb97c739c..bd5a2d9cb4 100644
@@ -1723,6 +1723,7 @@ F:	package/valijson/
 F:	package/wpa_supplicant/
 F:	package/wireless_tools/
 F:	package/xen/
+F:	package/xml-security-c/
 F:	support/testing/tests/package/br2-external/openjdk/
 F:	support/testing/tests/package/test_openjdk.py
 F:	support/testing/tests/package/test_opkg/
package/Config.in +1 -0
index 85d7326361..3560bd9149 100644
@@ -1586,6 +1586,7 @@ menu "JSON/XML"
 	source "package/tinyxml2/Config.in"
 	source "package/valijson/Config.in"
 	source "package/xerces/Config.in"
+	source "package/xml-security-c/Config.in"
 	source "package/yajl/Config.in"
 	source "package/yaml-cpp/Config.in"
 endmenu
package/xml-security-c/0001-autoconf-variable-cache-option-for-getcwd-test.patch new file +50 -0

50 lines not on this page · raw message

package/xml-security-c/Config.in new file +15 -0
new file mode 100644
index 0000000000..0d0385c698
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_XML_SECURITY_C
+	bool "xml-security-c"
+	depends on BR2_INSTALL_LIBSTDCPP # xerces
+	depends on BR2_USE_WCHAR # xerces
+	select BR2_PACKAGE_XERCES
+	select BR2_PACKAGE_OPENSSL
+	help
+	  The xml-security-c library is a C++ implementation of
+	  the XML Digital Signature and Encryption specifications.
+
+	  https://santuario.apache.org/cindex.html
+
+comment "xml-security-c needs a toolchain w/ C++, wchar"
+	depends on !BR2_INSTALL_LIBSTDCPP || \
+	!BR2_USE_WCHAR
package/xml-security-c/xml-security-c.hash new file +4 -0
new file mode 100644
index 0000000000..9a82a55f17
@@ -0,0 +1,4 @@
+# From http://www.apache.org/dist/santuario/c-library/xml-security-c-2.0.2.tar.gz.sha256
+sha256  c303a2b08cb9ca0f5594adcbb83829b1e793175d7114a82f7d78def8bb2e30df  xml-security-c-2.0.2.tar.gz
+
+sha256  c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4  LICENSE.txt
package/xml-security-c/xml-security-c.mk new file +19 -0
new file mode 100644
index 0000000000..36f69483c2
@@ -0,0 +1,19 @@
+################################################################################
+#
+# xml-security-c
+#
+################################################################################
+
+XML_SECURITY_C_VERSION = 2.0.2
+XML_SECURITY_C_SITE = http://archive.apache.org/dist/santuario/c-library
+XML_SECURITY_C_LICENSE = Apache-2.0
+XML_SECURITY_C_LICENSE_FILES = LICENSE.txt
+XML_SECURITY_C_DEPENDENCIES = openssl xerces
+XML_SECURITY_C_INSTALL_STAGING = YES
+
+XML_SECURITY_C_CONF_ENV = xml_cv_func_getcwd_null=yes
+
+# Patched configure.ac
+XML_SECURITY_C_AUTORECONF = YES
+
+$(eval $(autotools-package))
Signature · 1 line
2.17.1
#1 lore raw

PATCH v2 1/1 package/xml-security-c: new package

Hello Matt,

Quoted 8 lines · On Mon, 8 Jun 2020 21:14:11 -0500 Matt Weber…

From: Chris Simons <[email protected]>

Adds support for the Apache Santuario XML Security for C++ that implementations the XML Digital Signature and Encryption specifications.

I finally had a look, and while the package looks good, it doesn't build here.

The following defconfig:

BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/br-arm-full-2020.02.tar.bz2" BR2_TOOLCHAIN_EXTERNAL_GCC_5=y
BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_14=y
BR2_TOOLCHAIN_EXTERNAL_LOCALE=y
# BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG is not set
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
# BR2_PACKAGE_XERCES_ENABLE_NETWORK is not set
BR2_PACKAGE_XML_SECURITY_C=y
# BR2_TARGET_ROOTFS_TAR is not set

fails to build with:

/home/thomas/projets/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/xercesc/util/Xerces_autoconf_config.hpp:123:9: error: ?char16_t? does not name a type

 typedef XERCES_XMLCH_T    XMLCh;
         ^

and then tons and tons of errors related to the XMLCh type being not available.

Could you look into this? Perhaps doing a test-pkg run on this package would be useful.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com