Package: opensmtpd Version: 6.0.3p1-4 Severity: normal Tags: patch Dear opensmtpd maintainers.
I found minimal fresh installations where missing /etc/mailname and running non-fqdn hostname, breaks debconf processing and left package at broken state: ~# export DEBCONF_DEBUG=developer apt-get install -f [...] Setting up opensmtpd (6.0.3p1-4) ... debconf (developer): frontend started debconf (developer): frontend running, package name is opensmtpd debconf (developer): starting /var/lib/dpkg/info/opensmtpd.config configure debconf (developer): <-- FGET opensmtpd/mailname seen debconf (developer): --> 0 false dpkg: error processing package opensmtpd (--configure): installed opensmtpd package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: opensmtpd E: Sub-process /usr/bin/dpkg returned an error code (1) This was cased by a validation that slip through. See below a possible patch: --- opensmtpd-6.0.3p1/orig/debian/config 2018-01-16 12:16:54.000000000 -0300 +++ opensmtpd-6.0.3p1/diff/debian/config 2018-11-09 11:18:08.369536833 -0300 @@ -31,7 +31,7 @@ # Default to the FQDN MAILNAME=`hostname --fqdn 2> /dev/null` # Something when wrong; resort to localdomain - if [ ! $? ]; then + if [ $? -ne 0 ]; then MAILNAME="localdomain" fi # Update our DB with this default for when we prompt the user Thanks in advance for all your work around opensmtpd! Cheers, Dererk -- BOFH excuse #154: You can tune a file system, but you can't tune a fish (from most tunefs man pages)
signature.asc
Description: PGP signature