Files
packages/devel/scons/patches/001-platform_env.patch
T
Russell Senior 636c12c124 scons: recent update failed to update a patch
The recent commit 048a5088c5 updated
scons to 4.10.1, but neglected to correct a version related path in
a patch. This fixes that oversight, so that scons hostpkg builds
again. Also, fix up fuzz in the patches.

Signed-off-by: Russell Senior <russell@personaltelco.net>
2026-05-11 17:50:52 +03:00

12 lines
374 B
Diff

--- a/scons-local-4.10.1/SCons/Platform/__init__.py
+++ b/scons-local-4.10.1/SCons/Platform/__init__.py
@@ -69,6 +69,8 @@ def platform_default():
care about the machine architecture.
"""
osname = os.name
+ if 'PLATFORM' in os.environ:
+ return os.environ['PLATFORM']
if osname == 'java':
osname = os._osType
if osname == 'posix':