On Wed, 2018-01-10 at 14:37 +0100, Andreas Beckmann wrote: > Package: python3-ldap,python3-pyldap > Severity: serious > User: trei...@debian.org > Usertags: edos-file-overwrite > Control: found -1 3.0.0~b3-1 > Control: found -1 2.4.25.1-2 > > Hi, > > automatic installation tests of packages that share a file and at the > same time do not conflict by their package dependency relationships has > detected the following problem: > > Selecting previously unselected package python3-pyldap. > Preparing to unpack .../python3-pyldap_2.4.25.1-2+b1_amd64.deb ... > Unpacking python3-pyldap (2.4.25.1-2+b1) ... > dpkg: error processing archive > /var/cache/apt/archives/python3-pyldap_2.4.25.1-2+b1_amd64.deb (--unpack): > trying to overwrite > '/usr/lib/python3/dist-packages/_ldap.cpython-36m-x86_64-linux-gnu.so', which > is also in package python3-ldap 3.0.0~b3-1 > Errors were encountered while processing: > /var/cache/apt/archives/python3-pyldap_2.4.25.1-2+b1_amd64.deb > > > This is a serious bug as it makes installation fail, and violates > sections 7.6.1 and 10.1 of the policy. An optimal solution would > consist in only one of the packages installing that file, and renaming > or removing the file in the other package. Depending on the > circumstances you might also consider Replace relations or file > diversions. If the conflicting situation cannot be resolved then, as a > last resort, the two packages have to declare a mutual > Conflict. Please take into account that Replaces, Conflicts and > diversions should only be used when packages provide different > implementations for the same functionality. > > Here is a list of files that are known to be shared by both packages > (according to the Contents file for sid/amd64, which may be > slightly out of sync): > > usr/lib/python3/dist-packages/_ldap.cpython-36m-x86_64-linux-gnu.so > usr/lib/python3/dist-packages/ldap/__init__.py > usr/lib/python3/dist-packages/ldap/async.py > usr/lib/python3/dist-packages/ldap/cidict.py > usr/lib/python3/dist-packages/ldap/compat.py > usr/lib/python3/dist-packages/ldap/controls/__init__.py > usr/lib/python3/dist-packages/ldap/controls/deref.py > usr/lib/python3/dist-packages/ldap/controls/libldap.py > usr/lib/python3/dist-packages/ldap/controls/openldap.py > usr/lib/python3/dist-packages/ldap/controls/ppolicy.py > usr/lib/python3/dist-packages/ldap/controls/psearch.py > usr/lib/python3/dist-packages/ldap/controls/pwdpolicy.py > usr/lib/python3/dist-packages/ldap/controls/readentry.py > usr/lib/python3/dist-packages/ldap/controls/sessiontrack.py > usr/lib/python3/dist-packages/ldap/controls/simple.py > usr/lib/python3/dist-packages/ldap/dn.py > usr/lib/python3/dist-packages/ldap/extop/__init__.py > usr/lib/python3/dist-packages/ldap/extop/dds.py > usr/lib/python3/dist-packages/ldap/filter.py > usr/lib/python3/dist-packages/ldap/functions.py > usr/lib/python3/dist-packages/ldap/ldapobject.py > usr/lib/python3/dist-packages/ldap/logger.py > usr/lib/python3/dist-packages/ldap/modlist.py > usr/lib/python3/dist-packages/ldap/resiter.py > usr/lib/python3/dist-packages/ldap/sasl.py > usr/lib/python3/dist-packages/ldap/schema/__init__.py > usr/lib/python3/dist-packages/ldap/schema/models.py > usr/lib/python3/dist-packages/ldap/schema/subentry.py > usr/lib/python3/dist-packages/ldap/schema/tokenizer.py > usr/lib/python3/dist-packages/ldap/syncrepl.py > usr/lib/python3/dist-packages/ldapurl.py > usr/lib/python3/dist-packages/ldif.py > > > This bug is assigned to both packages. If you, the maintainers of > the two packages in question, have agreed on which of the packages will > resolve the problem please reassign the bug to that package. You may > also register in the BTS that the other package is affected by the bug. > > Cheers, > > Andreas > > PS: for more information about the detection of file overwrite errors > of this kind see https://qa.debian.org/dose/file-overwrites.html
It looks like the fork python3-pyldap is decprecated and merged back into python-ldap [1]. My suggestion is to make a transitional package for python3-pyldap which installs python-ldap. /Willem [1] https://github.com/pyldap/pyldap/