Initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
|
||||
Date: Wed, 4 Mar 2026 19:08:16 +0100
|
||||
Subject: [PATCH] catalog: Free xmlCatalogResolveCache on cleanup
|
||||
|
||||
Otherwise the `tstLastError.py` test will complain about a memory leak.
|
||||
|
||||
Fixes: b706c5c5b7ce11d002a5b77ff938aa3693931c12 (Add xmlCatalogResolveCache)
|
||||
Fixes: https://gitlab.gnome.org/GNOME/libxml2/-/issues/1069
|
||||
---
|
||||
catalog.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/catalog.c b/catalog.c
|
||||
index 8a5ca77a6ae1..bfaf099f47a4 100644
|
||||
--- a/catalog.c
|
||||
+++ b/catalog.c
|
||||
@@ -3338,6 +3338,7 @@ xmlCatalogCleanup(void) {
|
||||
if (xmlDebugCatalogs)
|
||||
xmlCatalogPrintDebug(
|
||||
"Catalogs cleanup\n");
|
||||
+ xmlResetCatalogResolveCache();
|
||||
if (xmlCatalogXMLFiles != NULL)
|
||||
xmlHashFree(xmlCatalogXMLFiles, xmlFreeCatalogHashEntryList);
|
||||
xmlCatalogXMLFiles = NULL;
|
||||
@@ -0,0 +1,62 @@
|
||||
[build]
|
||||
type = "meson"
|
||||
|
||||
[build.flags]
|
||||
build_dir = "build"
|
||||
configure = [
|
||||
"-Dhistory=enabled",
|
||||
"-Dicu=enabled",
|
||||
"-Dc_args=-D_GNU_SOURCE",
|
||||
]
|
||||
post_install = [
|
||||
'test -f $DESTDIR/usr/bin/xml2-config && sed "s/--static/--shared/" -i $DESTDIR/usr/bin/xml2-config || true',
|
||||
'test -f libxml.m4 && install -Dm644 libxml.m4 -t $DESTDIR/usr/share/aclocal || true',
|
||||
]
|
||||
build_32 = true
|
||||
|
||||
[dependencies]
|
||||
build = [
|
||||
"python",
|
||||
"meson",
|
||||
"ninja",
|
||||
]
|
||||
runtime = [
|
||||
"sh",
|
||||
"glibc",
|
||||
"icu78",
|
||||
"readline",
|
||||
"zlib-ng",
|
||||
]
|
||||
optional = [ "python" ]
|
||||
|
||||
[dependencies.lib32]
|
||||
build = [
|
||||
"python",
|
||||
"meson",
|
||||
"ninja",
|
||||
]
|
||||
runtime = [
|
||||
"lib32-glibc",
|
||||
"lib32-icu78",
|
||||
"lib32-readline",
|
||||
"lib32-zlib-ng",
|
||||
]
|
||||
|
||||
[package]
|
||||
description = "libraries and utilities used for parsing XML files"
|
||||
homepage = "https://gitlab.gnome.org/GNOME/libxml2"
|
||||
license = "MIT"
|
||||
name = "libxml215"
|
||||
version = "2.15.2"
|
||||
revision = 1
|
||||
|
||||
[[source]]
|
||||
extract_dir = "$name-$version"
|
||||
post_extract = ["""sed -i "/'git'/,+3d" meson.build"""]
|
||||
sha256 = "b2:e8adec751b6c8c8fd8358bee0c33159813601f6306b318314ffbf85324fa3ebeee2e838608a7fe365ffe4b82c4700f328fc27ae9a75cd7ed67cf256067542c2e"
|
||||
url = "https://download.gnome.org/sources/libxml2/2.15/libxml2-$version.tar.xz"
|
||||
patches = [ "0001-catalog-Free-xmlCatalogResolveCache-on-cleanup.patch" ]
|
||||
|
||||
[[manual_sources]]
|
||||
files = [ "0001-catalog-Free-xmlCatalogResolveCache-on-cleanup.patch" ]
|
||||
sha256 = "skip"
|
||||
Reference in New Issue
Block a user