Created
April 3, 2021 14:47
-
-
Save cwfoo/01abac5c39f398b7e7b16a2b87aa518b to your computer and use it in GitHub Desktop.
Patch for installing ex-vi in Debian and Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Patch for ex-vi (Release 050325, "Version 4.0 (gritter) 3/25/05"). | |
Changes: | |
* Use the correct path for 'install'. | |
* Use ncurses instead of termlib in order to prevent the following error when | |
starting vi: | |
xterm-256color: Unknown terminal type | |
Visual needs addressible cursor or upline capability | |
To apply this patch: | |
$ cd ex-050325/ | |
$ patch -p1 < this-patch-file | |
References: | |
* "Running the Traditional (Original) Vi Text Editor" | |
http://forums.debian.net/viewtopic.php?f=3&t=130599 | |
* "Visual needs addressible cursor or upline capability" | |
https://stackoverflow.com/questions/18571615/visual-needs-addressible-cursor-or-upline-capability | |
(See answer by user "Paul" on 2019-10-02). | |
--- ex-050325/Makefile 2005-03-24 23:50:09.000000000 +0000 | |
+++ new/Makefile 2021-03-10 00:00:00.000000000 +0000 | |
@@ -94,7 +94,7 @@ | |
# | |
# A BSD-like install program. GNU install will fit well here, too. | |
# | |
-INSTALL = /usr/ucb/install | |
+INSTALL = /usr/bin/install | |
# | |
# Compiler and linker flags. | |
@@ -205,13 +205,13 @@ | |
# | |
# You may also get terminfo access by using the ncurses library. | |
# | |
-#TERMLIB = ncurses | |
+TERMLIB = ncurses | |
# | |
# The preferred choice for ex on Linux distributions, other systems that | |
# provide a good termcap file, or when setting the TERMCAP environment | |
# variable is deemed sufficient, is the included 2.11BSD termcap library. | |
# | |
-TERMLIB = termlib | |
+#TERMLIB = termlib | |
# | |
# Since ex uses sbrk() internally, a conflict with the libc's version of |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Actually, this patch is not necessary if one runs
make
like this:make INSTALL=install TERMLIB=ncurses
.