summaryrefslogtreecommitdiff
path: root/libexpat/README-DEV
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-09-30 14:34:51 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-09-30 17:26:56 +0300
commita8a0eacb8148c8d68f059dc7eba585c92cbe937e (patch)
tree561e252987847ba3d52665aac9ab3d1afd4ea690 /libexpat/README-DEV
parent75fd8e50ade69a3afae82024a6e4b879b1f72ac1 (diff)
Upgrade to 2.4.9
This in particular fixes CVE-2022-40674.
Diffstat (limited to 'libexpat/README-DEV')
-rw-r--r--libexpat/README-DEV16
1 files changed, 15 insertions, 1 deletions
diff --git a/libexpat/README-DEV b/libexpat/README-DEV
index 9eb0455..d552e9c 100644
--- a/libexpat/README-DEV
+++ b/libexpat/README-DEV
@@ -6,10 +6,24 @@ Symlink the required upstream files:
$ ln -s ../COPYING
$ pushd libexpat
-$ ln -s ../../upstream/expat/lib/{*.{c,h},libexpat.def} ./
+$ ln -s ../../upstream/expat/lib/{*.{c,h},libexpat.def.cmake} ./
$ ln -s ../../upstream/expat/expat_config.h.cmake expat_config.h.cmake.orig
$ popd
+@@ TMP Note that the in module can't be used directly for libexpat.def.cmake
+ since the substitution variables we need to use start with the
+ underscore character, which ends up with the following error:
+
+ buildfile:28:3: error: variable name '_EXPAT_COMMENT_ATTR_INFO' is reserved
+ info: variable name starts with underscore
+
+ This can be fixed when the build2 version 0.16.0 is released, which
+ introduces the in.substitutions variable, which can be set to the list
+ of substitutions (key-value pairs).
+
+ For now we just copy libexpat.def.cmake to libexpat.def.in and patch it
+ manually, removing the leading underscores.
+
Use some of the upstream's tests for testing:
$ pushd unit-tests/regression/