diff options
author | Zach van Rijn <me@zv.io> | 2023-11-04 14:08:39 +0000 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2023-11-04 14:14:57 +0000 |
commit | 39d9d4a84fb8780da4228289daf423aaf28d739f (patch) | |
tree | d859c27c83d7dc0b8cf5ce7dc3747ec29d0f78a0 /user/spack/openssl-explicit-linux-headers.patch | |
parent | 626845ccad5cd97951ffe658d0580e3c20255644 (diff) | |
download | packages-39d9d4a84fb8780da4228289daf423aaf28d739f.tar.gz packages-39d9d4a84fb8780da4228289daf423aaf28d739f.tar.bz2 packages-39d9d4a84fb8780da4228289daf423aaf28d739f.tar.xz packages-39d9d4a84fb8780da4228289daf423aaf28d739f.zip |
user/spack: fix broken 'linux-headers' package.
See: https://github.com/spack/spack/issues/40334
Also:
* Upstream Spack assumes that 'linux-headers' is
always installed on the system, since it is a
dependency of glibc. As 'openssl' requires it,
make the dependency explicit. There are likely
many more occurrences of this that should be
reported and fixed upstream.
Diffstat (limited to 'user/spack/openssl-explicit-linux-headers.patch')
-rw-r--r-- | user/spack/openssl-explicit-linux-headers.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/user/spack/openssl-explicit-linux-headers.patch b/user/spack/openssl-explicit-linux-headers.patch new file mode 100644 index 000000000..763be9df3 --- /dev/null +++ b/user/spack/openssl-explicit-linux-headers.patch @@ -0,0 +1,12 @@ +diff --git a/var/spack/repos/builtin/packages/openssl/package.py b/var/spack/repos/builtin/packages/openssl/package.py +index 21b076856a..e73c60a7c1 100644 +--- a/var/spack/repos/builtin/packages/openssl/package.py ++++ b/var/spack/repos/builtin/packages/openssl/package.py +@@ -380,6 +380,7 @@ class Openssl(Package): # Uses Fake Autotools, should subclass Package + depends_on("perl@5.14.0:", type=("build", "test")) + depends_on("ca-certificates-mozilla", type="build", when="certs=mozilla") + depends_on("nasm", when="platform=windows") ++ depends_on("linux-headers", when="platform=linux") + + patch( + "https://github.com/openssl/openssl/commit/f9e578e720bb35228948564192adbe3bc503d5fb.patch?full_index=1", |