Skip to content

cache restores symlinks as regular files #1362

Closed

Description

@bdbaddog

This issue was originally created at: 2006-02-23 01:12:13.
This issue was reported by: alefbet.
alefbet said at 2006-02-23 01:12:13

When CacheDir() is used in a SConstruct/SConscript with
targets that are symbolic links in a Unix-like
environment, the cache does not restore the symlink on
subsequent builds, but instead places a copy of the
original referent at the target location.

Consider the following SConstruct:

CacheDir("cache")
Command("dummyfile2.txt", "dummyfile.txt", "ln -s
$SOURCE $TARGET")

(with a simple "dummyfile.txt") and the following
command sequence:

scons
scons --clean
scons

After the first run of scons, "dummyfile2.txt" is a
symbolic link to "dummyfile.txt", which is what is
desired. However, after "dummyfile2.txt" is removed
and replaced by the other scons calls, "dummyfile2.txt"
is now a copy of "dummyfile.txt".

I believe the correct behavior should be to ensure that
files which are built as symbolic links should remain
symbolic links with or without caching.

issues@scons said at 2006-02-23 01:12:13

Converted from SourceForge tracker item 1437284

stevenknight said at 2007-05-23 11:56:32

Fixed for next release.

Votes for this issue: 3.

stevenknight said this issue blocks #1664 at 2007-05-23 11:56:32.

Activity

  1. added this to the 0.97.1 milestone on Jan 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions