Opened 15 years ago

Closed 15 years ago

#20528 closed defect (fixed)

testdisk links with Mac OS X libraries instead of MacPorts'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: nerdling (Jeremy Lavergne)
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 (1)

Portfile-testdisk.diff (1.6 KB) - added by nerdling (Jeremy Lavergne) 15 years ago.
ncurses isn't working but others are now

Download all attachments as: .zip

Change History (7)

comment:1 Changed 15 years ago by nerdling (Jeremy Lavergne)

Cc Me!

comment:2 Changed 15 years ago by nerdling (Jeremy Lavergne)

Owner: changed from macports-tickets@… to snc@…
Status: newassigned

comment:3 Changed 15 years ago by nerdling (Jeremy Lavergne)

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 15 years ago by nerdling (Jeremy Lavergne)

Attachment: Portfile-testdisk.diff added

ncurses isn't working but others are now

comment:4 Changed 15 years ago by nerdling (Jeremy Lavergne)

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

comment:5 Changed 15 years ago by nerdling (Jeremy Lavergne)

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

comment:6 Changed 15 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: assignedclosed

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.