summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorG-Ragghianti <33492707+G-Ragghianti@users.noreply.github.com>2022-06-14 09:06:06 -0400
committerGitHub <noreply@github.com>2022-06-14 15:06:06 +0200
commitbf6220821bca6e15d6a2c57780c94b8d0abd1d93 (patch)
tree0b147ab03a1bad00e32b63eb51effc6786d7185f /lib
parent3db96aa8922519dd04d6996e2ac585812f5edf0c (diff)
downloadspack-bf6220821bca6e15d6a2c57780c94b8d0abd1d93.tar.gz
spack-bf6220821bca6e15d6a2c57780c94b8d0abd1d93.tar.bz2
spack-bf6220821bca6e15d6a2c57780c94b8d0abd1d93.tar.xz
spack-bf6220821bca6e15d6a2c57780c94b8d0abd1d93.zip
Make the IntelPackage fail successfully (#30773)
Co-authored-by: Robert Cohn <rscohn2@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/intel.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/spack/spack/build_systems/intel.py b/lib/spack/spack/build_systems/intel.py
index aeb3f861c1..a249afff90 100644
--- a/lib/spack/spack/build_systems/intel.py
+++ b/lib/spack/spack/build_systems/intel.py
@@ -1260,6 +1260,14 @@ class IntelPackage(PackageBase):
install(f, dst)
@run_after('install')
+ def validate_install(self):
+ # Sometimes the installer exits with an error but doesn't pass a
+ # non-zero exit code to spack. Check for the existence of a 'bin'
+ # directory to catch this error condition.
+ if not os.path.exists(self.prefix.bin):
+ raise InstallError('The installer has failed to install anything.')
+
+ @run_after('install')
def configure_rpath(self):
if '+rpath' not in self.spec:
return