#8740 Don't use platform-python on RHEL 9
Opened by cheimes. Modified

Request for enhancement

The use of platform-python is deprecated in RHEL 9. Citing from the internal Python ecosystem in RHEL 9 document:

/usr/libexec/platform-python is implemented as a symbolic link to /usr/bin/python3 (for backwards compatibility with RHEL 8). The platform-python symlink is deprecated and will be removed in a future RHEL major release.

/usr/libexec/platform-python exists in both RHEL 8 and RHEL 9. In RHEL 8 it's a symlink to platform-python-3.6. In RHEL 9 it's a symlink to /usr/bin/python3. FreeIPA builds should ignore /usr/libexec/platform-python when it is a symlink to a binary in /usr/bin/.

FreeIPA should not use platform-python on RHEL 8. We could either detect the symlink in configure.ac or explicitly set export PYTHON=%{python3} in the spec file.


Also see commit d11acaf4d3de39b180f7441af40577a27d7bd55c (platform-python only on RHEL8)

Metadata Update from @cheimes:
- Issue priority set to: minor

Metadata