[Bug 1795989] Re: Ubuntu18.04 LTS: python3-ldap package depends on python2
Andreas Hasenack
andreas at canonical.com
Wed Oct 3 23:03:25 UTC 2018
Thanks for this bug report.
Confirmed on bionic, and fixed in cosmic which has 3.1.0-2.
Debian commit: https://salsa.debian.org/python-team/modules/python-
ldap/commit/6685e867b51b766abb37e527c0ec4dc99fcd4cfd
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-ldap in Ubuntu.
https://bugs.launchpad.net/bugs/1795989
Title:
Ubuntu18.04 LTS: python3-ldap package depends on python2
Status in python-ldap package in Ubuntu:
New
Bug description:
If one attempts to install the python3-ldap package, a number of
python2 related dependencies are also pulled in for installation:
# apt install python3-ldap
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python python-ldap python-minimal python-pyasn1 python-pyasn1-modules python2.7 python2.7-minimal
Suggested packages:
python-doc python-tk python2.7-doc binfmt-support
The following NEW packages will be installed:
libpython-stdlib libpython2.7-minimal libpython2.7-stdlib python python-ldap python-minimal python-pyasn1 python-pyasn1-modules python2.7 python2.7-minimal python3-ldap
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,202 kB of archives.
After this operation, 18.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
Looking at the dependencies for the package, we see:
Depends: python3 (<< 3.7), python3 (>= 3.6~), python3-pyasn1 (>=
0.3.7), python3-pyasn1-modules, python3:any (>= 3.3.2-2~), python-ldap
(= 3.0.0-1), libc6 (>= 2.14), libldap-2.4-2 (>= 2.4.11)
So python2 is being pulled in because of the dependency on "python-ldap"
It looks like this issue may be fixed in the 3.1.0-1 package via this
change:
3.1.0-1
* debian/python-ldap.docs
- rename to docs (avoid dependency other python variant)
It would be nice if this could be fixed for Ubuntu18.04 LTS users.
Thanks!
# lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-ldap/+bug/1795989/+subscriptions
More information about the foundations-bugs
mailing list