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

Re: Please rebuild exim4 with libdb4.2-dev



Sven Hartge <sven@svenhartge.de> wrote:
> The recent backport of exim4 depends on libdb4.3, which renders the old
> hints databases of exim4 useless, since they were created with libdb4.2.

The backport has switched the same time as Debian/sid, i.e.
with the first 4.62 upload.

> This is just a minor but still annoying fault, because it fills the
> logfile with error messages.

No idea how this could happen, the backport's exim4-base.postinst
(identical to the unstable version) tries to make sure that all hints
are zapped on this upgrade, first by a version check and secondly by
checking whether exim_dumpdb can read the files.
----------------------------------
case "$1" in
  configure)
[...]
if dpkg --compare-versions "$2" '<=' "4.61-1" ; then
	rm -f /var/spool/exim4/db/misc-* /var/spool/exim4/db/wait-* \
		/var/spool/exim4/db/callout* \
		/var/spool/exim4/db/retry* \
		/var/spool/exim4/db/__db.retry \
		/var/spool/exim4/db/__db.misc \
		/var/spool/exim4/db/__db.callout \
		/var/spool/exim4/db/__db.wait*
fi
# Check that db files are readable by this Exim's db library
dbfiles=""
for f in /var/spool/exim4/db/misc-* /var/spool/exim4/db/wait-* \
         /var/spool/exim4/db/callout* /var/spool/exim4/db/retry*; do
    if [ -f "$f" ]; then
	if echo $f | grep \.lockfile\$ >/dev/null 2>&1; then
	    : # ignore lock files
	else
	    dbfiles="$dbfiles `basename $f`"
	fi
    fi
done
for dbfile in $dbfiles; do
    if exim_dumpdb /var/spool/exim4 $dbfile >/dev/null 2>&1; then
	: # File OK
    else
	echo "Resetting invalid $dbfile hints db"
	rm -f /var/spool/exim4/db/$dbfile /var/spool/exim4/db/$dbfile.*
    fi
done
----------------------------------

Did we miss a hint file?
cu andreas who uploaded the backport.
-- 
The 'Galactic Cleaning' policy undertaken by Emperor Zhark is a personal
vision of the emperor's, and its inclusion in this work does not constitute
tacit approval by the author or the publisher for any such projects,
howsoever undertaken.                                (c) Jasper Ffforde



Reply to: