aboutsummaryrefslogtreecommitdiff
path: root/examples/ncurses/patches/04-fix-tabset-directory.diff
diff options
context:
space:
mode:
authorIgor Pashev <igor.pashev@nexenta.com>2012-12-19 13:02:54 +0400
committerIgor Pashev <igor.pashev@nexenta.com>2012-12-19 13:05:12 +0400
commit3e567218b60d7f885e769e1a2a07d84d38f11c13 (patch)
treef43668e026c492f304f4c827fc4b567ca85b1963 /examples/ncurses/patches/04-fix-tabset-directory.diff
parentfdcf880b3c8c67f08453f553474a551e9707d29d (diff)
downloadcibs-3e567218b60d7f885e769e1a2a07d84d38f11c13.tar.gz
Update examples
Diffstat (limited to 'examples/ncurses/patches/04-fix-tabset-directory.diff')
-rw-r--r--examples/ncurses/patches/04-fix-tabset-directory.diff45
1 files changed, 45 insertions, 0 deletions
diff --git a/examples/ncurses/patches/04-fix-tabset-directory.diff b/examples/ncurses/patches/04-fix-tabset-directory.diff
new file mode 100644
index 0000000..896bf57
--- /dev/null
+++ b/examples/ncurses/patches/04-fix-tabset-directory.diff
@@ -0,0 +1,45 @@
+Description: Set tabset directory to /usr/share/tabset
+ By default tun-tic.sh assumes the tabset directory is a sibling to
+ the default terminfo directory, which is wrong the tabset files are
+ installed into /usr/share/tabset, but the default terminfo directory
+ should be /etc/terminfo rather than /usr/share/terminfo. This patch
+ corrects that assumption.
+Author: Sven Joachim <svenjoac@gmx.de>
+Bug-Debian: http://bugs.debian.org/509919
+Bug-Debian: http://bugs.debian.org/653435
+Forwarded: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653435#18
+Last-Update: 2012-01-23
+
+---
+ misc/Makefile.in | 2 +-
+ misc/gen_edit.sh | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+--- a/misc/gen_edit.sh
++++ b/misc/gen_edit.sh
+@@ -37,12 +37,12 @@
+ # The leaf directory names (lib, tabset, terminfo)
+ #
+
+-: ${ticdir=@TERMINFO@}
++: ${datadir=@datadir@}
+ : ${xterm_new=@WHICH_XTERM@}
+
+ # If we're not installing into /usr/share/, we'll have to adjust the location
+ # of the tabset files in terminfo.src (which are in a parallel directory).
+-TABSET=`echo $ticdir | sed -e 's%/terminfo$%/tabset%'`
++TABSET=${datadir}/tabset
+ if test "x$TABSET" != "x/usr/share/tabset" ; then
+ cat <<EOF
+ s%/usr/share/tabset%$TABSET%g
+--- a/misc/Makefile.in
++++ b/misc/Makefile.in
+@@ -120,7 +120,7 @@ terminfo.tmp : run_tic.sed $(source)
+
+ run_tic.sed :
+ WHICH_XTERM=@WHICH_XTERM@ \
+- ticdir=${ticdir} \
++ datadir=${datadir} \
+ $(SHELL) $(srcdir)/gen_edit.sh >$@
+
+ $(DESTDIR)$(bindir) \