From 6ca013c4cda96fb2060a6bd8f4f76a1fe77bb262 Mon Sep 17 00:00:00 2001 From: termux-pacman-bot Date: Sun, 18 Jan 2026 12:07:40 +0000 Subject: [PATCH] fix(main/glib): apply `TERMUX_PKG_SETUP_PYTHON=true` - This fixes a failure to detect the correct Python headers if `python3-dev` was installed in Ubuntu before cross-compiling this package, resulting in the inclusion of `/usr/include/python3.12` instead of `$TERMUX_PREFIX/include/python3.12` and build errors as a result. - `python3-dev` is not installed by default in the termux-package-builder docker container, but it is installed by default in GitHub Actions and is not removed by `scripts/free-space.sh`, so non-Docker builds of `glib` in GitHub Actions alongside packages that are in `big-pkgs.list` can be affected unless this fix is applied. --- packages/glib/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/glib/build.sh b/packages/glib/build.sh index 5e6ee8f9cf..aad9a5e857 100644 --- a/packages/glib/build.sh +++ b/packages/glib/build.sh @@ -3,10 +3,12 @@ TERMUX_PKG_DESCRIPTION="Library providing core building blocks for libraries and TERMUX_PKG_LICENSE="LGPL-2.1" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION="2.86.3" -TERMUX_PKG_SRCURL=https://download.gnome.org/sources/glib/${TERMUX_PKG_VERSION%.*}/glib-${TERMUX_PKG_VERSION}.tar.xz +TERMUX_PKG_REVISION=1 +TERMUX_PKG_SRCURL="https://download.gnome.org/sources/glib/${TERMUX_PKG_VERSION%.*}/glib-${TERMUX_PKG_VERSION}.tar.xz" TERMUX_PKG_SHA256=b3211d8d34b9df5dca05787ef0ad5d7ca75dec998b970e1aab0001d229977c65 TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_DEPENDS="libandroid-support, libffi, libiconv, pcre2, resolv-conf, zlib, python" +TERMUX_PKG_SETUP_PYTHON=true TERMUX_PKG_BREAKS="glib-dev, glib-bin" TERMUX_PKG_REPLACES="glib-dev, glib-bin" TERMUX_PKG_VERSIONED_GIR=false