[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

#560317 present on Squeeze if you try to reconfigure backported packages which use dpkg-maintscript-helper



Hi,

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560317 has been fixed
post-squeeze in debconf.

It occurs on Squeeze if I try to reconfigure a package backported from
Sid/Wheezy which uses dpkg-maintscript-helper, so I guess this is the
primary place to report that fact.

My current workaround is to insert 

export DPKG_MAINTSCRIPT_PACKAGE=${DPKG_MAINTSCRIPT_PACKAGE:-$THE_PACKAGE}
export DPKG_MAINTSCRIPT_NAME=${DPKG_MAINTSCRIPT_NAME:-$THE_SCRIPT}

with $THE_PACKAGE and $THE_SCRIPT being hardcoded values in the
maintainer script, e.g. a generic foobar.prerm looks like this:

---snip---
#! /bin/sh
# prerm script for foobar

set -e

# Workaround for http://bugs.debian.org/560317 in case debconf is too old like on Squeeze
export DPKG_MAINTSCRIPT_PACKAGE=${DPKG_MAINTSCRIPT_PACKAGE:-foobar}
export DPKG_MAINTSCRIPT_NAME=${DPKG_MAINTSCRIPT_NAME:-prerm}

#DEBHELPER#

exit 0
---snap---

Ugly, but seems to work.

Maybe this could be fixed in the debhelper backport by automatically
adding those two export-lines to the #DEBHELPER# section...

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe@debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-    |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5


Reply to: