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.
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
This trick works if it's only a build-time requirement.
Alternatively, you can try to fix the shebangs everywhere...
真実はいつも一つ！/ Always, there's only one truth!