python-ldap package prevents python3-only build
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
Wishlist
|
Canonical Foundations Team | ||
python-ldap (Ubuntu) |
Fix Released
|
Undecided
|
Skipper Bug Screeners | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Won't Fix
|
Undecided
|
Unassigned | ||
Eoan |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Skipper Bug Screeners |
Bug Description
[Impact]
* python-ldap & python3-ldap used to share documentation which resulted in python3-ldap package depending on python-ldap
* However whilst that used to be harmless, it no longer is, due to perceived risks of pulling in unused interpreter.
* Solution is to stop linking docs directory cross-packages like it is done in the later releases
* As a minimal sru, auxiliary and api documentation will remain shipped in python-ldap package with -doc subpackage not being introduced.
[Test Case]
* Install python3-ldap from release
* Observe that /usr/share/
* Upgrade to python3-ldap from proposed
* Observe that /usr/share/
* Remove python-ldap python2.7-minimal
* Observe that python3-ldap is still installed
[Regression Potential]
* The changes introduced match those that are shipped in focal, sans introduction of the docs package
[Other Info]
* Original bug report
By moving away from Python2 following problem occured.
The package Package: python3-ldap (3.0.0-1) is dependent on
Package: python-ldap (3.0.0-1).
This has a dependency: python interactive high-level object-oriented language (default version)
python (<< 2.8)
python (>= 2.7~)
see https:/
We need Canonicals support for a backport the changes from https:/
Many thanks in advance.
tags: | added: architecture-s39064 bugnameltc-182118 severity-high targetmilestone-inin1804 |
Changed in ubuntu: | |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
affects: | ubuntu → linux (Ubuntu) |
affects: | linux (Ubuntu) → python-ldap (Ubuntu) |
tags: | added: sts |
Changed in ubuntu-z-systems: | |
status: | Incomplete → Triaged |
Changed in python-ldap (Ubuntu Bionic): | |
status: | Triaged → In Progress |
description: | updated |
Changed in ubuntu-z-systems: | |
status: | Triaged → Fix Committed |
tags: | added: ssc |
I just installed python3-ldap on 19.10 and 18.04 and it installs fine on both.
You're right that it pulls in some python(2) packages:
$ sudo apt --no-install- recommends install python3-ldap 7-minimal libpython2.7-stdlib python python-ldap pyasn1- modules python2.7 pyasn1- modules 7-minimal libpython2.7-stdlib python python-ldap pyasn1- modules python2.7 pyasn1- modules
[sudo] password for ubuntu:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libpython-stdlib libpython2.
python-minimal python-pyasn1 python-
python2.7-minimal python3-pyasn1 python3-
Suggested packages:
python-doc python-tk python2.7-doc binutils binfmt-support
The following NEW packages will be installed:
libpython-stdlib libpython2.
python-minimal python-pyasn1 python-
python2.7-minimal python3-ldap python3-pyasn1 python3-
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
...
The needed packages are all in main, hence are all fully supported - as the following command shows: 7-minimal libpython2.7-stdlib python python-ldap python-minimal python-pyasn1 python- pyasn1- modules python2.7 python2.7-minimal python3-ldap python3-pyasn1 python3- pyasn1- modules | grep 'Supported\ |APT-Sources'
apt show python libpython-stdlib libpython2.
The situation in 19.10/Eoan (and therefore also in Focal) is different - if python3-ldap is installed there, no python2 packages are pulled-in:
$ sudo apt install python3-ldap pyasn1- modules pyasn1- modules
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
python3-pyasn1 python3-
The following NEW packages will be installed:
python3-ldap python3-pyasn1 python3-
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
I'm not sure what you are going to accomplish - why do you want to get rid of the python2-related packages in bionic already?
Please notice that any patched and/or recompiled packages are usually w/o support - just the one from the archives are in support.