Python bytecompilation queued after %install in /usr/lib/rpm/redhat/macros relies on %{__python} that possibly clashes with https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build
DescriptionJan Pokorný [poki]
2018-03-19 19:41:26 UTC
For now, the immediate impact are difficult to root-cause-analyse
warnings raised with koji/mock builds against Rawhide (F28?). Later on,
the builds may fail completely (unless %__python -> %__python3).
Fedora change related to the build environment should not interfere
with this very environment.
# rpm -q rpm-build redhat-rpm-config
> rpm-build-4.14.1-8.fc28.x86_64
> redhat-rpm-config-105-1.fc29.noarch
Comment 1Jan Pokorný [poki]
2018-03-19 19:57:32 UTC
> Fedora change related to the build environment should not interfere
> with this very environment.
(meant bidirectionally/mutually, indeed)
And see also [bug 1506355], might be wise to limit infuence of
environment variables etc. here as well.
Comment 4Jan Pokorný [poki]
2018-03-19 20:24:23 UTC
No breakage to report, just extrapolating the declared plan.
And that warning was just slightly annoying when I was after what
cases of plain python invocation I might have missed when fine-tuning
clufter package as it invokes some python scripts in %build,
sometimes even indirectly.
For now, the immediate impact are difficult to root-cause-analyse warnings raised with koji/mock builds against Rawhide (F28?). Later on, the builds may fail completely (unless %__python -> %__python3). Fedora change related to the build environment should not interfere with this very environment. # rpm -q rpm-build redhat-rpm-config > rpm-build-4.14.1-8.fc28.x86_64 > redhat-rpm-config-105-1.fc29.noarch