Skip to content

Commit 4239142

Browse files
committed
update upstream to 2.15.1
1 parent 5986aa4 commit 4239142

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

build.zig

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ pub fn build(b: *std.Build) void {
1919
const minimum = b.option(bool, "minimum", "build a minimally sized library (default=false)") orelse false;
2020
const legacy = b.option(bool, "legacy", "maximum ABI compatibility (default=false)") orelse false;
2121

22-
const http = b.option(bool, "http", "HTTP support (default=false)") orelse false;
22+
const http = b.option(bool, "http", "ABI compatibility for removed HTTP support (default=false)") orelse false;
2323
const icu = b.option(bool, "icu", "ICU support (default=false)") orelse false;
24-
const lzma = b.option(bool, "lzma", "use liblzma in DIR (default=false)") orelse false;
2524
// const python = b.option(bool, "python", "Python bindings (default=false)") orelse false;
2625
const thread_alloc = b.option(bool, "thread-alloc", "per-thread malloc hooks (default=false)") orelse false;
2726
const tls = b.option(bool, "tls", "thread-local storage (default=false)") orelse false;
@@ -49,7 +48,7 @@ pub fn build(b: *std.Build) void {
4948
const want_regexps = b.option(bool, "regexps", "regular expressions support (default=true)");
5049
const want_relaxng = b.option(bool, "relaxng", "RELAX NG support (default=true)");
5150
const want_schemas = b.option(bool, "schemas", "XML Schemas 1.0 and RELAX NG support (default=true)");
52-
const want_schematron = b.option(bool, "schematron", "Schematron support (default=true)");
51+
const want_schematron = b.option(bool, "schematron", "Schematron support (default=false)");
5352
const want_writer = b.option(bool, "writer", "xmlWriter serialization interface (default=true)");
5453
const want_xpath = b.option(bool, "xpath", "XPath 1.0 support (default=true)");
5554
const want_xptr = b.option(bool, "xptr", "XPointer support (default=true)");
@@ -118,7 +117,6 @@ pub fn build(b: *std.Build) void {
118117
.WITH_MODULES = false,
119118
.MODULE_EXTENSION = null,
120119
.WITH_ZLIB = zlib,
121-
.WITH_LZMA = lzma,
122120
});
123121

124122
const config_header = b.addConfigHeader(.{
@@ -136,7 +134,6 @@ pub fn build(b: *std.Build) void {
136134
.HAVE_FUNC_ATTRIBUTE_DESTRUCTOR = true,
137135
.HAVE_LIBHISTORY = history,
138136
.HAVE_LIBREADLINE = readline,
139-
.HAVE_POLL_H = http and target.result.os.tag != .windows,
140137
.HAVE_SHLLOAD = false, // only present if `WITH_MODULES`
141138
.HAVE_STDINT_H = true,
142139
.XML_SYSCONFDIR = "/", // TODO
@@ -168,23 +165,20 @@ pub fn build(b: *std.Build) void {
168165
if (debug) xml_lib.root_module.addCSourceFile(.{ .file = upstream.path("debugXML.c"), .flags = xml_flags });
169166
if (html) xml_lib.root_module.addCSourceFiles(.{ .files = &.{ "HTMLparser.c", "HTMLtree.c" }, .root = upstream.path(""), .flags = xml_flags });
170167
if (http) xml_lib.root_module.addCSourceFile(.{ .file = upstream.path("nanohttp.c"), .flags = xml_flags });
171-
if (lzma) xml_lib.root_module.addCSourceFile(.{ .file = upstream.path("xzlib.c"), .flags = xml_flags });
172168
// if (modules) xml_lib.root_module.addCSourceFile(.{ .file = upstream.path("xmlmodule.c"), .flags = xml_flags });
173169
if (output) xml_lib.root_module.addCSourceFile(.{ .file = upstream.path("xmlsave.c"), .flags = xml_flags });
174170
if (pattern) xml_lib.root_module.addCSourceFile(.{ .file = upstream.path("pattern.c"), .flags = xml_flags });
175171
if (reader) xml_lib.root_module.addCSourceFile(.{ .file = upstream.path("xmlreader.c"), .flags = xml_flags });
176-
if (regexps) xml_lib.root_module.addCSourceFiles(.{ .files = &.{ "xmlregexp.c", "xmlunicode.c" }, .root = upstream.path(""), .flags = xml_flags });
172+
if (regexps) xml_lib.root_module.addCSourceFile(.{ .file = upstream.path("xmlregexp.c"), .flags = xml_flags });
177173
if (relaxng) xml_lib.root_module.addCSourceFile(.{ .file = upstream.path("relaxng.c"), .flags = xml_flags });
178174
if (schemas) xml_lib.root_module.addCSourceFiles(.{ .files = &.{ "xmlschemas.c", "xmlschemastypes.c" }, .root = upstream.path(""), .flags = xml_flags });
179175
if (schematron) xml_lib.root_module.addCSourceFile(.{ .file = upstream.path("schematron.c"), .flags = xml_flags });
180176
if (writer) xml_lib.root_module.addCSourceFile(.{ .file = upstream.path("xmlwriter.c"), .flags = xml_flags });
181177
if (xinclude) xml_lib.root_module.addCSourceFile(.{ .file = upstream.path("xinclude.c"), .flags = xml_flags });
182178
if (xpath) xml_lib.root_module.addCSourceFile(.{ .file = upstream.path("xpath.c"), .flags = xml_flags });
183179
if (xptr) xml_lib.root_module.addCSourceFiles(.{ .files = &.{ "xlink.c", "xpointer.c" }, .root = upstream.path(""), .flags = xml_flags });
184-
if (lzma) xml_lib.root_module.linkSystemLibrary("lzma", .{});
185180
if (icu) xml_lib.root_module.linkSystemLibrary("icu-i18n", .{});
186181
if (target.result.os.tag == .windows) xml_lib.root_module.linkSystemLibrary("bcrypt", .{});
187-
if (http and target.result.os.tag == .windows) xml_lib.root_module.linkSystemLibrary("ws2_32", .{});
188182

189183
if (iconv) {
190184
if (b.systemIntegrationOption("iconv", .{ .default = target.result.os.tag.isDarwin() })) {

build.zig.zon

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
.{
22
.name = .libxml2,
3-
.version = "2.14.3-4",
3+
.version = "2.15.1",
44
.minimum_zig_version = "0.15.1",
55
.dependencies = .{
66
.libxml2 = .{
7-
.url = "https://download.gnome.org/sources/libxml2/2.14/libxml2-2.14.3.tar.xz",
8-
.hash = "N-V-__8AAHNpnQFu4N1SnEmxr9g4O873Ejt8qA3Ar7VOZ3MM",
7+
.url = "https://download.gnome.org/sources/libxml2/2.15/libxml2-2.15.1.tar.xz",
8+
.hash = "N-V-__8AAPCbSwEcttmGC8VZFtoJxaP06X_upd7O13NMUkIf",
99
},
1010
.zlib = .{
1111
.url = "git+https://github.com/allyourcodebase/zlib.git#61e7df7e996ec5a5f13a653db3c419adb340d6ef",

0 commit comments

Comments
 (0)