Package: opendnssec-enforcer-mysql
Version: 1:2.0.3-2
Severity: serious
User: [email protected]
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

Attachment: opendnssec-enforcer-mysql_1:2.0.3-2.log.gz
Description: application/gzip

Reply via email to