Bug#623455: cron: postinst script aborts on dpkg-maintscript-helper invocation

2011-04-20 Thread William Steve Applegate
Package: cron
Version: 3.0pl1-116
Severity: normal


Calling dpkg-reconfigure(8) on the cron package fails because of the
dpkg-maintscript-helper invocation contained within the postinst script. This
is particularly annoying since a `dpkg-reconfigure -a' will abruptly stop
without telling the user it was cron who caused the error.

root@winterfell:~# dpkg-reconfigure cron
Stopping periodic command scheduler: cron.
insserv: warning: current stop runlevel(s) (1) of script `cron' overwrites 
defaults (empty).
dpkg-maintscript-helper: error: couldn't identify the package

Disabling the call to dpkg-maintscript-helper seems to work around the issue
(until the next package update, that is):

root@winterfell:~# sed -ir 's/^\(dpkg-maintscript-helper\)/#\1/' 
/var/lib/dpkg/info/cron.postinst
root@winterfell:~# dpkg-reconfigure cron
Stopping periodic command scheduler: cron failed!
insserv: warning: current stop runlevel(s) (1) of script `cron' overwrites 
defaults (empty).
Starting periodic command scheduler: cron.


Cheers,
-- W.

-- Package-specific info:
--- EDITOR:
not set

--- usr/bin/editor:
/usr/bin/vim.basic

--- /usr/bin/crontab:
-rwxr-sr-x 1 root crontab 30248 Dec 19 00:46 /usr/bin/crontab

--- /var/spool/cron
drwxr-xr-x 5 root root 4096 Sep 22  2009 /var/spool/cron

--- /var/spool/cron/crontabs
drwx-wx--T 2 root crontab 4096 Sep 28  2008 /var/spool/cron/crontabs


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cron depends on:
ii  adduser   3.112+nmu2 add and remove users and groups
ii  debianutils   3.4.4  Miscellaneous utilities specific t
ii  dpkg  1.15.8.10  Debian package management system
ii  libc6 2.11.2-11  Embedded GNU C Library: Shared lib
ii  libpam-runtime1.1.2-2Runtime support for the PAM librar
ii  libpam0g  1.1.2-2Pluggable Authentication Modules l
ii  libselinux1   2.0.96-1   SELinux runtime shared libraries
ii  lsb-base  3.2-27 Linux Standard Base 3.2 init scrip

Versions of packages cron recommends:
pn  lockfile-progsnone (no description available)
ii  ssmtp [mail-transport-agent]  2.64-4 extremely simple MTA to get mail o

Versions of packages cron suggests:
pn  anacron   none (no description available)
pn  checksecurity none (no description available)
ii  logrotate 3.7.8-6Log rotation utility

Versions of packages cron is related to:
pn  libnss-ldap   none (no description available)
pn  libnss-ldapd  none (no description available)
pn  libpam-ldap   none (no description available)
pn  libpam-mount  none (no description available)
pn  nis   none (no description available)
pn  nscd  none (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#623455: cron: postinst script aborts on dpkg-maintscript-helper invocation

2011-04-20 Thread Christian Kastner
reassign 623455 debconf
forcemerge 560317 623455
thanks

On 04/20/2011 02:16 PM, William Steve Applegate wrote:
 Calling dpkg-reconfigure(8) on the cron package fails because of the
 dpkg-maintscript-helper invocation contained within the postinst script. This
 is particularly annoying since a `dpkg-reconfigure -a' will abruptly stop
 without telling the user it was cron who caused the error.

This is actually a bug in dpkg-reconfigure, reassigning and merging.



signature.asc
Description: OpenPGP digital signature