From e5034806063ce83b471caabc669080bef6c28f61 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Sun, 14 Jun 2026 09:13:10 +0300 Subject: [PATCH] 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 --- lang/python/python3/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index e53b85fc11..1fbb2b6a70 100644 --- a/lang/python/python3/Makefile +++ b/lang/python/python3/Makefile @@ -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