From: Petr Lautrbach <lautrbach@redhat.com>
To: Kalevi Kolttonen <kalevi@kolttonen.fi>, selinux@vger.kernel.org
Subject: Re: SELinux userspace build fails on Fedora 44
Date: Wed, 10 Jun 2026 18:21:16 +0200 [thread overview]
Message-ID: <87eciemkn7.fsf@redhat.com> (raw)
In-Reply-To: <aimHv-w8yri0aoB_@AA-94-54-42-0F-E2>
Kalevi Kolttonen <kalevi@kolttonen.fi> writes:
> Hello!
>
> The instructions in README.md no longer work when
> building SELinux userspace on Fedora 44. It has
> something to do Python 3 as the error is:
>
> python3 -m build --no-isolation --wheel .
> /usr/sbin/python3: No module named build
> make[2]: *** [Makefile:17: python-build] Error 1
>
> Fedora 44 has:
>
> Name : python3
> Version : 3.14.5
> Release : 1.fc44
>
Works for me:
$ rpm -q python3
python3-3.14.5-1.fc44.x86_64
$ make DESTDIR=/home/plautrba/sw/selinux install install-pywrap
$ find /home/plautrba/sw/selinux/usr/lib64/python3.14/site-packages/
/home/plautrba/sw/selinux/usr/lib64/python3.14/site-packages/
/home/plautrba/sw/selinux/usr/lib64/python3.14/site-packages/selinux
/home/plautrba/sw/selinux/usr/lib64/python3.14/site-packages/selinux/_selinux.cpython-314-x86_64-linux-gnu.so
/home/plautrba/sw/selinux/usr/lib64/python3.14/site-packages/selinux/audit2why.cpython-314-x86_64-linux-gnu.so
/home/plautrba/sw/selinux/usr/lib64/python3.14/site-packages/selinux/__init__.py
/home/plautrba/sw/selinux/usr/lib64/python3.14/site-packages/selinux-3.11rc1.dist-info
/home/plautrba/sw/selinux/usr/lib64/python3.14/site-packages/selinux-3.11rc1.dist-info/METADATA
/home/plautrba/sw/selinux/usr/lib64/python3.14/site-packages/selinux-3.11rc1.dist-info/WHEEL
/home/plautrba/sw/selinux/usr/lib64/python3.14/site-packages/selinux-3.11rc1.dist-info/top_level.txt
/home/plautrba/sw/selinux/usr/lib64/python3.14/site-packages/selinux-3.11rc1.dist-info/INSTALLER
/home/plautrba/sw/selinux/usr/lib64/python3.14/site-packages/selinux-3.11rc1.dist-info/direct_url.json
/home/plautrba/sw/selinux/usr/lib64/python3.14/site-packages/selinux-3.11rc1.dist-info/REQUESTED
/home/plautrba/sw/selinux/usr/lib64/python3.14/site-packages/selinux-3.11rc1.dist-info/RECORD
/home/plautrba/sw/selinux/usr/lib64/python3.14/site-packages/_selinux.cpython-314-x86_64-linux-gnu.so
/home/plautrba/sw/selinux/usr/lib64/python3.14/site-packages/_semanage.cpython-314-x86_64-linux-gnu.so
/home/plautrba/sw/selinux/usr/lib64/python3.14/site-packages/semanage.py
> How we do fix this?
>
See the commit e11e59675f69:
Author: Petr Lautrbach <lautrbach@redhat.com>
Date: Fri Jun 5 13:25:27 2026 +0200
libselinux,python: Use system Python3 build module
...
--- a/README.md
+++ b/README.md
@@ -64,6 +64,7 @@ dnf install \
# For Python and Ruby bindings
dnf install \
+ python3-build \
python3-devel \
python3-pip \
python3-setuptools \
@@ -97,6 +98,7 @@ apt-get install --no-install-recommends --no-install-suggests \
# For Python and Ruby bindings
apt-get install --no-install-recommends --no-install-suggests \
+ python3-build \
python3-dev \
python3-pip \
python3-setuptools \
Petr
next prev parent reply other threads:[~2026-06-10 16:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-10 15:50 SELinux userspace build fails on Fedora 44 Kalevi Kolttonen
2026-06-10 16:18 ` Kalevi Kolttonen
2026-06-10 16:21 ` Petr Lautrbach [this message]
2026-06-10 16:25 ` Kalevi Kolttonen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eciemkn7.fsf@redhat.com \
--to=lautrbach@redhat.com \
--cc=kalevi@kolttonen.fi \
--cc=selinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.