mirror of
https://github.com/openwrt/packages.git
synced 2026-06-17 14:50:07 +04:00
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:
committed by
Alexandru Ardelean
parent
72c8d3ee34
commit
e503480606
@@ -287,6 +287,9 @@ Package/python3/install:=:
|
|||||||
ifeq ($(HOST_OS),Linux)
|
ifeq ($(HOST_OS),Linux)
|
||||||
HOST_LDFLAGS += \
|
HOST_LDFLAGS += \
|
||||||
-Wl,--no-as-needed -lrt
|
-Wl,--no-as-needed -lrt
|
||||||
|
|
||||||
|
HOST_MAKE_VARS += \
|
||||||
|
TMPDIR=/tmp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Would be nice to be able to do this, but hosts are very fiddly
|
# Would be nice to be able to do this, but hosts are very fiddly
|
||||||
|
|||||||
Reference in New Issue
Block a user