On Mon, Jan 14, 2019 at 5:02 PM Neal Gompa <ngompa13(a)gmail.com> wrote:
On Mon, Jan 14, 2019 at 4:57 PM Rex Dieter <rdieter(a)gmail.com> wrote:
>
> Troy Dawson wrote:
>
> > But I've hit a package I'm having issues with, due to python vs
> > python2/python3. qt5-qtwebengine
> > For starters, it has a buildrequires for /usr/bin/python and is
> > running "python <command>" in the %prep section.
>
> Are you saying nothing in rhel8 provides /usr/bin/python ?
>
Nothing provides it. The reason given: nobody could agree what to do here[1].
The easy trick that I use for this is make a symlink to a custom path
and add it to the PATH in the package build.
Something like this:
mkdir -p .test-bin
ln -sf /usr/bin/python2 .link-bin/python
export PATH=$PWD/.link-bin:$PATH
This trick works if it's only a build-time requirement.
Alternatively, you can try to fix the shebangs everywhere...
[1]:
https://developers.redhat.com/blog/2018/11/27/what-no-python-in-rhel-8-beta/
Sorry, I mean "mkdir -p .link-bin" for the first command.
--
真実はいつも一つ!/ Always, there's only one truth!