Skip to content

Commit

Permalink
allow whitelisting runpath entries
Browse files Browse the repository at this point in the history
  • Loading branch information
msarahan committed Aug 9, 2018
1 parent 1401db6 commit 1c01df3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion conda_build/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ def print_msg(errors, text):
'/System/Library/Frameworks/SystemConfiguration.framework/*',
'/System/Library/Frameworks/WebKit.framework/*']
whitelist += m.meta.get('build', {}).get('missing_dso_whitelist') or []
runpath_whitelist = m.meta.get('build', {}).get('runpath_whitelist') or []
for f in files:
path = os.path.join(m.config.host_prefix, f)
if not codefile_type(path):
Expand All @@ -495,7 +496,9 @@ def print_msg(errors, text):
except:
print_msg(errors, '{}: pyldd.py failed to process'.format(warn_prelude))
continue
if len(runpaths):
whitelisted_files_with_runpath = {fnmatch.fnmatch(path, w) for w in runpath_whitelist}
disallowed_runpaths = set(runpaths) - whitelisted_files_with_runpath
if disallowed_runpaths:
print_msg(errors, '{}: runpaths {} found in {}'.format(msg_prelude,
runpaths,
path))
Expand Down

0 comments on commit 1c01df3

Please sign in to comment.