Re: Packages requiring "Python" might be broken in rawhide

2019-08-07 Thread Dridi Boukelmoune
> $ repoquery --repo=rawhide-source --whatrequires /usr/bin/python --exact > 0ad-0:0.0.23b-6.fc31.src > cherrytree-0:0.38.5-5.fc30.src > chocolate-doom-0:3.0.0-2.fc30.src > distro-info-0:0.18-3.fc30.src > distro-info-data-0:0.38-2.fc30.src > dtrx-0:7.1-13.fc29.src > gcc-0:9.1.1-2.fc31.src >

Re: Packages requiring "Python" might be broken in rawhide

2019-08-05 Thread Miro Hrončok
On 06. 08. 19 0:58, Kevin Kofler wrote: Miro Hrončok wrote: mkdir hackpath ln -s %{__python2} hackpath/python export PATH=$(pwd)/hackpath:$PATH These will work as long as nothing hardcodes "#!/usr/bin/python". So far, I only found the proper "#!/usr/bin/env python" (see now why it is the

Re: Packages requiring "Python" might be broken in rawhide

2019-08-05 Thread Kevin Kofler
Miro Hrončok wrote: > Maintaining legacy software is impractical. Use a hack. There are some > options: > > 1) carefully sed python for python2 This assumes I find the files to sed first. They are spread throughout the build system. They may or may not all have .py extensions. And blindly

Re: Packages requiring "Python" might be broken in rawhide

2019-08-05 Thread Miro Hrončok
On 06. 08. 19 0:23, Miro Hrončok wrote: But we will not provide Python2ish /usr/bin/python2 in a Fedora package. I meant /usr/bin/python. -- Miro Hrončok -- Phone: +420777974800 IRC: mhroncok ___ devel mailing list -- devel@lists.fedoraproject.org

Re: Packages requiring "Python" might be broken in rawhide

2019-08-05 Thread Miro Hrončok
On 05. 08. 19 23:59, Kevin Kofler wrote: Miro Hrončok wrote: On 16. 07. 19 19:25, Kevin Kofler wrote: At the very least, we need a python2-unversioned-command (and python-unversioned-command in existing releases needs to Provide it so that we don't have to add yet another %if boilerplate

Re: Packages requiring "Python" might be broken in rawhide

2019-08-05 Thread Kevin Kofler
Miro Hrončok wrote: > On 16. 07. 19 19:25, Kevin Kofler wrote: >> At the very least, we need a python2-unversioned-command (and >> python-unversioned-command in existing releases needs to Provide it so >> that we don't have to add yet another %if boilerplate snippet) so the >> packages can keep

Re: Packages requiring "Python" might be broken in rawhide

2019-07-16 Thread Miro Hrončok
On 16. 07. 19 19:25, Kevin Kofler wrote: Miro Hrončok wrote: $ repoquery --repo=rawhide --source --whatrequires python-unversioned-command --exact $ repoquery --repo=rawhide-source --whatrequires python-unversioned-command --exact The whole point of python-unversioned-command was to make

Re: Packages requiring "Python" might be broken in rawhide

2019-07-16 Thread Kevin Kofler
Miro Hrončok wrote: > $ repoquery --repo=rawhide --source --whatrequires > python-unversioned-command --exact > $ repoquery --repo=rawhide-source --whatrequires > python-unversioned-command --exact The whole point of python-unversioned-command was to make existing packages build with no changes

Packages requiring "Python" might be broken in rawhide

2019-07-16 Thread Miro Hrončok
Hello package maintainers (Bcc'ed). Your package (build)requires unversioned Python in Fedora rawhide. "Python" is now Python 3, not Python 2. https://fedoraproject.org/wiki/Changes/Python_means_Python3 In some cases it means your package is satisfied with any Python version and in that case