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

app-mobilephone/scrcpy and dev-lang/nasm autogens is fails with packaging >=22.0

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None
    • These autogens will fail with >=packaging-22.0

      These are unrelated packages, but they use basically the same python autogen and they fail with >=packaging-22.0 because the LegacyVersion class has been removed.

      Both will fail when using packaging.version.parse() on strings like "nasm-2.16.02rc1" and "v1.5-fixversion". These would return valid LegacyVersion objects, which could be then sorted and/or tested like normal Version objects, but those functionalities wouldn't help because you'd still end up with something that produces an invalid ebuild name.

      Most of the time, we want only official release versions, not the pre-releases, release-candidates or even '-fixversion' to which we cannot attribute a number. So, using LegacyVersion objects doesn't help at all to select the desired tags.

      Anyway, these are also pretty standard GitHub packages and the github-1 generator does a good job selecting the latest release versions, so I think they can be converted into YAML autogens.

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

              Created:
              Updated:
              Resolved: