commit 1f0defb4ce52aaa59b5dbee9084ac11259658f0d
parent 73adbcb80587f5768c28a5285118caaffd4bd2a6
Author: Nils R <ml@hxgn.net>
Date: Tue, 25 Mar 2014 12:35:04 +0100
Patch to make st work flawlessly on OpenBSD.
Diffstat:
2 files changed, 67 insertions(+), 0 deletions(-)
diff --git a/st.suckless.org/patches/st-on-openbsd.diff b/st.suckless.org/patches/st-on-openbsd.diff
@@ -0,0 +1,25 @@
+diff --git a/Makefile b/Makefile
+--- a/Makefile
++++ b/Makefile
+@@ -49,7 +49,8 @@
+ @sed "s/VERSION/${VERSION}/g" < st.1 > ${DESTDIR}${MANPREFIX}/man1/st.1
+ @chmod 644 ${DESTDIR}${MANPREFIX}/man1/st.1
+ @echo Please see the README file regarding the terminfo entry of st.
+- @tic -s st.info
++ @sed 's/st\([^t].*\)/st-git\1/g' st.info > st-git.info
++ @tic -s st-git.info
+
+ uninstall:
+ @echo removing executable file from ${DESTDIR}${PREFIX}/bin
+diff --git a/config.def.h b/config.def.h
+--- a/config.def.h
++++ b/config.def.h
+@@ -44,7 +44,7 @@
+ static int bellvolume = 0;
+
+ /* TERM value */
+-static char termname[] = "st-256color";
++static char termname[] = "st-git-256color";
+
+ static unsigned int tabspaces = 8;
+
diff --git a/st.suckless.org/patches/st_on_openbsd.md b/st.suckless.org/patches/st_on_openbsd.md
@@ -0,0 +1,42 @@
+st on OpenBSD
+=============
+
+Description
+-----------
+
+On OpenBSD, terminfo descriptions are searched for in terminfo
+databases, before terminfo files are considered. At present,
+the terminfo information stored in the systemwide terminfo db
+are from st version 0.1.1, conflicting with newer versions of
+st and thus causing misbehaviour. This patch renames the name
+of st to st-git, so that no terminfo description can be found
+in the OpenBSD database, and therefore the right information is
+loaded from the installed terminfo file.
+
+
+Notes
+-----
+
+I tested this diff with the latest code from git, but the principle
+applies to the released versions of st as well, i just have not tried
+them. Once a new stable version of st is out, the corresponding
+changes to st.info can be pushed upstream (to ncurses) and then be
+merged back to OpenBSD, making this patch obsolete for future stable
+versions of st. More information on the issue can be found in this
+[thread][1].
+
+
+
+Download
+--------
+
+* [st-on-openbsd.diff][2]
+
+[1]: http://marc.info/?l=openbsd-misc&m=139540215025526&w=2
+[2]: st-on-openbsd.diff
+
+
+Author
+------
+
+ * Nils Reuße - nilsreusse @ gmail