diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2023-09-15 17:23:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-15 17:23:29 +0200 |
commit | 0280ac51ed6b0cd4a57e6a095f98f1a7f2773204 (patch) | |
tree | f4e7590d29081d29cbabe2046c462e9bec546bb3 | |
parent | bd442fea407f07718661d489e08d67dc7f05f799 (diff) | |
download | spack-0280ac51ed6b0cd4a57e6a095f98f1a7f2773204.tar.gz spack-0280ac51ed6b0cd4a57e6a095f98f1a7f2773204.tar.bz2 spack-0280ac51ed6b0cd4a57e6a095f98f1a7f2773204.tar.xz spack-0280ac51ed6b0cd4a57e6a095f98f1a7f2773204.zip |
linux-headers: drop rsync dep, add new version (#39867)
-rw-r--r-- | var/spack/repos/builtin/packages/linux-headers/package.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/linux-headers/package.py b/var/spack/repos/builtin/packages/linux-headers/package.py index bbbf0f0381..1236a25ce6 100644 --- a/var/spack/repos/builtin/packages/linux-headers/package.py +++ b/var/spack/repos/builtin/packages/linux-headers/package.py @@ -3,6 +3,8 @@ # # SPDX-License-Identifier: (Apache-2.0 OR MIT) +import os + from spack.package import * @@ -14,6 +16,7 @@ class LinuxHeaders(Package): list_url = "https://www.kernel.org/pub/linux/kernel" list_depth = 2 + version("6.5.2", sha256="2027e14057d568ad3ddc100dadf4c8853a49b031270478a61d88f6011572650f") version("6.2.8", sha256="fed0ad87d42f83a70ce019ff2800bc30a855e672e72bf6d54a014d98d344f665") version("4.9.10", sha256="bd6e05476fd8d9ea4945e11598d87bc97806bbc8d03556abbaaf809707661525") @@ -24,4 +27,12 @@ class LinuxHeaders(Package): env.unset("ARCH") def install(self, spec, prefix): - make("headers_install", "INSTALL_HDR_PATH={0}".format(prefix)) + make("headers") + + src, dst = join_path("usr", "include"), join_path(prefix, "include") + + # This copy_tree + ignore is really poor API design, but the it avoids + # running make install_headers which depends on rsync. + copy_tree( + src, dst, ignore=lambda f: os.path.isfile(join_path(src, f)) and not f.endswith(".h") + ) |