[Pkg-dns-devel] Bug#848111: opendnssec-enforcer-mysql: fails to upgrade from 'jessie': dpkg-maintscript-helper: error: conffile 'conf.xml' is not an absolute path

Andreas Beckmann anbe at debian.org
Wed Dec 14 08:08:56 UTC 2016


Package: opendnssec-enforcer-mysql
Version: 1:2.0.3-2
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package fails to upgrade from
'jessie'.
It installed fine in 'jessie', then the upgrade to 'stretch' fails.

>From the attached log (scroll to the bottom...):

  Preparing to unpack .../opendnssec-enforcer-mysql_1%3a2.0.3-2_amd64.deb ...
  Unpacking opendnssec-enforcer-mysql (1:2.0.3-2) over (1:1.4.6-6) ...
  dpkg-maintscript-helper: error: conffile 'conf.xml' is not an absolute path
  dpkg: warning: subprocess old post-removal script returned error exit status 1
  dpkg: trying script from the new package instead ...
  dpkg: error processing archive /var/cache/apt/archives/opendnssec-enforcer-mysql_1%3a2.0.3-2_amd64.deb (--unpack):
   there is no script in the new version of the package - giving up
  dpkg-maintscript-helper: error: conffile 'conf.xml' is not an absolute path
  dpkg: error while cleaning up:
   subprocess installed pre-installation script returned error exit status 1


Looking at the maintainer scripts in jessie, the offending code is:

for conffile in conf kasp zonefetch zonelist; do
    for ext in xml xml.sample; do
        dpkg-maintscript-helper rm_conffile ${conffile}.${ext} 1.2.1.dfsg-1 -- "$@"
    done
done

That could never have worked, these old files were never cleaned up.
Just dpkg in stretch got more strict and reports an error about it now.

Either reinstate that code (with correct paths and a bumped version),
s.t. the cleanup is attempted again or ship a dummy empty prerm script
in the package.


cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opendnssec-enforcer-mysql_1:2.0.3-2.log.gz
Type: application/gzip
Size: 38187 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-dns-devel/attachments/20161214/a00d4ec9/attachment-0001.bin>


More information about the pkg-dns-devel mailing list