enable spack core code to depend on the output of a spack build #20530
Labels
bootstrap
Anything that has to do with Spack building its own dependencies.
bug
Something isn't working
build
Issues with general build capability
build-environment
concretizer-use-case
interesting dependency hierarchy that would challenge the current concretizer
feature
vendored-dependencies
Spack doesn't seem to have a concept of "detecting" or "installing" binaries (like
xz
) that it assumes are available on the PATH in the interstitial code that runs before and after package build steps. This means that it fails with very opaque error messages in situations that Spack itself can fix!This ticket would likely be a good prequel to #20523, because this ticket focuses more on fixing a weird inconsistency than trying to develop an alternative model for types of dependencies as in #20523.
Rationale
Spack isn't currently able to detect that it needs to build
xz
when pulling down a.tar.xz
package if it's being run on e.g. a bare centos6. On ourspack/centos6
container, I can get the following error message (for a different missing executable:bzip2
), which is remarkably opaque if you haven't seen it before:Description
Chronologically, this is how I approached the issue:
git
,xz
,bz2
,gcc{,-c++}
,python{,-devel}
, a couple more? -- i am pretty sure it failed onmake
becausemake
wasn't a high enough version.git
and then use spack to install the rest.Implementation
Implementing this might take the form of:
setup-env.sh
which may run another spack instance?The text was updated successfully, but these errors were encountered: