Re: git: d356121270d7 - main - mail/postfix{,-ldap-sasl,-sasl}: Flavorize

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Thu, 28 Oct 2021 18:52:41 UTC
From: "Herbert J. Skuhra" <herbert@mailbox.org>
Subject: Re: git: d356121270d7 - main - mail/postfix{,-ldap-sasl,-sasl}: Flavorize
Date: Thu, 28 Oct 2021 20:03:10 +0200

> Hi,
> 
> I had to postmap all my hash files because of "inappropriate file type
> or format" error. The file format changed from "Berkeley DB (Btree,
> version 9, native byte-order)" to "Berkeley DB 1.85". Is this expected?
> 
> In both cases ldd (e.g. postfix, postmap) lists libdb-5.3.so.0?
> 
> --
> Herbert

On my home server hash files were last modified on April 14th.

----------------------------------------------------------------------
yasu@eastasia[3604]% LANG=C ls -lc /etc/mail/aliases.db /usr/local/etc/postfix/mailbox_commands.db                   ~
-rw-r-----  1 root  wheel  131072 Apr 14  2021 /etc/mail/aliases.db
-rw-r--r--  1 root  wheel  131072 Apr 14  2021 /usr/local/etc/postfix/mailbox_commands.db
----------------------------------------------------------------------

And they are "Berkeley DB 1.85 (Hash, version 2, native byte-order)".

----------------------------------------------------------------------
yasu@eastasia[3605]% LANG=C file /etc/mail/aliases.db /usr/local/etc/postfix/mailbox_commands.db
/etc/mail/aliases.db:                       Berkeley DB 1.85 (Hash, version 2, native byte-order)
/usr/local/etc/postfix/mailbox_commands.db: Berkeley DB 1.85 (Hash, version 2, native byte-order)
----------------------------------------------------------------------

According to Bugzilla, I submitted first version of my patch on May
6th. Perhaps I created the patch a few days before that.

That is, on my environment hash files are "Berkeley DB 1.85 (Hash,
version 2, native byte-order)" before I created the patch and applied
it to my home server.

As for the output of ldd, libdb-??.so isn't listed.

----------------------------------------------------------------------
yasu@eastasia[3607]% LANG=C ldd /usr/local/sbin/postfix | fgrep libdb
yasu@eastasia[3608]% LANG=C ldd /usr/local/sbin/postmap | fgrep libdb
----------------------------------------------------------------------

Is there any customization setting about either postfix or berkeley db
in your make.conf? There is 'DEFAULT_VERSIONS+=bdb=18' in my make.conf
but it doesn't seem to affect to postfix.

---
Yasuhiro Kimura