> Thanks for porting. I just tried to use meli with notmuch, and get: > > $ meli > Could not load libnotmuch! > If notmuch is installed but the library isn't found, consult your > system's documentation on how to make dynamic libraries discoverable. > Caused by: File not found > > I do have notmuch installed, and libnotmuch is at > /usr/local/lib/libnotmuch.so.1.2 . I installed meli with pkg_add > (meli-0.7.2pl20221017). > > I can try to debug but don't currently know much about rust and dynamic > libraries.
Does this work? Index: Makefile =================================================================== RCS file: /cvs/ports/mail/meli/Makefile,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 Makefile --- Makefile 18 Oct 2022 14:49:44 -0000 1.1.1.1 +++ Makefile 26 Oct 2022 05:53:31 -0000 @@ -5,6 +5,7 @@ GH_PROJECT = meli GH_COMMIT = 3697b7d960cc9dbe602fa84f861cea854b600b73 DISTNAME = meli-0.7.2.20221017-3697b7d{3697b7d960cc9dbe602fa84f861cea854b600b73} PKGNAME = meli-0.7.2pl20221017 +REVISION = 0 # ring-v0.16.20 does not support those archs NOT_FOR_ARCHS = powerpc64 riscv64 sparc64 Index: patches/patch-melib_src_backends_notmuch_rs =================================================================== RCS file: patches/patch-melib_src_backends_notmuch_rs diff -N patches/patch-melib_src_backends_notmuch_rs --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-melib_src_backends_notmuch_rs 26 Oct 2022 05:53:21 -0000 @@ -0,0 +1,12 @@ +Index: melib/src/backends/notmuch.rs +--- melib/src/backends/notmuch.rs.orig ++++ melib/src/backends/notmuch.rs +@@ -310,7 +310,7 @@ impl NotmuchDb { + event_consumer: BackendEventConsumer, + ) -> Result<Box<dyn MailBackend>> { + #[cfg(not(target_os = "macos"))] +- let mut dlpath = "libnotmuch.so.5"; ++ let mut dlpath = "libnotmuch.so"; + #[cfg(target_os = "macos")] + let mut dlpath = "libnotmuch.5.dylib"; + let mut custom_dlpath = false;