python3: fix host PGO build failure on deep build paths

Python 3.14 made "forkserver" the default multiprocessing start method on
Linux, which binds an AF_UNIX socket under $TMPDIR during the PGO profile-run.
OpenWrt points TMPDIR at the deeply nested build tree, so the socket path can
exceed the 108-byte AF_UNIX limit and abort the host build with "AF_UNIX path
too long" in test_re (cpython#149527). Pin TMPDIR=/tmp for the host build.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
Alexandru Ardelean
2026-06-14 09:13:10 +03:00
committed by Alexandru Ardelean
parent 72c8d3ee34
commit e503480606
+3
View File
@@ -287,6 +287,9 @@ Package/python3/install:=:
ifeq ($(HOST_OS),Linux)
HOST_LDFLAGS += \
-Wl,--no-as-needed -lrt
HOST_MAKE_VARS += \
TMPDIR=/tmp
endif
# Would be nice to be able to do this, but hosts are very fiddly