Ports: Update libxml2 to 2.15.4

This commit is contained in:
Linus Groh authored and Lucas Chollet committed 2026-09-20 22:00:14 +02:00
1 parent af02c2b628
commit d9c2fbb573
4 files changed
+3 -93

No files matched your search

+1 -1
View File
@@ -192,7 +192,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`libuv`](libuv/) | libuv | 1.52.1 | https://github.com/libuv/libuv |
| [`libvorbis`](libvorbis/) | libvorbis | 1.3.7 | https://github.com/xiph/vorbis |
| [`libwebp`](libwebp/) | libwebp | 1.3.1 | https://github.com/webmproject/libwebp |
| [`libxml2`](libxml2/) | libxml2 | 2.11.5 | http://www.xmlsoft.org/ |
| [`libxml2`](libxml2/) | libxml2 | 2.15.4 | http://www.xmlsoft.org/ |
| [`libxmp`](libxmp/) | libxmp | 4.6.1 | https://github.com/libxmp/libxmp |
| [`libyaml`](libyaml/) | libyaml | 0.2.5 | https://pyyaml.org/wiki/LibYAML |
| [`libzip`](libzip/) | libzip | 1.10.1 | https://libzip.org/ |
+2 -3
View File
@@ -1,11 +1,10 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='libxml2'
version='2.11.5'
version='2.15.4'
files=(
"https://download.gnome.org/sources/libxml2/2.11/libxml2-${version}.tar.xz#3727b078c360ec69fa869de14bd6f75d7ee8d36987b071e6928d4720a28df3a6"
"https://download.gnome.org/sources/libxml2/2.15/libxml2-${version}.tar.xz#98087fd181d9070724f3fbc65c7377db03038eb92bd882374daff44940138821"
)
useconfigure='true'
use_fresh_config_sub='true'
configopts=(
"--with-sysroot=${SERENITY_INSTALL_ROOT}"
'--prefix=/usr/local'
@@ -1,73 +0,0 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tim Schumacher <[email protected]>
Date: Sun, 29 May 2022 15:01:28 +0200
Subject: [PATCH] libtool: Enable shared library support for SerenityOS
For some odd reason, libtool handles the configuration for shared
libraries entirely statically and in its configure script. If no
shared library support is "present", building shared libraries is
disabled entirely.
Fix that by just adding the appropriate configuration options for
`serenity`. This allows us to finally create dynamic libraries
automatically using libtool, without having to manually link the
static library into a shared library.
---
configure | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/configure b/configure
index 05bb3f947eb9c9d63a76882d0c867d71bc7eea19..b4573c8b960799056534ec9f85519aa8ec6cd84a 100755
--- a/configure
+++ b/configure
@@ -6540,6 +6540,10 @@ tpf*)
os2*)
lt_cv_deplibs_check_method=pass_all
;;
+
+serenity*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
esac
fi
@@ -9713,6 +9717,10 @@ lt_prog_compiler_static=
lt_prog_compiler_static='-Bstatic'
;;
+ serenity*)
+ lt_prog_compiler_can_build_shared=yes
+ ;;
+
*)
lt_prog_compiler_can_build_shared=no
;;
@@ -11247,6 +11255,10 @@ printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
hardcode_shlibpath_var=no
;;
+ serenity*)
+ ld_shlibs=yes
+ ;;
+
*)
ld_shlibs=no
;;
@@ -12331,6 +12343,17 @@ uts4*)
shlibpath_var=LD_LIBRARY_PATH
;;
+serenity*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}${versuffix} ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}${major}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ dynamic_linker='SerenityOS LibELF'
+ ;;
+
*)
dynamic_linker=no
;;
-16
View File
@@ -1,16 +0,0 @@
# Patches for libxml2 on SerenityOS
## `0001-libtool-Enable-shared-library-support-for-SerenityOS.patch`
libtool: Enable shared library support for SerenityOS
For some odd reason, libtool handles the configuration for shared
libraries entirely statically and in its configure script. If no
shared library support is "present", building shared libraries is
disabled entirely.
Fix that by just adding the appropriate configuration options for
`serenity`. This allows us to finally create dynamic libraries
automatically using libtool, without having to manually link the
static library into a shared library.