Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions repos/spack_repo/builtin/packages/libseccomp/fix-pyx-copy.patch
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions repos/spack_repo/builtin/packages/libseccomp/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Loading