Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: native_client_sdk/src/tools/lib/get_shared_deps.py

Issue 341983002: [NaCl SDK] Fix create_nmf on dynamic bionic nexes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/tools/lib/get_shared_deps.py
diff --git a/native_client_sdk/src/tools/lib/get_shared_deps.py b/native_client_sdk/src/tools/lib/get_shared_deps.py
index 99a5884bdd26b66a32634cc9da9df343a5d6d895..b7b433f1d5b2671023f35be33b025cb41b818a01 100644
--- a/native_client_sdk/src/tools/lib/get_shared_deps.py
+++ b/native_client_sdk/src/tools/lib/get_shared_deps.py
@@ -21,6 +21,9 @@ import subprocess
import elf
+SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
+SDK_DIR = os.path.dirname(os.path.dirname(SCRIPT_DIR))
+
NeededMatcher = re.compile('^ *NEEDED *([^ ]+)\n$')
FormatMatcher = re.compile('^(.+):\\s*file format (.+)\n$')
@@ -211,7 +214,8 @@ def _FindLibsInPath(name, lib_path):
# TODO(noelallen): Remove this once the SONAME in bionic is made to be
# unique in the same it is under glibc:
# https://code.google.com/p/nativeclient/issues/detail?id=3833
- if name == 'libc.so' and 'bionic' not in dirname:
+ rel_dirname = os.path.relpath(dirname, SDK_DIR)
+ if name == 'libc.so' and 'bionic' not in rel_dirname:
Sam Clegg 2014/06/18 18:21:30 Why not just update the check to "_arm_bionic"? T
binji 2014/06/18 18:29:35 Because the problem would pop up again if the user
Sam Clegg 2014/06/18 18:36:23 Ok. I guess I was thinking that this check horrib
binji 2014/06/18 18:39:51 You're right, it's a hack either way. :) The real
continue
filename = os.path.join(dirname, name)
if os.path.exists(filename):

Powered by Google App Engine
This is Rietveld 408576698