Here's an updated version of the port: - it's now using the SUBDIR functionality again. The WIP name is "core" since it's less ugly than having "notmuch/notmuch" in the path. Let me know if you come up with a more appropriate name.
- I've incorporated your changes such as the LIBnotmuch... vars and such. - Before reading your mail, i was linking the gnu coreutils into the port's bin dir so that the tests worked. I guess actually having and OpenBSD lib like what you suggested is better so that it may be upstreamed. - The library (libnotmuch.so) is now versioned. However, I put the library version in Makefile.inc so that it might be shared between the python bindings and the main notmuch package. I was expecting that including WANTLIB += notmuch in the py-notmuch Makefile would make it possible to use LIBnotmuch_VERSION, but that is not the case (is there another way?). I've been using it for a day so far and nothing strange happened yet. After sending this mail, I'll contact the devs about the use-after-free you commented (it also happens on my machine, but only at the end of the tests, I guess it's same as yours). Thanks a lot for your feedback and your help on porting this.
notmuch-191123.tgz
Description: Binary data