Added a sub-command to show if packages are relocatable (#9199)
* Added the `spack buildcache preview` sub-command This is similar to `spack spec -I` but highlights which nodes in a DAG are relocatable and which are not. spec.tree has been generalized a little to accept a status function, instead of always showing the install status The current implementation works only for ELF, and needs to be generalized to other platforms. * Added a test to check if an executable is relocatable or not This test requires a few commands to be present in the environment. Currently it will run only under python 3.7 (which uses Xenial instead of Trusty). * Added tests for the 'buildcache preview' command. * Fixed codebase after rebase * Fixed the list of apt addons for Python 3.7 in travis.yaml * Only check ELF executables and shared libraries. Skip checking virtual or external packages. (#229) * Fixed flake8 issues * Add handling for macOS mach binaries (#231)
Showing
- .travis.yml 18 additions, 0 deletions.travis.yml
- lib/spack/llnl/util/lang.py 1 addition, 1 deletionlib/spack/llnl/util/lang.py
- lib/spack/spack/cmd/buildcache.py 34 additions, 6 deletionslib/spack/spack/cmd/buildcache.py
- lib/spack/spack/cmd/spec.py 9 additions, 5 deletionslib/spack/spack/cmd/spec.py
- lib/spack/spack/environment.py 4 additions, 2 deletionslib/spack/spack/environment.py
- lib/spack/spack/relocate.py 131 additions, 7 deletionslib/spack/spack/relocate.py
- lib/spack/spack/spec.py 4 additions, 4 deletionslib/spack/spack/spec.py
- lib/spack/spack/test/cmd/buildcache.py 21 additions, 0 deletionslib/spack/spack/test/cmd/buildcache.py
- lib/spack/spack/test/data/templates/non_relocatable.c 5 additions, 0 deletionslib/spack/spack/test/data/templates/non_relocatable.c
- lib/spack/spack/test/data/templates/relocatable.c 5 additions, 0 deletionslib/spack/spack/test/data/templates/relocatable.c
- lib/spack/spack/test/relocate.py 95 additions, 0 deletionslib/spack/spack/test/relocate.py
Loading
Please register or sign in to comment