diff --git a/var/spack/repos/builtin/packages/util-linux/missing-errno-header.patch b/var/spack/repos/builtin/packages/util-linux/missing-errno-header.patch new file mode 100644 index 00000000000..73d8e545afe --- /dev/null +++ b/var/spack/repos/builtin/packages/util-linux/missing-errno-header.patch @@ -0,0 +1,11 @@ +diff -ruN spack-src/misc-utils/lsfd.c spack-src-patched/misc-utils/lsfd.c +--- spack-src/misc-utils/lsfd.c 2024-07-04 07:54:41.236242042 +0000 ++++ spack-src-patched/misc-utils/lsfd.c 2025-01-07 01:30:52.719740516 +0000 +@@ -37,6 +37,7 @@ + #include + #include + #include ++#include + + #ifdef HAVE_LINUX_KCMP_H + # include diff --git a/var/spack/repos/builtin/packages/util-linux/package.py b/var/spack/repos/builtin/packages/util-linux/package.py index daf7a6eea84..be284949156 100644 --- a/var/spack/repos/builtin/packages/util-linux/package.py +++ b/var/spack/repos/builtin/packages/util-linux/package.py @@ -50,6 +50,8 @@ class UtilLinux(AutotoolsPackage): depends_on("bash", when="+bash", type="run") + patch("missing-errno-header.patch", when="@2.40.2") + def url_for_version(self, version): url = "https://www.kernel.org/pub/linux/utils/util-linux/v{0}/util-linux-{1}.tar.gz" return url.format(version.up_to(2), version)