reopen 471975
retitle 471975 dependency on emacsen-common breaks upgrades
severity 471975 serious
notfixed 471975 2.6.0-2
found 471975 2.6.0-2
thanks

The fix in 2.6.0-2 has oposite effect and make things worse. Now cmake upgrade 
surely fails if emacsen-common dependency was not installed on the system 
before and get pulled in by cmake as dependency.

New installs are not affected neither are subsequent upgrade retries.

# LANG=C aptitude dist-upgrade
Reading package lists... Done                                       
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
  emacsen-common{a}
The following packages will be upgraded:
  cmake
1 packages upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B/7617kB of archives. After unpacking 86.0kB will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
Reading changelogs... Done
Selecting previously deselected package emacsen-common.
(Reading database ... 170533 files and directories currently installed.)
Unpacking emacsen-common (from .../emacsen-common_1.4.17_all.deb) ...
Preparing to replace cmake 2.4.8-1.1 (using .../cmake_2.6.0-2_amd64.deb) ...
ERROR: emacsen-common being used before being configured.
ERROR: This is likely a bug in the cmake package, which needs to
ERROR: add one of the appropriate dependencies.
ERROR: See /usr/share/doc/emacsen-common/debian-emacs-policy.gz
ERROR: for details.
dpkg: warning - old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
ERROR: emacsen-common being used before being configured.
ERROR: This is likely a bug in the cmake package, which needs to
ERROR: add one of the appropriate dependencies.
ERROR: See /usr/share/doc/emacsen-common/debian-emacs-policy.gz
ERROR: for details.
dpkg: error processing /var/cache/apt/archives/cmake_2.6.0-2_amd64.deb 
(--unpack):
 subprocess new pre-removal script returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/cmake_2.6.0-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up emacsen-common (1.4.17) ...
emacsen-common: Handling install of emacsen flavor emacs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to