From d8a1dd76bd40dc24ae129558546ed51892c25a97 Mon Sep 17 00:00:00 2001 From: Joshua Covington Date: Sat, 28 Nov 2026 14:29:23 +0000 Subject: [PATCH] python3: fix python-config prefix with 3.14.10 Python 3.14.10 turned the prefix_real line in python-config into prefix_real=$(installed_prefix "$0") || { printf '%s\n' "$0: cannot determine the installation prefix" >&2 exit 1 } The sed in Build/InstallDev replaces the whole first line, so the error and "exit 1" now always run and the staged python3.14-config fails for every option. freeradius3 with rlm_python3 then fails to build: rlm_python3.c:38:10: fatal error: Python.h: No such file or directory Only replace the assignment. This works with both the old and the new form of the line. Fixes: 7eef26d5122e ("python3: update to 3.14.10") Signed-off-by: Joshua Covington --- lang/python/python3/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index 258a5685a2..fd2686a46c 100644 --- a/lang/python/python3/Makefile +++ b/lang/python/python3/Makefile @@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk include ../python3-version.mk PKG_NAME:=python3 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO) PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz @@ -227,7 +227,7 @@ define Build/InstallDev $(PKG_INSTALL_DIR)/usr/bin/python$(PYTHON3_VERSION)-config \ $(2)/bin/ $(SED) \ - 's|^prefix_real=.*$$$$|prefix_real="$(PYTHON3_DIR)"|' \ + 's|^prefix_real=[^|]*|prefix_real="$(PYTHON3_DIR)"|' \ $(2)/bin/python$(PYTHON3_VERSION)-config endef