summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Marsh <chrismarsh.c2@gmail.com>2024-02-09 14:04:05 -0600
committerGitHub <noreply@github.com>2024-02-09 12:04:05 -0800
commit6dd19594ab1cbcd20ee0de73529ca94fc25b7396 (patch)
tree97ce73e9f65e3e2324b06958780e4eedd98d8438
parent4f0a8fce524fccadab392b35d3403945daae07fd (diff)
downloadspack-6dd19594ab1cbcd20ee0de73529ca94fc25b7396.tar.gz
spack-6dd19594ab1cbcd20ee0de73529ca94fc25b7396.tar.bz2
spack-6dd19594ab1cbcd20ee0de73529ca94fc25b7396.tar.xz
spack-6dd19594ab1cbcd20ee0de73529ca94fc25b7396.zip
Resolve unzip build failure with %oneapi (#42593)
* apply patch to all compilers as per spack/issues/42007 * [@spackbot] updating style on behalf of Chrismarsh * Resolve flake8 style issue from spackbot * fix flake8 trailing whitespace --------- Co-authored-by: Chrismarsh <Chrismarsh@users.noreply.github.com>
-rw-r--r--var/spack/repos/builtin/packages/unzip/package.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/unzip/package.py b/var/spack/repos/builtin/packages/unzip/package.py
index 39deb4e6c0..553a3da298 100644
--- a/var/spack/repos/builtin/packages/unzip/package.py
+++ b/var/spack/repos/builtin/packages/unzip/package.py
@@ -16,7 +16,9 @@ class Unzip(MakefilePackage):
version("6.0", sha256="036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37")
- patch("configure-cflags.patch", when="%clang@16:")
+ # clang and oneapi need this patch, likely others
+ # There is no problem with it on gcc, so make it a catch all
+ patch("configure-cflags.patch")
# The Cray cc wrapper doesn't handle the '-s' flag (strip) cleanly.
@when("platform=cray")
@@ -27,9 +29,8 @@ class Unzip(MakefilePackage):
make_args = ["-f", join_path("unix", "Makefile")]
cflags = []
- if self.spec.satisfies("%clang@16:"):
- cflags.append("-Wno-error=implicit-function-declaration")
- cflags.append("-Wno-error=implicit-int")
+ cflags.append("-Wno-error=implicit-function-declaration")
+ cflags.append("-Wno-error=implicit-int")
cflags.append("-DLARGE_FILE_SUPPORT")
make_args.append('LOC="{}"'.format(" ".join(cflags)))