这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions packages/libxml2/backport-dc307e3-mandir-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From dc307e31fd1343934a66fabe3ba4b42f34ac63c0 Mon Sep 17 00:00:00 2001
From: Nick Wellnhofer <wellnhofer@aevum.de>
Date: Wed, 17 Sep 2025 11:10:51 +0200
Subject: [PATCH] meson: Fix install dir of man pages

Regressed when reworking documentation in 2.15.

Fixes #985.
---
doc/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/meson.build b/doc/meson.build
index 018b7d037..8cde254a9 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -31,7 +31,7 @@ if want_docs

xsltproc = find_program('xsltproc')
types = [
- [ 'manpages', '.1', dir_man ],
+ [ 'manpages', '.1', dir_man / 'man1' ],
[ 'html', '.html', dir_doc ],
]
programs = [ 'xmllint' ]
--
GitLab

49 changes: 36 additions & 13 deletions packages/libxml2/build.sh
Original file line number Diff line number Diff line change
@@ -1,27 +1,48 @@
TERMUX_PKG_HOMEPAGE=http://www.xmlsoft.org
TERMUX_PKG_HOMEPAGE=https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home
TERMUX_PKG_DESCRIPTION="Library for parsing XML documents"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="2.14.6"
TERMUX_PKG_VERSION="2.15.0"
TERMUX_PKG_SRCURL=https://download.gnome.org/sources/libxml2/${TERMUX_PKG_VERSION%.*}/libxml2-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=7ce458a0affeb83f0b55f1f4f9e0e55735dbfc1a9de124ee86fb4a66b597203a
TERMUX_PKG_SHA256=5abc766497c5b1d6d99231f662e30c99402a90d03b06c67b62d6c1179dedd561
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_SETUP_PYTHON=true
# disabled due to compiler warnings
# -Dthread-alloc=enabled
# -Dtls=enabled
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--with-http
--with-legacy
--with-python
-Ddocs=enabled
-Dhttp=enabled
-Dicu=enabled
-Dlegacy=enabled
"
TERMUX_PKG_RM_AFTER_INSTALL="share/gtk-doc"
TERMUX_PKG_DEPENDS="libiconv, liblzma, zlib"
TERMUX_PKG_BUILD_DEPENDS="python"
# Python bindings
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+="
-Dpython=enabled
"
# `xmllint` history support
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+="
-Dhistory=enabled
-Dreadline=enabled
"
TERMUX_PKG_RM_AFTER_INSTALL="
share/doc/libxml2/html
share/doc/libxml2/xmlcatalog.html
share/doc/libxml2/xmllint.html
"
TERMUX_PKG_DEPENDS="libiconv, libicu, zlib"
TERMUX_PKG_BUILD_DEPENDS="python, readline"
TERMUX_PKG_BREAKS="libxml2-dev"
TERMUX_PKG_REPLACES="libxml2-dev"

termux_step_pre_configure() {
# SOVERSION suffix is needed for SONAME of shared libs to avoid conflict
# with system ones (in /system/lib64 or /system/lib):
sed -i 's/^\(linux\*android\)\*)/\1-notermux)/' configure
termux_step_configure() {
# This directory is usually made by doxygen
# and python/generator.py expects it to be there.
mkdir -p "$TERMUX_PKG_BUILDDIR/python/doc/xml"
# # SOVERSION suffix is needed for SONAME of shared libs to avoid conflict
# # with system ones (in /system/lib64 or /system/lib):
export TERMUX_MESON_ENABLE_SOVERSION=1
termux_step_configure_meson
}

termux_step_post_massage() {
Expand All @@ -30,6 +51,8 @@ termux_step_post_massage() {
termux_error_exit "SONAME for libxml2.so is not properly set."
fi

# If this has been bumped, remember to rebuild all reverse dependencies of libxml2!
# `./scripts/bin/revbump --dependencies libxml2` can find them for you.
local _SOVERSION=16
if [[ ! -e "lib/libxml2.so.${_SOVERSION}" ]]; then
echo "ERROR - Expected: lib/libxml2.so.${_SOVERSION}" >&2
Expand Down
6 changes: 0 additions & 6 deletions packages/libxml2/libxml2-python-static.subpackage.sh

This file was deleted.

1 change: 0 additions & 1 deletion packages/libxml2/libxml2-python.subpackage.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
TERMUX_SUBPKG_INCLUDE="
lib/python*
share/doc/libxml2/python/
"
TERMUX_SUBPKG_DESCRIPTION="Python bindings for libxml2"
TERMUX_SUBPKG_DEPENDS="python"
8 changes: 7 additions & 1 deletion packages/libxml2/libxml2-utils.subpackage.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
TERMUX_SUBPKG_INCLUDE="bin/xmllint bin/xmlcatalog share/man/man1/xmllint.1.gz share/man/man1/xmlcatalog.1.gz"
TERMUX_SUBPKG_INCLUDE="
bin/xmllint
bin/xmlcatalog
share/man/man1/xmllint.1.gz
share/man/man1/xmlcatalog.1.gz
"
TERMUX_SUBPKG_DESCRIPTION="XML utilities"
TERMUX_SUBPKG_DEPENDS="readline"
TERMUX_SUBPKG_PROVIDES="xmllint"
21 changes: 21 additions & 0 deletions packages/libxml2/no-doxygen.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff --git a/doc/meson.build b/doc/meson.build
index 018b7d03..327aab3e 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -1,6 +1,6 @@
# Doxygen

-doxygen = find_program('doxygen')
+doxygen = find_program('true')

# TODO: To make the xml directory work as dependency of the
# Python target, we must make sure that its timestamp changes
@@ -18,7 +18,7 @@ doxygen_docs = custom_target(
'SOURCE_ROOT': meson.project_source_root() + '/',
'BUILD_ROOT': meson.project_build_root() + '/',
},
- install: true,
+ install: false,
install_dir: [ want_docs ? dir_doc : false, false ],
)