[Bug 1977645] Re: python3-gpg 1.16.0-unknown version is incomparable, dependencies always fail
Henry Ward Hopeman Jr.
1977645 at bugs.launchpad.net
Wed Feb 22 20:06:00 UTC 2023
Possibly related to https://bugs.launchpad.net/ubuntu/+source/distro-
info/+bug/1991606
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1977645
Title:
python3-gpg 1.16.0-unknown version is incomparable, dependencies
always fail
Status in gpgme1.0 package in Ubuntu:
Confirmed
Status in gpgme1.0 package in Debian:
Fix Released
Bug description:
The python version of the gpgme version contains "unknown" and is
therefore not PEP440 order compatible.
See this example:
# pip3 freeze | grep gpg
gpg===1.16.0-unknown
# pip3 install pstore
...
Successfully installed gpg-1.10.0
Successfully installed pstore-2.0.0
# pip3 freeze | grep gpg
gpg==1.10.0
Key takeways from that example:
- pstore depends on gpg>=1.10
- 1.16 SHOULD be higher than 1.10
- pip installs 1.10 even though 1.16 exists
- the triple-= (gpg===1.16.0-unknown) means that the version exists,
but cannot be version compared:
https://peps.python.org/pep-0440/#arbitrary-equality
Suggested fix:
- replace the '-' from `gpgme-config --version` "1.16.0-unknown" with
a '+'; that will compare as expected;
- fix so "-unknown" isn't appended.
Apparently, this is caused by insufficient fixes in 0001-avoid-identifying-as-beta.patch
I've attached a FIXED version, which should fix things.
Before:
$ autoreconf -ivf
$ grep Generated.*gpgme configure
# Generated by GNU Autoconf 2.71 for gpgme 1.16.0-unknown.
After:
$ quilt push
Applying patch 0001-avoid-identifying-as-beta-FIXED.patch
$ autoreconf -ivf
$ grep Generated.*gpgme configure
# Generated by GNU Autoconf 2.71 for gpgme 1.16.0.
Versions:
$ lsb_release -a 2>/dev/null| grep Codename
Codename: jammy
$ apt-cache policy python3-gpg | grep Installed
Installed: 1.16.0-1.2ubuntu4
Cheers,
Walter Doekes
OSSO B.V.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gpgme1.0/+bug/1977645/+subscriptions
More information about the Ubuntu-sponsors
mailing list