Build failures of packages which use waf as build system
Hi all, I found many build failure of packages using waf as build system. This is due to recent move of /usr/bin/python into a separate package https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separat e_package Many audio related packages have this problem. I fixed some of these audio packages, prefixing waf calls with %{__python2} macro. You have to BR python2-rpm-macros or python2-devel to use it. For example: https://src.fedoraproject.org/rpms/ardour5/c/e72960049735476c19c08a14cb d5891556802753?branch=master As discussed on the ML, this was the accepted solution, I hope this can be useful to other people getting this problem Guido fas: tartina signature.asc Description: This is a digitally signed message part ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/TIT5YDEUODUBTDOE2CGL754DWV6655F5/
Re: Build failures of packages which use waf as build system
On 16.7.2018 21:54, Guido Aulisi wrote: I fixed some of these audio packages, prefixing waf calls with %{__python2} macro. You have to BR python2-rpm-macros or python2-devel to use it. Or you can just type "python2". However, if you need %{__python2} macro, BR python2-devel, not python2-rpm-macros. Consider python2-rpm-macros an implementation detail. Also, try to use %{__python3} or python3 with waf, it should be compatible, depending of course on the version. -- Miro Hrončok -- Phone: +420777974800 IRC: mhroncok ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/6W6KDX3YTQFGNXH5ZSNYI4CD63JI26OW/
Re: Build failures of packages which use waf as build system
2018-07-17 0:38 GMT+02:00 Miro Hrončok : > On 16.7.2018 21:54, Guido Aulisi wrote: >> >> I fixed some of these audio packages, prefixing waf calls with >> %{__python2} macro. You have to BR python2-rpm-macros or python2-devel >> to use it. > > > Or you can just type "python2". However, if you need %{__python2} macro, BR Can I type python2 without absolute path? If so it's even easier... > python2-devel, not python2-rpm-macros. Consider python2-rpm-macros an > implementation detail. Ok, I'll fix it... > Also, try to use %{__python3} or python3 with waf, it should be compatible, > depending of course on the version. Yes, of course, this is the next step, for now I just fixed the build problem. I have to check every waf version in use, I had some problems in the past with python3 and waf. > -- > Miro Hrončok Thank you very much Guido ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/G7R54DGDCHNTXJLL6QDYCP53PNHUTWVK/
Re: Build failures of packages which use waf as build system
i changed the spec file [1] but it still fails on rawhide [1] https://martinkg.fedorapeople.org/Packages/nuvolaruntime/diorite.spec [2] https://koji.fedoraproject.org/koji/taskinfo?taskID=28522155 ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/PNFJLFFRKKQ2P5EBINIPHOXEY5VSKVO4/
Re: Build failures of packages which use waf as build system
On Tue, 2018-07-17 at 08:45 +0200, Guido Aulisi wrote: > 2018-07-17 0:38 GMT+02:00 Miro Hrončok : > > On 16.7.2018 21:54, Guido Aulisi wrote: > > > > > > I fixed some of these audio packages, prefixing waf calls with > > > %{__python2} macro. You have to BR python2-rpm-macros or python2- > > > devel > > > to use it. > > > > > > Or you can just type "python2". However, if you need %{__python2} > > macro, BR > > Can I type python2 without absolute path? If so it's even easier... Legit question, rpm -E %{__python2} results in /usr/bin/python2 not in python2 > > python2-devel, not python2-rpm-macros. Consider python2-rpm-macros > > an > > implementation detail. > > Ok, I'll fix it... > I don't see why , %{__python2} macro in my point of view should be in python2-rpm-macros > > Also, try to use %{__python3} or python3 with waf, it should be > > compatible, > > depending of course on the version. > > Yes, of course, this is the next step, for now I just fixed the build > problem. > I have to check every waf version in use, I had some problems in the > past with python3 and waf. > > > -- > > Miro Hrončok > > Thank you very much > Guido > ___ > devel mailing list -- devel@lists.fedoraproject.org > To unsubscribe send an email to devel-le...@lists.fedoraproject.org > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelin > es > List Archives: https://lists.fedoraproject.org/archives/list/devel@li > sts.fedoraproject.org/message/G7R54DGDCHNTXJLL6QDYCP53PNHUTWVK/ -- Sérgio M. B. ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/QAVBLZQSIP3WWY6HH5IYRRJRAR36ZY6N/
Re: Build failures of packages which use waf as build system
On 22.7.2018 15:30, Sérgio Basto wrote: On Tue, 2018-07-17 at 08:45 +0200, Guido Aulisi wrote: 2018-07-17 0:38 GMT+02:00 Miro Hrončok : On 16.7.2018 21:54, Guido Aulisi wrote: I fixed some of these audio packages, prefixing waf calls with %{__python2} macro. You have to BR python2-rpm-macros or python2- devel to use it. Or you can just type "python2". However, if you need %{__python2} macro, BR Can I type python2 without absolute path? If so it's even easier... Legit question, rpm -E %{__python2} results in /usr/bin/python2 not in python2 Sometimes you need full path, sometimes just the name of the command. To run (execute) python2, you just need the command (but path also works). Try this on the command line: $ python2 --version Python 2.7.15 $ /usr/bin/python2 --version Python 2.7.15 -- Miro Hrončok -- Phone: +420777974800 IRC: mhroncok ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/AQG633X3N3OHGEAXEEIHJNUQ4VB43MBF/
Re: Build failures of packages which use waf as build system
On Mon, Jul 16, 2018 at 09:54:22PM +0200, Guido Aulisi wrote: > Hi all, > > I found many build failure of packages using waf as build system. > This is due to recent move of /usr/bin/python into a separate package > > https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separat > e_package > > Many audio related packages have this problem. > > I fixed some of these audio packages, prefixing waf calls with > %{__python2} macro. You have to BR python2-rpm-macros or python2-devel > to use it. > > For example: > https://src.fedoraproject.org/rpms/ardour5/c/e72960049735476c19c08a14cb > d5891556802753?branch=master > > As discussed on the ML, this was the accepted solution, I hope this can > be useful to other people getting this problem Please don't recommend that. Instead of munging all packages that use waf, waf should be fixed. In the other thread the maintainer said they can do it next week. If more speed is needed, prepare a PR in src.fp.o and maybe have a provenpackager push the build. Zbyszek ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/ZAS2VGTJYCHQ3XT7CPRVEPV2PIUY5JJP/
Re: Build failures of packages which use waf as build system
Please note that we have two different issues here, with different solutions: - Packages using an embedded waf: as the upstream waf script uses a shebang like '#! /usr/bin/env python', these packages fail due to the removal of the unversioned Python binary and should call their waf copy using one of the %{__python2} or %{__python3} macros, and BR on python2-devel or python3-devel to get the macros. - Packages using the system-wide waf script in the Python3 variant (note that waf is using alternatives, so /usr/bin/waf can be either using Python2 or Python3, depending on the declared BRs): these will currently fail in rawhide, as the version in rawhide is not fully Python3-compatible, which will be fixed soon. (Of course packages using embedded waf, and calling it via %{__python3} will likely also see the second issue, and should simply update their embedded waf script.) 2018-07-23 12:55 GMT+02:00 Zbigniew Jędrzejewski-Szmek : > Please don't recommend that. Instead of munging all packages that use > waf, waf should be fixed. In the other thread the maintainer said they > can do it next week. If more speed is needed, prepare a PR in src.fp.o > and maybe have a provenpackager push the build. ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/SONWVTWZTYIINDPK33IQ6MLVX6227PHF/