spack/lib/spack
Patrick Gartung 1d4289afdd
This fixes a problem where the placeholder path was not in the first rpath entry.
* Rework of buildcache creation and install prefix checking using the functions introduced in
https://github.com/spack/spack/pull/9199

Instead of replacing rpaths with placeholder and then checking strings, make use of the functions
relocate.is_recocatable and relocate.is_file_relocatable to decide if a package needs the allow-root option.

This fixes a problem where the placeholder path was not in the first rpath entry. This was seen in c++ libraries and binaries because the compiler was outside the spack install base path and always appears first in the rpath.

Instead of checking the first rpath entry, all rpaths have the placeholder path and the old install path (if it exists) replaced with the new install path.

* flake8
2019-03-01 07:47:26 -06:00
..
docs add CombinatorialSpecSet class for taking cross-products of Specs. 2019-02-21 15:37:35 -06:00
env Use Package.headers for -I options (#10623) 2019-02-26 12:42:30 -06:00
external copyright: update license headers for 2013-2019 copyright. 2019-01-01 00:44:28 -08:00
llnl Added a sub-command to show if packages are relocatable (#9199) 2019-02-28 15:36:47 -06:00
spack This fixes a problem where the placeholder path was not in the first rpath entry. 2019-03-01 07:47:26 -06:00