Any good workarounds for working with epel7 Python packages on Fedora? Mainly dealing with the fact that python3_pkgversion differs from Fedora to EPEL7. Ie, when doing 'fedpkg mockbuild' the SRPM will be generated with the wrong python3_pkgversion.
I tried this, but it didn't seem to work: fedpkg --release epel7 srpm --define 'python3_pkgversion 36'
Thanks, Scott
On 18. 05. 20 18:23, Scott Talbert wrote:
Any good workarounds for working with epel7 Python packages on Fedora? Mainly dealing with the fact that python3_pkgversion differs from Fedora to EPEL7. Ie, when doing 'fedpkg mockbuild' the SRPM will be generated with the wrong python3_pkgversion.
I tried this, but it didn't seem to work: fedpkg --release epel7 srpm --define 'python3_pkgversion 36'
There is a RFE open for +- this workaround to actually work:
https://pagure.io/rpkg/issue/432
This other RFE should make that workaround not needed (and the description contains manual steps to create a valid SRPM to build in mock):
https://pagure.io/rpkg/issue/495
Here is a relevant bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1767576
I don't work with epel7 packages daily, but I do have this in my ~/.rpmmacros:
#python3_pkgversion 36 #python3_other_pkgversion 34
And I change it to:
%python3_pkgversion 36 %python3_other_pkgversion 34
When needed. It is tedious :(
On Mon, 18 May 2020, Miro Hrončok wrote:
On 18. 05. 20 18:23, Scott Talbert wrote:
Any good workarounds for working with epel7 Python packages on Fedora? Mainly dealing with the fact that python3_pkgversion differs from Fedora to EPEL7. Ie, when doing 'fedpkg mockbuild' the SRPM will be generated with the wrong python3_pkgversion.
I tried this, but it didn't seem to work: fedpkg --release epel7 srpm --define 'python3_pkgversion 36'
There is a RFE open for +- this workaround to actually work:
https://pagure.io/rpkg/issue/432
This other RFE should make that workaround not needed (and the description contains manual steps to create a valid SRPM to build in mock):
https://pagure.io/rpkg/issue/495
Here is a relevant bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1767576
I don't work with epel7 packages daily, but I do have this in my ~/.rpmmacros:
#python3_pkgversion 36 #python3_other_pkgversion 34
And I change it to:
%python3_pkgversion 36 %python3_other_pkgversion 34
When needed. It is tedious :(
Thanks for the tip on ~/.rpmmacros. That will be good enough for now I think. Just have to remember to undo it when I go back to Fedora.
Scott
On Monday, 18 May 2020 17.38.10 WEST Miro Hrončok wrote:
And I change it to:
%python3_pkgversion 36 %python3_other_pkgversion 34
When needed. It is tedious
I think that we need some kind of rpmenv (mostly in terms of the configuration files but you get the idea). :-)
I am only half-joking here. :-)
python-devel@lists.fedoraproject.org