Try sorting out emacsen mess once again (Closes: #481391).

Depend on emacsen-common.
old-prerm will most likely fail spewing emacsen-common error message
when upgrading from previous version but this is OK. Add a custom
prerm script which recovers from the problem and notifies the user to
ignore the error message.

Signed-off-by: Modestas Vainius <modestas@vainius.eu>
ci/unstable
Modestas Vainius 16 years ago
parent 76ff64d3c7
commit fce6357ff4

10
debian/changelog vendored

@ -7,8 +7,14 @@ cmake (2.6.2-2~pre1) UNRELEASED; urgency=low
Thanks to Ludovico Cavedon (Closes: #487528). Thanks to Ludovico Cavedon (Closes: #487528).
- FindMPEG2_include_FindSDL_fix.diff - fix FindSQL include in the - FindMPEG2_include_FindSDL_fix.diff - fix FindSQL include in the
MPEG2 module. Thanks to Leopold Palomo Avellaneda (Closes: #500770). MPEG2 module. Thanks to Leopold Palomo Avellaneda (Closes: #500770).
* Try sorting out emacsen mess once again (Closes: #481391):
-- Modestas Vainius <modestas@vainius.eu> Thu, 16 Oct 2008 11:03:18 +0300 - depend on emacsen-common;
- old-prerm will most likely fail spewing emacsen-common error message
when upgrading from previous version but this is OK. Add a custom
prerm script which recovers from the problem and notifies the user to
ignore the error message.
-- Modestas Vainius <modestas@vainius.eu> Thu, 16 Oct 2008 11:17:00 +0300
cmake (2.6.2-1) experimental; urgency=low cmake (2.6.2-1) experimental; urgency=low

23
debian/cmake.prerm vendored

@ -0,0 +1,23 @@
#!/bin/sh
set -e
if [ "$1" = "failed-upgrade" ] && dpkg --compare-versions "$2" le 2.6.2-1; then
# It is very likely that old-prerm failed due to emacsen-common being
# unconfigured at this stage. The error is harmless and cannot be avoided
# in a sane way.
# 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
#
# Therefore tell the user to ignore the error and exit gracefully.
echo <<END
NOTE: The emacsen-common error above is harmless and can be safely ignored.
NOTE: Upgrade will continue as usual.
END
exit 0
fi
#DEBHELPER#

2
debian/control vendored

@ -11,7 +11,7 @@ Vcs-Browser: http://git.debian.org/?p=collab-maint/cmake.git;a=summary
Package: cmake Package: cmake
Architecture: any Architecture: any
Depends: ${shlibs:Depends} Depends: ${shlibs:Depends}, emacsen-common
Description: A cross-platform, open-source make system Description: A cross-platform, open-source make system
CMake is used to control the software compilation process using CMake is used to control the software compilation process using
simple platform and compiler independent configuration files. CMake simple platform and compiler independent configuration files. CMake

Loading…
Cancel
Save