claws-mail is missing a required shared library: libldap.so.2 claws-mail is missing a required shared library: liblber.so.2 after install claws-mail on system without libreoffice. Build host have libreoffice and net/openldap26-client as dep.
The problem is that Makefile.claws is incorrectly overriding CONFIGURE_ARGS. This makes all option-derived CONFIGURE_ARGS to get lost. Something like this would fix it. === diff --git a/mail/claws-mail/Makefile.claws b/mail/claws-mail/Makefile.claws index 53ee30e66310..9ea0a1b576fe 100644 --- a/mail/claws-mail/Makefile.claws +++ b/mail/claws-mail/Makefile.claws @@ -8,7 +8,7 @@ LICENSE= GPLv3 USES+= autoreconf gettext-tools gmake iconv libtool pkgconfig tar:xz GNU_CONFIGURE= yes -CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG} --disable-dbus --disable-static +CONFIGURE_ARGS+= ${ICONV_CONFIGURE_ARG} --disable-dbus --disable-static .include "${.CURDIR}/../claws-mail/Makefile.ver" .include "${.CURDIR}/../claws-mail/Makefile.claws.plugins"
(In reply to Xin LI from comment #1) Testing proposed patch...
Building Claws Mail with OPTION LDAP both on and off for both GTK2 and GTK3 version succeeds with proposed patch applied. All those builds are basically clean ones, in a dedicated jail. So patch proposed by Xin Li is not damaging anything, from my point of view. OP should test whether Xin's patch solves his issue.
Created attachment 247876 [details] git diff to correct options handling for mail/claws-mail Xin Li is absolutely correct. I don't know how I ever let this pass. This is an attachment that implements his proposal. Please commit. Thanks! --Chris
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=ae03dfaa96e334b41d1f41297aadd99508fc0f49 commit ae03dfaa96e334b41d1f41297aadd99508fc0f49 Author: Chris Hutchinson <portmaster@bsdforge.com> AuthorDate: 2024-02-08 08:15:56 +0000 Commit: Juraj Lutter <otis@FreeBSD.org> CommitDate: 2024-02-08 08:15:56 +0000 mail/claws-mail: Link with net/openldap26-client if installed. Reported by: Ivan Rozhuk <rozhuk.im@gmail.com> PR: 274190 MFH: 2024Q1 mail/claws-mail/Makefile | 2 +- mail/claws-mail/Makefile.claws | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
A commit in branch 2024Q1 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=eef29c1b80fabb8262cb15ba93be0472b2448e39 commit eef29c1b80fabb8262cb15ba93be0472b2448e39 Author: Chris Hutchinson <portmaster@bsdforge.com> AuthorDate: 2024-02-08 08:15:56 +0000 Commit: Juraj Lutter <otis@FreeBSD.org> CommitDate: 2024-02-08 08:24:58 +0000 mail/claws-mail: Link with net/openldap26-client if installed. Reported by: Ivan Rozhuk <rozhuk.im@gmail.com> PR: 274190 MFH: 2024Q1 (cherry picked from commit ae03dfaa96e334b41d1f41297aadd99508fc0f49) This commit does not contain the switch to share/man for manpages. mail/claws-mail/Makefile | 2 +- mail/claws-mail/Makefile.claws | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Committed, thanks.