Am Thu, Jul 08, 2021 at 11:01:17AM +0100 schrieb Stuart Henderson:
> On 2021/07/08 08:45, Martin Ziemer wrote:
> > After some package update i found sysclean to mark
> > /usr/lib/libz.so.5.0 as deletable because of no depends, which broke
> > bogofilter in the flavor sqlite3.
> > 
> > To solve the problem for me i added WANTLIB z to *my* flavor. 
> > I dont know, of it is needed in the other flavors too. So maybe the
> > better solution would be adding z to the generic WANTLIB.
> 
> Testing other flavours of bogofilter it's just happening for sqlite.
> But we need to look at the reason why rather than just blindly adding
> because other ports could be affected too.
> 
> Looking at a few other ports with WANTLIB containing sqlite3 but not z,
> it seems there's no general problem with these. So it does seem specific
> to bogofilter. The libz dependency came along with the update to sqlite
> 3.25.1. But downstream software doesn't normally need to link to libz
> directly, it comes via inter library dependency for shared libraries.
> 
> Let's run port-lib-depends-check:
> 
> $ FLAVOR=sqlite3 make port-lib-depends-check 
> 
> bogofilter-1.2.4p2-sqlite3(mail/bogofilter,sqlite3):
> Missing: z.6 (/usr/local/bin/bogoutil) (system lib)
> Extra:  iconv.7 sqlite3.37
> WANTLIB += z
> 
> So that's interesting, sqlite3 is listed as extra. So bogofilter isn't
> using libsqlite3.so.*, seems it's linking statically instead. This
> reduces the chance of other software having a problem because most
> things don't statically link to it.
> 
> Let's look at the other flavours.
> 
> bogofilter-1.2.4p2-qdbm(mail/bogofilter,qdbm):
> Extra:  qdbm.14
> 
> bogofilter-1.2.4p2-db4(mail/bogofilter,db4):
> Extra:  db.5 iconv.7
> 
> Same problem. Presumably this worked properly before, looking at other OS
> bogofilter is dynamically linked to db libraries there. The part of the
> configure script responsible for figuring out how to link to these comes
> from an ancient copy of gettext-related m4 files in the distro. So let's
> pick up new ones to replace them. While there we can pick up the 2019
> update to 1.2.5 that includes various things including fixes for memory
> leaks, lexer fixes for MIME multipart and HTML tokens, and some others.
> 
> I don't use bogofilter. This passes the self-tests, could you try some
> runtime tests please?
I just updated my version of bogofilter with your patch. 

Tested successfully on two amd64-systems with about a dozen mails per system.

Reply via email to