Skip to content

Commit 7b369e5

Browse files
authored
Merge pull request #2667 from sparklemotion/flavorjones-update-libxml2-2.10.3_backport-v1.13.x
dep: update libxml2 to v2.10.3 (backport to v1.13.x)
2 parents 21b4ac5 + cd9aeee commit 7b369e5

11 files changed

+119
-3222
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ Nokogiri follows [Semantic Versioning](https://semver.org/), please see the [REA
44

55
---
66

7+
## 1.13.9 / unreleased
8+
9+
### Security
10+
11+
* [CRuby] Vendored libxml2 is updated to address [CVE-2022-2309](https://nvd.nist.gov/vuln/detail/CVE-2022-2309), [CVE-2022-40304](https://nvd.nist.gov/vuln/detail/CVE-2022-40304), and [CVE-2022-40303](https://nvd.nist.gov/vuln/detail/CVE-2022-40303). See [GHSA-2qc6-mcvw-92cw](https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-2qc6-mcvw-92cw) for more information.
12+
13+
### Dependencies
14+
15+
* [CRuby] Vendored libxml2 is updated to [v2.10.3](https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.10.3) from v2.9.14.
16+
* [CRuby] Vendored libxslt is updated to [v1.1.37](https://gitlab.gnome.org/GNOME/libxslt/-/releases/v1.1.37) from v1.1.35.
17+
718
## 1.13.8 / 2022-07-23
819

920
### Deprecated

dependencies.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
libxml2:
2-
version: "2.9.14"
3-
sha256: "60d74a257d1ccec0475e749cba2f21559e48139efba6ff28224357c7c798dfee"
4-
# sha-256 hash provided in https://download.gnome.org/sources/libxml2/2.9/libxml2-2.9.14.sha256sum
2+
version: "2.10.3"
3+
sha256: "5d2cc3d78bec3dbe212a9d7fa629ada25a7da928af432c93060ff5c17ee28a9c"
4+
# sha-256 hash provided in https://download.gnome.org/sources/libxml2/2.10/libxml2-2.10.3.sha256sum
55

66
libxslt:
7-
version: "1.1.35"
8-
sha256: "8247f33e9a872c6ac859aa45018bc4c4d00b97e2feac9eebc10c93ce1f34dd79"
9-
# sha-256 hash provided in https://download.gnome.org/sources/libxslt/1.1/libxslt-1.1.35.sha256sum
7+
version: "1.1.37"
8+
sha256: "3a4b27dc8027ccd6146725950336f1ec520928f320f144eb5fa7990ae6123ab4"
9+
# sha-256 hash provided in https://download.gnome.org/sources/libxslt/1.1/libxslt-1.1.37.sha256sum
1010

1111
zlib:
1212
version: "1.2.12"

ext/nokogiri/extconf.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,11 @@ def configure
839839
recipe.configure_options += ["RANLIB=/usr/bin/ranlib", "AR=/usr/bin/ar"]
840840
end
841841

842+
if windows?
843+
cflags = concat_flags(cflags, "-ULIBXSLT_STATIC", "-DIN_LIBXSLT")
844+
cflags = concat_flags(cflags, "-ULIBEXSLT_STATIC", "-DIN_LIBEXSLT")
845+
end
846+
842847
recipe.configure_options << if source_dir
843848
"--config-cache"
844849
else

ext/nokogiri/xml_xpath_context.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,10 @@ new (VALUE klass, VALUE nodeobj)
373373

374374
Noko_Node_Get_Struct(nodeobj, xmlNode, node);
375375

376+
#if LIBXML_VERSION < 21000
377+
/* deprecated in 40483d0 */
376378
xmlXPathInit();
379+
#endif
377380

378381
ctx = xmlXPathNewContext(node->doc);
379382
ctx->node = node;

patches/libxml2/0004-use-glibc-strlen.patch

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)