[Pkg-javascript-devel] Bug#633429: cakephp-scripts and coffeescript: error when trying to install together

Ralf Treinen treinen at free.fr
Sun Jul 10 09:12:50 UTC 2011


Package: coffeescript,cakephp-scripts
Version: coffeescript/1.1.1-1
Version: cakephp-scripts/1.3.7-1
Severity: serious
User: treinen at debian.org
Usertags: edos-file-overwrite

Date: 2011-07-10
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!
  multiarch-support libgpg-error0 libgcrypt11 libkeyutils1 libtasn1-3 libcap2
  libgnutls26 libkrb5support0 libk5crypto3 libkrb5-3 libgssapi-krb5-2
  libsasl2-2 libldap-2.4-2 libmagic1 libpcre3 libxml2 mime-support
  perl-modules perl ucf libapr1 libexpat1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap apache2.2-bin apache2-utils apache2.2-common
  apache2-mpm-prefork libonig2 libqdbm14 php5-common libapache2-mod-php5 php5
  cakephp php5-cli cakephp-scripts libicu44 libv8-3.1.8.22 libc-ares2 libev4
  nodejs coffeescript

Extracting templates from packages: 69%
Extracting templates from packages: 100%
Preconfiguring packages ...
Authentication warning overridden.
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package multiarch-support.
(Reading database ... 9214 files and directories currently installed.)
Unpacking multiarch-support (from .../multiarch-support_2.13-10_amd64.deb) ...
Selecting previously deselected package libgpg-error0.
Unpacking libgpg-error0 (from .../libgpg-error0_1.10-0.3_amd64.deb) ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up multiarch-support (2.13-10) ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package libgcrypt11.
(Reading database ... 9236 files and directories currently installed.)
Unpacking libgcrypt11 (from .../libgcrypt11_1.4.6-7_amd64.deb) ...
Selecting previously deselected package libkeyutils1.
Unpacking libkeyutils1 (from .../libkeyutils1_1.4-5_amd64.deb) ...
Selecting previously deselected package libtasn1-3.
Unpacking libtasn1-3 (from .../libtasn1-3_2.9-4_amd64.deb) ...
Selecting previously deselected package libcap2.
Unpacking libcap2 (from .../libcap2_1%3a2.21-1_amd64.deb) ...
Selecting previously deselected package libgnutls26.
Unpacking libgnutls26 (from .../libgnutls26_2.10.5-2_amd64.deb) ...
Selecting previously deselected package libkrb5support0.
Unpacking libkrb5support0 (from .../libkrb5support0_1.9.1+dfsg-1+b1_amd64.deb) ...
Selecting previously deselected package libk5crypto3.
Unpacking libk5crypto3 (from .../libk5crypto3_1.9.1+dfsg-1+b1_amd64.deb) ...
Selecting previously deselected package libkrb5-3.
Unpacking libkrb5-3 (from .../libkrb5-3_1.9.1+dfsg-1+b1_amd64.deb) ...
Selecting previously deselected package libgssapi-krb5-2.
Unpacking libgssapi-krb5-2 (from .../libgssapi-krb5-2_1.9.1+dfsg-1+b1_amd64.deb) ...
Selecting previously deselected package libsasl2-2.
Unpacking libsasl2-2 (from .../libsasl2-2_2.1.24~rc1.dfsg1+cvs2011-05-23-4_amd64.deb) ...
Selecting previously deselected package libldap-2.4-2.
Unpacking libldap-2.4-2 (from .../libldap-2.4-2_2.4.25-1.1_amd64.deb) ...
Selecting previously deselected package libmagic1.
Unpacking libmagic1 (from .../libmagic1_5.04-5+b1_amd64.deb) ...
Selecting previously deselected package libpcre3.
Unpacking libpcre3 (from .../libpcre3_8.12-3_amd64.deb) ...
Selecting previously deselected package libxml2.
Unpacking libxml2 (from .../libxml2_2.7.8.dfsg-3_amd64.deb) ...
Selecting previously deselected package mime-support.
Unpacking mime-support (from .../mime-support_3.51-1_all.deb) ...
Selecting previously deselected package perl-modules.
Unpacking perl-modules (from .../perl-modules_5.12.4-1_all.deb) ...
Selecting previously deselected package perl.
Unpacking perl (from .../perl_5.12.4-1_amd64.deb) ...
Selecting previously deselected package ucf.
Unpacking ucf (from .../ucf_3.0025+nmu2_all.deb) ...
Moving old data out of the way
Selecting previously deselected package libapr1.
Unpacking libapr1 (from .../libapr1_1.4.5-1_amd64.deb) ...
Selecting previously deselected package libexpat1.
Unpacking libexpat1 (from .../libexpat1_2.0.1-7_amd64.deb) ...
Selecting previously deselected package libaprutil1.
Unpacking libaprutil1 (from .../libaprutil1_1.3.12+dfsg-2_amd64.deb) ...
Selecting previously deselected package libaprutil1-dbd-sqlite3.
Unpacking libaprutil1-dbd-sqlite3 (from .../libaprutil1-dbd-sqlite3_1.3.12+dfsg-2_amd64.deb) ...
Selecting previously deselected package libaprutil1-ldap.
Unpacking libaprutil1-ldap (from .../libaprutil1-ldap_1.3.12+dfsg-2_amd64.deb) ...
Selecting previously deselected package apache2.2-bin.
Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.19-1_amd64.deb) ...
Selecting previously deselected package apache2-utils.
Unpacking apache2-utils (from .../apache2-utils_2.2.19-1_amd64.deb) ...
Selecting previously deselected package apache2.2-common.
Unpacking apache2.2-common (from .../apache2.2-common_2.2.19-1_amd64.deb) ...
Selecting previously deselected package apache2-mpm-prefork.
Unpacking apache2-mpm-prefork (from .../apache2-mpm-prefork_2.2.19-1_amd64.deb) ...
Selecting previously deselected package libonig2.
Unpacking libonig2 (from .../libonig2_5.9.1-1_amd64.deb) ...
Selecting previously deselected package libqdbm14.
Unpacking libqdbm14 (from .../libqdbm14_1.8.77-4+b1_amd64.deb) ...
Selecting previously deselected package php5-common.
Unpacking php5-common (from .../php5-common_5.3.6-13_amd64.deb) ...
Selecting previously deselected package libapache2-mod-php5.
Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.3.6-13_amd64.deb) ...
Selecting previously deselected package php5.
Unpacking php5 (from .../archives/php5_5.3.6-13_all.deb) ...
Selecting previously deselected package cakephp.
Unpacking cakephp (from .../cakephp_1.3.7-1_all.deb) ...
Selecting previously deselected package php5-cli.
Unpacking php5-cli (from .../php5-cli_5.3.6-13_amd64.deb) ...
Selecting previously deselected package cakephp-scripts.
Unpacking cakephp-scripts (from .../cakephp-scripts_1.3.7-1_all.deb) ...
Selecting previously deselected package libicu44.
Unpacking libicu44 (from .../libicu44_4.4.2-2_amd64.deb) ...
Selecting previously deselected package libv8-3.1.8.22.
Unpacking libv8-3.1.8.22 (from .../libv8-3.1.8.22_3.1.8.22-1_amd64.deb) ...
Selecting previously deselected package libc-ares2.
Unpacking libc-ares2 (from .../libc-ares2_1.7.4-1_amd64.deb) ...
Selecting previously deselected package libev4.
Unpacking libev4 (from .../libev4_1%3a4.04-1_amd64.deb) ...
Selecting previously deselected package nodejs.
Unpacking nodejs (from .../nodejs_0.4.9-1_amd64.deb) ...
Selecting previously deselected package coffeescript.
Unpacking coffeescript (from .../coffeescript_1.1.1-1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/coffeescript_1.1.1-1_all.deb (--unpack):
 trying to overwrite '/usr/bin/cake', which is also in package cakephp-scripts 1.3.7-1
configured to not write apport reports
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/coffeescript_1.1.1-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


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/bin/cake

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.

-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 Pkg-javascript-devel mailing list