Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#33559 closed defect (fixed)

levmar: port test fails to find local library

Reported by: lockhart (Thomas Lockhart) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: haspatch maintainer Cc: ryandesign (Ryan Carsten Schmidt), pixilla (Bradley Giesbrecht)
Port: levmar

Description

The current levmar port fails to run "port test" if the port is not already installed. The locally-built lmdemo program does not find liblevmar.2.dylib since the install_name for the library is @rpath/liblevmar.2.dylib and the required rpath is not known to lmdemo.

Attachments (2)

Portfile.lmdemo.patch (1.3 KB) - added by lockhart (Thomas Lockhart) 12 years ago.
Patch on the latest Portfile to allow "port test" to run successfully. Also requires slight change to the Makefile.so patch which is posted here separately.
patch-Makefile.so.diff (2.4 KB) - added by lockhart (Thomas Lockhart) 12 years ago.
Replacement for current patch file to allow running lmdemo locally for "port test". Adds a local soft link for the major-versioned library.

Download all attachments as: .zip

Change History (7)

Changed 12 years ago by lockhart (Thomas Lockhart)

Attachment: Portfile.lmdemo.patch added

Patch on the latest Portfile to allow "port test" to run successfully. Also requires slight change to the Makefile.so patch which is posted here separately.

Changed 12 years ago by lockhart (Thomas Lockhart)

Attachment: patch-Makefile.so.diff added

Replacement for current patch file to allow running lmdemo locally for "port test". Adds a local soft link for the major-versioned library.

comment:1 in reply to:  description Changed 12 years ago by lockhart (Thomas Lockhart)

Replying to lockhart@…:

The current levmar port fails to run "port test" if the port is not already installed. The locally-built lmdemo program does not find liblevmar.2.dylib since the install_name for the library is @rpath/liblevmar.2.dylib and the required rpath is not known to lmdemo.

The Portfile patch and replacement for the makefile patch allow "port test" to run successfully. afaict this is ready to publish. Thanks!

comment:2 Changed 12 years ago by pixilla (Bradley Giesbrecht)

Resolution: fixed
Status: newclosed

Thanks Tom. See r90600

comment:3 Changed 12 years ago by pixilla (Bradley Giesbrecht)

Keywords: maintainer added

comment:4 Changed 12 years ago by pixilla (Bradley Giesbrecht)

Tom, it looked like this patch "may" result in changes to installed files so added a revbump.

comment:5 in reply to:  4 Changed 12 years ago by lockhart (Thomas Lockhart)

Replying to pixilla@…:

Tom, it looked like this patch "may" result in changes to installed files so added a revbump.

OK. I'd be putting a rev number into every one of these packages.

Note: See TracTickets for help on using tickets.