With editors/nvi (from pkgsrc-2007Q4) on MacOS 10.5.1 I get the
following:
mini:pkgsrc/editors/nvi 83% nvi
dyld: Symbol not found: ___global_list
Referenced from: /Volumes/NetBSD/pkg/lib/libvi.0.dylib
Expected in: flat namespace
Trace/BPT trap
Exit 133
If I remove the strip option from the install command (or run nvi
directly from the work directory), nvi then appears to work normally.
Is the following an acceptable patch to fix this?
Cheers,
Simon.
--
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/editors/nvi/Makefile,v
retrieving revision 1.26
diff -d -p -u -r1.26 Makefile
--- Makefile 3 Nov 2007 13:23:53 -0000 1.26
+++ Makefile 5 Feb 2008 02:27:56 -0000
@@ -27,6 +27,7 @@ CONFIGURE_ENV+= vi_cv_include_sys_selec
.elif ${OPSYS} == "Darwin"
CONFIGURE_ENV+= vi_cv_sys5_pty=no
LDFLAGS+= -flat_namespace
+INSTALL_UNSTRIPPED= yes
.endif
WRKSRC= ${WRKDIR}/${DISTNAME}/build.unix