1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-05 03:19:18 -04:00
ports/devel/scons/files/patch-script-SConscript.py
Pav Lucistnik bf708b7ae2 - Add patches to fix build of blender-devel. Other scons using ports
were tested to continue working.

PR:		ports/79064
Submitted by:	Michal Varga <varga@stonehenge.sk>
Approved by:	maintainer timeout (14 days)
Obtained from:	scons CVS
2005-04-04 21:57:07 +00:00

30 lines
1 KiB
Python

--- engine/SCons/Script/SConscript.py.orig Wed Feb 16 03:12:11 2005
+++ engine/SCons/Script/SConscript.py Thu Mar 17 14:07:00 2005
@@ -55,6 +55,16 @@
import types
import UserList
+# The following variables used to live in this module. Some
+# SConscript files out there may have referred to them directly as
+# SCons.Script.SConscript.*. This is now supported by some special
+# handling towards the bottom of the SConscript.__init__.py module.
+#Arguments = {}
+#ArgList = []
+#BuildTargets = TargetList()
+#CommandLineTargets = []
+#DefaultTargets = []
+
launch_dir = os.path.abspath(os.curdir)
GlobalDict = None
@@ -230,7 +240,9 @@
# Repository directory. Like above, we do this
# directly.
fs.chdir(frame.prev_dir, change_os_dir=0)
- os.chdir(frame.prev_dir.rdir().get_abspath())
+ rdir = frame.prev_dir.rdir()
+ rdir._create() # Make sure there's a directory there.
+ os.chdir(rdir.get_abspath())
results.append(frame.retval)