$NetBSD: patch-aa,v 1.17 2014/05/11 16:55:17 rodent Exp $

--- misc/run_tic.in.orig	Wed Feb 23 23:30:15 2011
+++ misc/run_tic.in
@@ -122,7 +122,7 @@ fi
 # would generate a lot of confusing error messages if we tried to overwrite it.
 # We explicitly remove its contents rather than the directory itself, in case
 # the directory is actually a symbolic link.
-( test -d "$TERMINFO" && cd $TERMINFO && rm -fr ? 2>/dev/null )
+#( test -d "$TERMINFO" && cd $TERMINFO && rm -fr ? 2>/dev/null )
 
 if test "$ext_funcs" = 1 ; then
 cat <<EOF
@@ -163,6 +163,9 @@ else
 	exit 1
 fi
 fi
+
+# For NetBSD pkgsrc, don't bother with setting a symbolic link.
+exit 0
 
 # Make a symbolic link to provide compatibility with applications that expect
 # to find terminfo under /usr/lib.  That is, we'll _try_ to do that.  Not
