From eaecc5ea12f4a5ebe309d5654509c0771bbdc2f1 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Sun, 4 Dec 2022 15:43:08 +0200 Subject: [PATCH] melib/notmuch: remove hardcoded major .so version for non linux/macos target_os Credits to http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/mail/meli/patches/patch-melib_src_backends_notmuch_rs?rev=1.1&content-type=text/x-cvsweb-markup for discovering this. --- melib/src/backends/notmuch.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/melib/src/backends/notmuch.rs b/melib/src/backends/notmuch.rs index 16dd6508..81d98e62 100644 --- a/melib/src/backends/notmuch.rs +++ b/melib/src/backends/notmuch.rs @@ -309,10 +309,12 @@ impl NotmuchDb { _is_subscribed: Box bool>, event_consumer: BackendEventConsumer, ) -> Result> { - #[cfg(not(target_os = "macos"))] + #[cfg(target_os = "linux")] let mut dlpath = "libnotmuch.so.5"; #[cfg(target_os = "macos")] let mut dlpath = "libnotmuch.5.dylib"; + #[cfg(not(any(target_os = "linux", target_os = "macos")))] + let mut dlpath = "libnotmuch.so"; let mut custom_dlpath = false; if let Some(lib_path) = s.extra.get("library_file_path") { dlpath = lib_path.as_str();