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: 7eef26d512 ("python3: update to 3.14.10")

Signed-off-by: Joshua Covington <joshuacov@gmail.com>
This commit is contained in:
Joshua Covington authored and Alexandru Ardelean committed 2026-11-29 13:00:51 +02:00
1 parent 5ab7c340f6
commit d8a1dd76bd
1 file changed
+2 -2
+2 -2
View File
@@ -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