This switches misc/ytree from the bizarrely obsolete re_comp(3) to POSIX regcomp(3) and thus removes the need for linking with libcompat.
ok? Index: Makefile =================================================================== RCS file: /cvs/ports/misc/ytree/Makefile,v retrieving revision 1.15 diff -u -p -r1.15 Makefile --- Makefile 11 Mar 2013 11:23:59 -0000 1.15 +++ Makefile 28 Nov 2013 12:33:09 -0000 @@ -3,6 +3,7 @@ COMMENT= DOS-XTREE(tm) look-a-like file manager DISTNAME= ytree-1.97 +REVISION= 0 CATEGORIES= misc HOMEPAGE= http://www.han.de/~werner/ytree.html @@ -20,7 +21,7 @@ USE_GROFF = Yes NO_TEST= Yes CFLAGS+= -DCOLOR_SUPPORT -DREADLINE_SUPPORT -LDFLAGS+= -lcompat -lreadline -lcurses +LDFLAGS+= -lreadline -lcurses MAKE_FLAGS+= CC=${CC} CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" do-install: Index: patches/patch-match_c =================================================================== RCS file: patches/patch-match_c diff -N patches/patch-match_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-match_c 28 Nov 2013 12:33:09 -0000 @@ -0,0 +1,21 @@ +$OpenBSD$ +--- match.c.orig Sun Jan 9 13:31:13 2011 ++++ match.c Thu Nov 28 13:27:59 2013 +@@ -9,7 +9,7 @@ + + #include "ytree.h" + +-#if defined( sun ) || defined( linux ) || defined( __NeXT__ ) || defined( OSF1 ) || defined( __OpenBSD__ ) || defined(__NetBSD__) || defined( __FreeBSD__ ) || defined( __GNU__ ) ++#if defined( sun ) || defined( linux ) || defined( __NeXT__ ) || defined( OSF1 ) || defined(__NetBSD__) || defined( __FreeBSD__ ) || defined( __GNU__ ) + #define HAS_REGEX + #endif + +@@ -19,7 +19,7 @@ + #define _REGEX_RE_COMP + #endif + +-#if defined( hpux ) || defined ( __APPLE__ ) ++#if defined( hpux ) || defined ( __APPLE__ ) || defined( __OpenBSD__ ) + #define HAS_REGCOMP + #endif + -- Christian "naddy" Weisgerber na...@mips.inka.de