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

Side by Side Diff: third_party/instrumented_libraries/download_build_install.py

Issue 894723002: Instrumented libraries: fix flaky error in libpci3 build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Downloads, builds (with instrumentation) and installs shared libraries.""" 6 """Downloads, builds (with instrumentation) and installs shared libraries."""
7 7
8 import argparse 8 import argparse
9 import os 9 import os
10 import platform 10 import platform
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 'mkdir -p %s-udeb/usr/bin' % destdir, 216 'mkdir -p %s-udeb/usr/bin' % destdir,
217 'make -j%s %s' % (parsed_arguments.jobs, ' '.join(make_args + paths)), 217 'make -j%s %s' % (parsed_arguments.jobs, ' '.join(make_args + paths)),
218 'make -j%s %s install' % ( 218 'make -j%s %s install' % (
219 parsed_arguments.jobs, 219 parsed_arguments.jobs,
220 ' '.join(install_args + paths))], 220 ' '.join(install_args + paths))],
221 parsed_arguments.verbose, environment) 221 parsed_arguments.verbose, environment)
222 fix_rpaths(destdir) 222 fix_rpaths(destdir)
223 # Now move the contents of the temporary destdir to their final place. 223 # Now move the contents of the temporary destdir to their final place.
224 run_shell_commands([ 224 run_shell_commands([
225 'cp %s/* %s/ -rd' % (destdir, install_prefix), 225 'cp %s/* %s/ -rd' % (destdir, install_prefix),
226 'mkdir -p %s/lib/' % install_prefix,
226 'install -m 644 lib/libpci.so* %s/lib/' % install_prefix, 227 'install -m 644 lib/libpci.so* %s/lib/' % install_prefix,
227 'ln -sf libpci.so.%s %s/lib/libpci.so.3' % (version, install_prefix)], 228 'ln -sf libpci.so.%s %s/lib/libpci.so.3' % (version, install_prefix)],
228 parsed_arguments.verbose, environment) 229 parsed_arguments.verbose, environment)
229 230
230 231
231 def build_and_install(parsed_arguments, environment, install_prefix): 232 def build_and_install(parsed_arguments, environment, install_prefix):
232 if parsed_arguments.build_method == 'destdir': 233 if parsed_arguments.build_method == 'destdir':
233 destdir_configure_make_install( 234 destdir_configure_make_install(
234 parsed_arguments, environment, install_prefix) 235 parsed_arguments, environment, install_prefix)
235 elif parsed_arguments.build_method == 'custom_nss': 236 elif parsed_arguments.build_method == 'custom_nss':
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 os.chdir(SCRIPT_ABSOLUTE_PATH) 392 os.chdir(SCRIPT_ABSOLUTE_PATH)
392 # Ensure all build dependencies are installed. 393 # Ensure all build dependencies are installed.
393 if parsed_arguments.check_build_deps: 394 if parsed_arguments.check_build_deps:
394 check_package_build_dependencies(parsed_arguments.package) 395 check_package_build_dependencies(parsed_arguments.package)
395 396
396 download_build_install(parsed_arguments) 397 download_build_install(parsed_arguments)
397 398
398 399
399 if __name__ == '__main__': 400 if __name__ == '__main__':
400 main() 401 main()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698