commit 1f0defb4ce52aaa59b5dbee9084ac11259658f0d
Author: Nils R <ml_AT_hxgn.net>
Date: Tue Mar 25 12:35:04 2014 +0100
Patch to make st work flawlessly on OpenBSD.
diff --git a/st.suckless.org/patches/st-on-openbsd.diff b/st.suckless.org/patches/st-on-openbsd.diff
new file mode 100644
index 0000000..05954a2
--- /dev/null
+++ b/st.suckless.org/patches/st-on-openbsd.diff
_AT_@ -0,0 +1,25 @@
+diff --git a/Makefile b/Makefile
+--- a/Makefile
++++ b/Makefile
+_AT_@ -49,7 +49,8 @@
+ _AT_sed "s/VERSION/${VERSION}/g" < st.1 > ${DESTDIR}${MANPREFIX}/man1/st.1
+ _AT_chmod 644 ${DESTDIR}${MANPREFIX}/man1/st.1
+ _AT_echo Please see the README file regarding the terminfo entry of st.
+- _AT_tic -s st.info
++ _AT_sed 's/st\([^t].*\)/st-git/g' st.info > st-git.info
++ _AT_tic -s st-git.info
+
+ uninstall:
+ _AT_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
+_AT_@ -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
new file mode 100644
index 0000000..6dd3cfb
--- /dev/null
+++ b/st.suckless.org/patches/st_on_openbsd.md
_AT_@ -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 _AT_ gmail
Received on Tue Mar 25 2014 - 12:35:59 CET