[Python-modules-team] Bug#567376: python-django-registration and pootle: error when trying to install together

Ralf Treinen treinen at free.fr
Thu Jan 28 18:55:59 UTC 2010


Package: pootle,python-django-registration
Version: pootle/2.0.1-1
Version: python-django-registration/0.7-2
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2010-01-28
Architecture: amd64
Distribution: sid

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:


WARNING: The following packages cannot be authenticated!
  python-django libpcre3 libglib2.0-0 libxml2 libcroco3 libgomp1 gettext-base
  gettext translate-toolkit libxslt1.1 python-lxml pootle
  python-django-registration
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5408144
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5407760
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5408145
Authentication warning overridden.
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package python-django.
(Reading database ... 12276 files and directories currently installed.)
Unpacking python-django (from .../python-django_1.1.1-3_all.deb) ...
Selecting previously deselected package libpcre3.
Unpacking libpcre3 (from .../libpcre3_7.8-3_amd64.deb) ...
Selecting previously deselected package libglib2.0-0.
Unpacking libglib2.0-0 (from .../libglib2.0-0_2.22.4-1_amd64.deb) ...
Selecting previously deselected package libxml2.
Unpacking libxml2 (from .../libxml2_2.7.6.dfsg-2+b1_amd64.deb) ...
Selecting previously deselected package libcroco3.
Unpacking libcroco3 (from .../libcroco3_0.6.2-1_amd64.deb) ...
Selecting previously deselected package libgomp1.
Unpacking libgomp1 (from .../libgomp1_4.4.3-1_amd64.deb) ...
Selecting previously deselected package gettext-base.
Unpacking gettext-base (from .../gettext-base_0.17-8_amd64.deb) ...
Selecting previously deselected package gettext.
Unpacking gettext (from .../gettext_0.17-8_amd64.deb) ...
Selecting previously deselected package translate-toolkit.
Unpacking translate-toolkit (from .../translate-toolkit_1.5.2-1_all.deb) ...
Selecting previously deselected package libxslt1.1.
Unpacking libxslt1.1 (from .../libxslt1.1_1.1.26-1+b1_amd64.deb) ...
Selecting previously deselected package python-lxml.
Unpacking python-lxml (from .../python-lxml_2.2.4-1+b1_amd64.deb) ...
Processing triggers for man-db ...
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5408144
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5407760
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5408145
Processing triggers for install-info ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up python-django (1.1.1-3) ...
Processing triggers for python-support ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package pootle.
(Reading database ... 14611 files and directories currently installed.)
Unpacking pootle (from .../pootle_2.0.1-1_all.deb) ...
Selecting previously deselected package python-django-registration.
Unpacking python-django-registration (from .../python-django-registration_0.7-2_all.deb) ...
dpkg: error processing /var/cache/apt/archives/python-django-registration_0.7-2_all.deb (--unpack):
 trying to overwrite '/usr/share/pyshared/registration/views.py', which is also in package pootle 0:2.0.1-1
Processing triggers for man-db ...
W: cowdancer: unsupported operation flock, read-only open and fchown/fchmod/flock are not supported: tried openning dev:inode of 2055:5407760
Errors were encountered while processing:
 /var/cache/apt/archives/python-django-registration_0.7-2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
cow-shell unlink .ilist: No such file or directory


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/share/pyshared/registration/admin.py
  /usr/share/pyshared/registration/forms.py
  /usr/share/pyshared/registration/models.py
  /usr/share/pyshared/registration/tests.py
  /usr/share/pyshared/registration/urls.py
  /usr/share/pyshared/registration/views.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.

-Ralf.

PS: for more information about the detection of file overwrite errors
of this kind see http://edos.debian.net/file-overwrites/.





More information about the Python-modules-team mailing list