pkgsrc-wip/compat32_ncurses/patches/patch-aa

36 lines
1.0 KiB
Plaintext

$NetBSD: patch-aa,v 1.19 2018/04/02 16:26:03 spz Exp $
--- ./misc/run_tic.in.orig 2017-10-24 00:16:22.000000000 +0000
+++ ./misc/run_tic.in
@@ -124,13 +124,13 @@ 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.
-if test -d "$TERMINFO"
-then
- ( cd "$TERMINFO" && rm -fr ? 2>/dev/null )
-elif test -f "$TERMINFO.db"
-then
- ( rm -f "$TERMINFO.db" 2>/dev/null )
-fi
+#if test -d "$TERMINFO"
+#then
+# ( cd "$TERMINFO" && rm -fr ? 2>/dev/null )
+#elif test -f "$TERMINFO.db"
+#then
+# ( rm -f "$TERMINFO.db" 2>/dev/null )
+#fi
if test "$ext_funcs" = 1 ; then
cat <<EOF
@@ -172,6 +172,9 @@ else
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
# all systems support symbolic links, and those that do provide a variety