New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #20528 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

testdisk links with Mac OS X libraries instead of MacPorts'

Reported by: ryandesign@… Owned by: snc@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc:
Port: testdisk

Description

$ otool -L /mp/sbin/testdisk
/mp/sbin/testdisk:
        /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
        /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
        /usr/lib/libiconv.2.dylib (compatibility version 5.0.0, current version 5.0.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.11)
$

testdisk links with the system's ncurses, zlib and iconv libraries. It should link with and declare dependencies on the MacPorts versions instead.

Attachments

Portfile-testdisk.diff (1.6 KB) - added by snc@… 4 years ago.
ncurses isn't working but others are now

Change History

comment:1 Changed 4 years ago by snc@…

Cc Me!

comment:2 Changed 4 years ago by snc@…

  • Owner changed from macports-tickets@… to snc@…
  • Status changed from new to assigned

comment:3 Changed 4 years ago by snc@…

configure.args-append   --with-ncurses-lib=${prefix}/lib \
                        --with-ncurses-includes=${prefix}/include/ncurses/ \
                        --with-giconv-lib=${prefix}/lib \
                        --with-giconv-includes=${prefix}/include/

When I specify the flags for ncurses then it doesn't get linked, and magically libz links with macports when I do that.

	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4)

Suggestions anyone?

Changed 4 years ago by snc@…

ncurses isn't working but others are now

comment:4 Changed 4 years ago by snc@…

I've put in a patch for now … r55208. More investigation later.

comment:5 Changed 4 years ago by snc@…

Ryan, can you check into this again? I can't seem to get it further than r55208.

comment:6 Changed 4 years ago by snc@…

  • Status changed from assigned to closed
  • Resolution set to fixed

That looks like it's as fixed as it's going to get. If more needs done, feel free to send a suggestion on the next trick.

Note: See TracTickets for help on using tickets.