Opened 6 years ago

Closed 6 years ago

#40005 closed defect (fixed)

notmuch @0.16: libnotmuch.dylib has wrong install_name

Reported by: anupamsg@… Owned by: yeled@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: haspatch Cc: ryandesign (Ryan Schmidt)
Port: notmuch



The latest upgrade for notmuch (@0.16, SVN revision: 108886) builds correctly, but is failing on invocation of the main binary (notmuch) with the following error:

% notmuch --version
  dyld: Library not loaded: libnotmuch.3.dylib
  Referenced from: /opt/local/bin/notmuch
  Reason: image not found

Reverting back to prior version (@0.15.2_0) works correctly. It is possible to make notmuch run with a manual soft-link to the libnotmuch.3.dylib as:

% cd /usr/lib
% sudo ln -s /opt/local/lib/libnotmuch.3.0.0.dylib libnotmuch.3.dylib

In which case, the program does run.

Attachments (1)

notmuch.diff (3.3 KB) - added by ryandesign (Ryan Schmidt) 6 years ago.
proposed patch

Download all attachments as: .zip

Change History (5)

comment:1 Changed 6 years ago by anupamsg@…

Cc: anupamsg@… added

Cc Me!

comment:2 Changed 6 years ago by ryandesign (Ryan Schmidt)

Cc: ryandesign@… added; anupamsg@… removed
Keywords: Dylib removed
Owner: changed from macports-tickets@… to yeled@…
Summary: notmuch @0.16 dylib Error with libmotmuch.3.dylibnotmuch @0.16: libnotmuch.dylib has wrong install_name

In other words, the library's install_name is wrong.

comment:3 Changed 6 years ago by ryandesign (Ryan Schmidt)

Keywords: haspatch added

In r108886 you removed the patchfile patch-lib-Makefile.local.diff which had previously been fixing this problem. The patch should be brought back.

I also don't think the file should have been removed in r108886; it looks pretty important too for letting the python bindings find the library.

Fix the problem by first reinstating the old patches, and then patching with the attached patch:

svn cp $(port dir notmuch)/files
patch -p0 -d $(port dir notmuch) < ~/Downloads/notmuch.diff

The patch also adjusts the description so that the quotes around "Not much mail" actually show up in the long description, and switches to using smart quotes for good measure.

Changed 6 years ago by ryandesign (Ryan Schmidt)

Attachment: notmuch.diff added

proposed patch

comment:4 Changed 6 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: newclosed

In r109885.

Note: See TracTickets for help on using tickets.