Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 884c899

Browse files
committed
build: Don't make --with-legacy enable HTTP and LZMA
The --with-legacy option only enables --with-zlib for now.
1 parent ee026e1 commit 884c899

4 files changed

Lines changed: 6 additions & 20 deletions

File tree

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.test:
22
image: registry.gitlab.gnome.org/gnome/libxml2
33
variables:
4-
BASE_CONFIG: "--with-legacy"
4+
BASE_CONFIG: "--with-http --with-lzma --with-zlib"
55
before_script:
66
- rm -rf libxml2-build
77
- mkdir libxml2-build
@@ -72,7 +72,7 @@ clang:msan:
7272
tags:
7373
- win32-ps
7474
variables:
75-
BASE_CONFIG: "--with-legacy"
75+
BASE_CONFIG: "--with-http --with-lzma --with-zlib"
7676
# Disabled for now, see #658
7777
CONFIG: "--without-python"
7878
CHERE_INVOKING: "yes"

CMakeLists.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ option(BUILD_SHARED_LIBS "Build shared libraries" ON)
2727
option(LIBXML2_WITH_CATALOG "Add the Catalog support" ON)
2828
option(LIBXML2_WITH_DEBUG "Add the debugging module" ON)
2929
option(LIBXML2_WITH_HTML "Add the HTML support" ON)
30+
option(LIBXML2_WITH_HTTP "Add the HTTP support" OFF)
3031
option(LIBXML2_WITH_ICONV "Add ICONV support" ON)
3132
option(LIBXML2_WITH_ICU "Add ICU support" OFF)
3233
option(LIBXML2_WITH_ISO8859X "Add ISO8859X support if no iconv" ON)
3334
option(LIBXML2_WITH_LEGACY "Add deprecated APIs for compatibility" OFF)
35+
option(LIBXML2_WITH_LZMA "Use liblzma" OFF)
3436
option(LIBXML2_WITH_MODULES "Add the dynamic modules support" ON)
3537
option(LIBXML2_WITH_OUTPUT "Add the serialization support" ON)
3638
option(LIBXML2_WITH_PATTERN "Add the xmlPattern selection interface" ON)
@@ -47,12 +49,6 @@ option(LIBXML2_WITH_VALID "Add the DTD validation support" ON)
4749
option(LIBXML2_WITH_XINCLUDE "Add the XInclude support" ON)
4850
option(LIBXML2_WITH_XPATH "Add the XPATH support" ON)
4951

50-
cmake_dependent_option(
51-
LIBXML2_WITH_HTTP "Add the HTTP support" OFF
52-
"NOT LIBXML2_WITH_LEGACY" ON)
53-
cmake_dependent_option(
54-
LIBXML2_WITH_LZMA "Use liblzma" OFF
55-
"NOT LIBXML2_WITH_LEGACY" ON)
5652
cmake_dependent_option(
5753
LIBXML2_WITH_ZLIB "Use libz" OFF
5854
"NOT LIBXML2_WITH_LEGACY" ON)

configure.ac

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,6 @@ dnl
137137
dnl Legacy defaults
138138
dnl
139139
if test "$with_legacy" = "yes"; then
140-
if test "$with_http" = ""; then
141-
with_http=yes
142-
fi
143-
if test "$with_lzma" = ""; then
144-
with_lzma=yes
145-
fi
146140
if test "$with_zlib" = ""; then
147141
with_zlib=yes
148142
fi

meson.build

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ add_project_arguments(global_args, language: 'c')
8282
# options
8383

8484
# disabled by default
85+
want_http = get_option('http').enabled()
8586
want_icu = get_option('icu').enabled()
8687
want_legacy = get_option('legacy').enabled()
88+
want_lzma = get_option('lzma').enabled()
8789
want_thread_alloc = get_option('thread-alloc').enabled()
8890
want_tls = get_option('tls').enabled()
8991

@@ -126,12 +128,6 @@ want_xinclude = want_minimum ? feature.enabled() : feature.allowed()
126128

127129
# default depends on legacy option
128130

129-
feature = get_option('http')
130-
want_http = want_legacy ? feature.allowed() : feature.enabled()
131-
132-
feature = get_option('lzma')
133-
want_lzma = want_legacy ? feature.allowed() : feature.enabled()
134-
135131
feature = get_option('zlib')
136132
want_zlib = want_legacy ? feature.allowed() : feature.enabled()
137133

0 commit comments

Comments
 (0)