Opened 15 years ago

Closed 15 years ago

#19758 closed defect (fixed)

libedit port links to both macports- & native-ncurses libs

Reported by: pgnet.dev+macports@… Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc:
Port: libedit

Description

i'e installed ncurses via macports,

port installed ncurses The following ports are currently installed:

ncurses @5.7_0 (active)

libedit's port depends on ncurses-port,

grep ncurses /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libedit/Portfile

depends_lib port:ncurses

@ install of libedit,

port install libedit

the resultant lib is linked against BOTH macports- & native-ncurses libs,

otool -L /opt/local/lib/libedit.0.dylib

/opt/local/lib/libedit.0.dylib (compatibility version 1.0.0, current version 1.28.0) /opt/local/lib/libncurses.5.dylib (compatibility version 5.0.0, current version 5.0.0) /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.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 111.1.4)

repeating with an attempted portfile override,

echo 'configure.ldflags "-bind_at_load 'ncurses5-config --libs'"' >> /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libedit/Portfile

echo 'configure.cppflags "'ncurses5-config --cflags'"' >> /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/libedit/Portfile

gives the same result -- BOTH libs are linked.

should be just the macports-installed libs ...

Change History (5)

comment:1 Changed 15 years ago by jameskyle@…

I see this behavior as well, except in mine the installed macrpots ncurses is not linked at all:

port contents ncurses
Port ncurses contains:
  /opt/local/bin/ncurses5-config
  /opt/local/include/ncurses/curses.h
  /opt/local/include/ncurses/cursesapp.h
  /opt/local/include/ncurses/cursesf.h
  /opt/local/include/ncurses/cursesm.h
  /opt/local/include/ncurses/cursesp.h
  /opt/local/include/ncurses/cursesw.h
  /opt/local/include/ncurses/cursslk.h
  /opt/local/include/ncurses/eti.h
  /opt/local/include/ncurses/etip.h
  /opt/local/include/ncurses/form.h
  /opt/local/include/ncurses/menu.h
  /opt/local/include/ncurses/ncurses.h
  /opt/local/include/ncurses/ncurses_dll.h
  /opt/local/include/ncurses/panel.h
  /opt/local/include/ncurses/term.h
  /opt/local/include/ncurses/termcap.h
  /opt/local/include/ncurses/unctrl.h
  /opt/local/lib/libform.5.dylib
  /opt/local/lib/libform.a
  /opt/local/lib/libform.dylib
  /opt/local/lib/libmenu.5.dylib
  /opt/local/lib/libmenu.a
  /opt/local/lib/libmenu.dylib
  /opt/local/lib/libncurses++.a
  /opt/local/lib/libncurses.5.dylib
  /opt/local/lib/libncurses.a
  /opt/local/lib/libncurses.dylib
  /opt/local/lib/libpanel.5.dylib
  /opt/local/lib/libpanel.a
  /opt/local/lib/libpanel.dylib

Output from otool:

otool -L /opt/local/lib/libedit.dylib
/opt/local/lib/libedit.dylib:
	/opt/local/lib/libedit.0.dylib (compatibility version 1.0.0, current version 1.28.0)
	/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.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 111.1.4)

comment:2 Changed 15 years ago by blb@…

Owner: changed from macports-tickets@… to mcalhoun@…
Port: libedit added

comment:3 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Status: newassigned

comment:4 Changed 15 years ago by blb@…

Milestone: MacPorts 1.8.0

comment:5 Changed 15 years ago by tobypeterson

Resolution: fixed
Status: assignedclosed

Should be fixed in r51581

Note: See TracTickets for help on using tickets.