Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-11103

sys-fs/compsize autogen is fails with packaging >=22.0

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None
    • sys-fs/compsize autogen doesn't work

      I hit this while trying to run merge-kits with packaging-22.0 installed.

      Running doit on sys-fs/compsize fails with the following message:

      [ERROR 20:32:00] module 'packaging.version' has no attribute 'LegacyVersion'

      packaging.version.LegacyVersion has been deprecated since 2020 and it has been removed when packaging-22.0 came out in July 2022. Therefore, this error appears only if you have >=packaging-22.0 installed, which I had because packaging itself was on autogenned before. It has been since locked to version 21.3, so sys-fs/compsize is working for most people for now.

      Nothing is offered in the new packaging to replace LegacyVersion. It has been removed because they assumed that there are no more packages using a LegacyVersion on PyPi anymore. So, I believe this issue can be resolved by simply removing the code that uses it from the autogen.

      However, this is a pretty standard GitHub package, and I think it would be best to just replace the Python generator with a github-1 YAML one.

            adbosco adbosco
            adbosco adbosco
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: