python-selinux,selinux-python,python-semanage: fix builds with Python 3.14; add some test.sh#29225
Merged
commodo merged 4 commits intoopenwrt:masterfrom Apr 25, 2026
Merged
Conversation
Add --no-build-isolation to PYTHON_SETUP_ARGS. Without it, pip creates an isolated build environment which fails during cross-compilation because _sysconfigdata is missing for the target arch. Add test.sh with basic import and API sanity checks. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
Add HOST_PYTHON3_PIP_VARS and --no-build-isolation to MAKE_VARS. Without --no-build-isolation, pip creates an isolated build environment which fails during cross-compilation because _sysconfigdata is missing. Aligns with python-selinux which already has this fix. The libsemanage pywrap uses the host Python's EXT_SUFFIX to name the C extension, so we will use the PYCEXT env-var to correct that. Add basic test.sh to verify the semanage Python bindings load correctly in environments without SELinux kernel support. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
Add --no-build-isolation to PYTHON_SETUP_ARGS. Without it, pip creates an isolated build environment which fails during cross-compilation because _sysconfigdata is missing for the target arch. Add test.sh verifying python3-sepolgen module loads correctly and selinux-audit2allow binary is functional. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
Add a bit of smoke testing for the CI. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📦 Package Details
*Maintainer: @tpetazzoni
Description:
🧪 Run Testing Details
✅ Formalities