Opened 11 years ago

Closed 11 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 Carsten Schmidt)
Port: notmuch

Description

Hi,

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 Carsten Schmidt) 11 years ago.
proposed patch

Download all attachments as: .zip

Change History (5)

comment:1 Changed 11 years ago by anupamsg@…

Cc: anupamsg@… added

Cc Me!

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten 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 11 years ago by ryandesign (Ryan Carsten 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 patch-bindings-python-notmuch-globals.py.diff 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 https://svn.macports.org/repository/macports/trunk/dports/mail/notmuch/files/patch-bindings-python-notmuch-globals.py.diff@108885 https://svn.macports.org/repository/macports/trunk/dports/mail/notmuch/files/patch-lib-Makefile.local.diff@108885 $(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 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: notmuch.diff added

proposed patch

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

Resolution: fixed
Status: newclosed

In r109885.

Note: See TracTickets for help on using tickets.