DevHeads.net

Question about Python 2 (sub-)package removal in Fedora

Related to:
<a href="https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal" title="https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal">https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal</a>

I have some packages which build python 2 subpackages, but they are
not "python packages" as such. One example is nbdkit:

<a href="https://koji.fedoraproject.org/koji/buildinfo?buildID=1225638" title="https://koji.fedoraproject.org/koji/buildinfo?buildID=1225638">https://koji.fedoraproject.org/koji/buildinfo?buildID=1225638</a>

This package isn't listed in
<a href="https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal/List" title="https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal/List">https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal/List</a>
I don't know how that list was constructed, whether this was missed by
accident, or design.

Anyway my question is should I remove these subpackages myself? Now?
And in what releases of Fedora (ie. 31 only? 30 and 31?)

Rich.

Comments

Re: Question about Python 2 (sub-)package removal in Fedora

By =?UTF-8?B?TWlyb... at 03/07/2019 - 03:15

On 07. 03. 19 9:11, Richard W.M. Jones wrote:
Only Python 2 modules (i.e. stuff that installs into /usr/lib(64)?/python2.7)
were detected. Yours seem to be like some sort of plugins.

If they are not depended upon, please remove them.

Since the beta freeze for Fedora 30 already happened and I don't think this
would unblock plenty other packages, I suggest to do it in Fedora 31 only.

Re: Question about Python 2 (sub-)package removal in Fedora

By Richard W.M. Jones at 03/07/2019 - 03:33

On Thu, Mar 07, 2019 at 09:15:23AM +0100, Miro Hrončok wrote:
Another one would be python2-libguestfs which does install files in
/usr/lib64/python2.7 and is present in the list, but wasn't removed by
anyone nor was a bug filed against it AFAICS. Anyway I can deal with
this one too.

OK, it'll be good to finally get rid of Python 2.

Rich.

Re: Question about Python 2 (sub-)package removal in Fedora

By =?UTF-8?B?TWlyb... at 03/07/2019 - 03:37

On 07. 03. 19 9:33, Richard W.M. Jones wrote:

I get this on the latest compose from February:

$ dnf repoquery --repo=rawhide --repo=rawhide-source --whatrequires
python2-libguestfs
imagefactory-0:1.1.11-2.fc30.noarch
kimchi-0:1.5.1-11.fc30.noarch
oz-0:0.16.0-8.fc30.noarch
vdsm-hook-fileinject-0:4.18.999-447.git0bb7717.fc28.noarch

While I'd like to get rid of as much Python 2 packages as possible, I'd advise
not to remove packages that are being dependent upon (unless properly
communicated with the maintainers of the dependent packages).

Re: Question about Python 2 (sub-)package removal in Fedora

By Richard W.M. Jones at 03/07/2019 - 04:37

On Thu, Mar 07, 2019 at 09:37:12AM +0100, Miro Hrončok wrote:
OK I see, thanks.

Rich.