The use of platform-python is deprecated in RHEL 9. Citing from the internal Python ecosystem in RHEL 9 document:
platform-python
/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
/usr/bin/python3
/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/.
platform-python-3.6
/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.
configure.ac
export PYTHON=%{python3}
Also see commit d11acaf4d3de39b180f7441af40577a27d7bd55c (platform-python only on RHEL8)
Metadata Update from @cheimes: - Issue priority set to: minor