Skip to content

python-selinux,selinux-python,python-semanage: fix builds with Python 3.14; add some test.sh#29225

Merged
commodo merged 4 commits intoopenwrt:masterfrom
commodo:selinux-bump-fix
Apr 25, 2026
Merged

python-selinux,selinux-python,python-semanage: fix builds with Python 3.14; add some test.sh#29225
commodo merged 4 commits intoopenwrt:masterfrom
commodo:selinux-bump-fix

Conversation

@commodo
Copy link
Copy Markdown
Contributor

@commodo commodo commented Apr 24, 2026

📦 Package Details

*Maintainer: @tpetazzoni

Description:


🧪 Run Testing Details

  • OpenWrt Version:
  • OpenWrt Target/Subtarget:
  • OpenWrt Device:

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

commodo added 4 commits April 24, 2026 20:30
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>
@commodo commodo merged commit 0d95268 into openwrt:master Apr 25, 2026
12 checks passed
@commodo commodo deleted the selinux-bump-fix branch April 25, 2026 04:49
@commodo commodo mentioned this pull request Apr 25, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant