Skip to content

Comments

fix: libseccomp+python build#3495

Merged
kwryankrattiger merged 2 commits intospack:developfrom
cmelone:fix/libseccomp-python
Feb 21, 2026
Merged

fix: libseccomp+python build#3495
kwryankrattiger merged 2 commits intospack:developfrom
cmelone:fix/libseccomp-python

Conversation

@cmelone
Copy link
Member

@cmelone cmelone commented Feb 20, 2026

libseccomp's python extension Makefile does a check for out of source builds, but fails when srcdir and builddir are different strings but point to the same underlying directory (ie /dir and .).

[ /var/tmp/melone1/spack-stage/spack-stage-libseccomp-2.6.0-w24sgwofjl4355bnza4sfvikvesxqawt/spack-src/src/python = . ] || cp /var/tmp/melone1/spack-stage/spack-stage-libseccomp-2.6.0-w24sgwofjl4355bnza4sfvikvesxqawt/spack-src/src/python/seccomp.pyx .
cp: '/var/tmp/melone1/spack-stage/spack-stage-libseccomp-2.6.0-w24sgwofjl4355bnza4sfvikvesxqawt/spack-src/src/python/seccomp.pyx' and './seccomp.pyx' are the same file

This adds a patch that checks if the file to be copied already exists in the builddir before attempting to copy it over.

libseccomp's python extension Makefile does a check for out of source
builds, but fails when srcdir and builddir are different strings but
point to the same underlying directory (ie `dir` and `.`).

```
[ /var/tmp/melone1/spack-stage/spack-stage-libseccomp-2.6.0-w24sgwofjl4355bnza4sfvikvesxqawt/spack-src/src/python = . ] || cp /var/tmp/melone1/spack-stage/spack-stage-libseccomp-2.6.0-w24sgwofjl4355bnza4sfvikvesxqawt/spack-src/src/python/seccomp.pyx .
cp: '/var/tmp/melone1/spack-stage/spack-stage-libseccomp-2.6.0-w24sgwofjl4355bnza4sfvikvesxqawt/spack-src/src/python/seccomp.pyx' and './seccomp.pyx' are the same file
```

This adds a patch that checks if the file to be copied already exists in
the builddir before attempting to copy it over.
becker33
becker33 previously approved these changes Feb 20, 2026
Copy link
Contributor

@kwryankrattiger kwryankrattiger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Link to upstream PR

@kwryankrattiger kwryankrattiger enabled auto-merge (squash) February 21, 2026 19:16
@kwryankrattiger kwryankrattiger merged commit bd929e8 into spack:develop Feb 21, 2026
17 checks passed
@cmelone cmelone deleted the fix/libseccomp-python branch February 21, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants