python-semanage: fix cross-compilation, add test.sh
authorAlexandru Ardelean <redacted>
Fri, 3 Apr 2026 10:53:03 +0000 (13:53 +0300)
committerAlexandru Ardelean <redacted>
Sat, 25 Apr 2026 04:48:58 +0000 (07:48 +0300)
commitacfafdaa03ed725a244c4b77093bd8cfa7d66e2b
treeb4cc2a743d74b605728318cec70dc7835cbeb8bd
parente2e727e6869182f4b74a0ee139f48a42c8020d95
python-semanage: fix cross-compilation, add test.sh

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 <redacted>
lang/python/python-semanage/Makefile
lang/python/python-semanage/test.sh [new file with mode: 0755]
git clone https://git.99rst.org/PROJECT