- Add $RPATH (-R) support to the Sun linker Tool (sunlink).
+ From Chris Prince:
+
+ - Look in the right directory, not always the local directory, for a
+ same-named file or directory conflict on disk.
+
From Kevin Quick:
- Fix the Builder name returned from ListBuilders and other instances
# look at the actual filesystem and make sure there isn't
# a file already there
- path = directory.entry_path(orig)
+ path = directory.entry_abspath(orig)
if self.isfile(path):
raise TypeError, \
"File %s found where directory expected." % path
# make sure we don't create File nodes when there is actually
# a directory at that path on the disk, and vice versa
- path = directory.entry_path(last_orig)
+ path = directory.entry_abspath(last_orig)
if fsclass == File:
if self.isdir(path):
raise TypeError, \
t = z.target_from_source('pre-', '-suf', lambda x: x[:-1])
assert str(t) == 'pre-z-suf', str(t)
+ def test_same_name(self):
+ """Test that a local same-named file isn't found for # Dir lookup"""
+ test = self.test
+ fs = self.fs
+
+ test.subdir('subdir')
+ test.write(['subdir', 'build'], "subdir/build\n")
+
+ subdir = fs.Dir('subdir')
+ fs.chdir(subdir, change_os_dir=1)
+ path, dir = fs._transformPath('#build/file', subdir)
+ self.fs._doLookup(SCons.Node.FS.File, path, dir)
+
def test_above_root(self):
"""Testing looking up a path above the root directory"""
test = self.test