Skip to content

Allow build caches for packages with broken symlinks#9733

Closed
scheibelp wants to merge 1 commit intospack:developfrom
scheibelp:bugfix/buildcache-broken-symlinks
Closed

Allow build caches for packages with broken symlinks#9733
scheibelp wants to merge 1 commit intospack:developfrom
scheibelp:bugfix/buildcache-broken-symlinks

Conversation

@scheibelp
Copy link
Copy Markdown
Member

if a package install generates broken symlinks, avoid doing a 'strings' check on them, as it will fail; print a warning instead

At some level this addresses a symptom rather than a cause: should package be considered installed by Spack if it contains broken symlinks? Probably not.

… on them, as it will fail; print a warning instead
@scheibelp
Copy link
Copy Markdown
Member Author

@scottwittenburg

dirs[:] = [d for d in dirs if d not in blacklist]
for filename in files:
path_name = os.path.join(root, filename)
try:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should probably add why this extra handling is warranted

@scheibelp
Copy link
Copy Markdown
Member Author

There are other efforts to fix the symlinks etc. so I don't think this is the best approach

@scheibelp scheibelp closed this Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants