diff --git a/repos/spack_repo/builtin/packages/libseccomp/fix-pyx-copy.patch b/repos/spack_repo/builtin/packages/libseccomp/fix-pyx-copy.patch new file mode 100644 index 00000000000..287e5a58b20 --- /dev/null +++ b/repos/spack_repo/builtin/packages/libseccomp/fix-pyx-copy.patch @@ -0,0 +1,11 @@ +--- a/src/python/Makefile.in 2026-02-19 ++++ b/src/python/Makefile.in 2026-02-19 +@@ -36,7 +36,7 @@ + all-local: build + + build: ../libseccomp.la libseccomp.pxd seccomp.pyx setup.py +- [ ${srcdir} = ${builddir} ] || cp ${srcdir}/seccomp.pyx ${builddir} ++ test -f ${builddir}/seccomp.pyx || cp ${srcdir}/seccomp.pyx ${builddir} + ${PY_BUILD} && touch build + + install-exec-local: build diff --git a/repos/spack_repo/builtin/packages/libseccomp/package.py b/repos/spack_repo/builtin/packages/libseccomp/package.py index 736b4689ba4..25e7d5295ac 100644 --- a/repos/spack_repo/builtin/packages/libseccomp/package.py +++ b/repos/spack_repo/builtin/packages/libseccomp/package.py @@ -35,6 +35,8 @@ class Libseccomp(AutotoolsPackage, PythonExtension): # https://github.com/seccomp/libseccomp/commit/afbde6ddaec7c58c3b281d43b0b287269ffca9bd depends_on("python@:3.11", type=("run", "link", "build"), when="@:2.5") depends_on("py-setuptools", type="build", when="@2.6:") + # upstream PR: https://github.com/seccomp/libseccomp/pull/482 + patch("fix-pyx-copy.patch", when="@2.6") def configure_args(self): return self.enable_or_disable("python", variant="python")