diff options
Diffstat (limited to 'repos/extra/readline')
| -rw-r--r-- | repos/extra/readline/.checksum | 2 | ||||
| -rw-r--r-- | repos/extra/readline/.files | 49 | ||||
| -rw-r--r-- | repos/extra/readline/abuild | 11 | ||||
| -rw-r--r-- | repos/extra/readline/readline-8.2-upstream_fix-1.patch | 31 |
4 files changed, 93 insertions, 0 deletions
diff --git a/repos/extra/readline/.checksum b/repos/extra/readline/.checksum new file mode 100644 index 00000000..4ab34f94 --- /dev/null +++ b/repos/extra/readline/.checksum @@ -0,0 +1,2 @@ +2899766e6e4a2765460345351e4575967f607f8192dbf0ed7c8db11948d1ea61 readline-8.2-upstream_fix-1.patch +8ed29b72406bb2bbcafd8dde1486ee108293e5cefe710f84b63b066207adf92f readline-8.2.tar.gz diff --git a/repos/extra/readline/.files b/repos/extra/readline/.files new file mode 100644 index 00000000..23478412 --- /dev/null +++ b/repos/extra/readline/.files @@ -0,0 +1,49 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/readline/ +-rw-r--r-- root/root usr/include/readline/chardefs.h +-rw-r--r-- root/root usr/include/readline/history.h +-rw-r--r-- root/root usr/include/readline/keymaps.h +-rw-r--r-- root/root usr/include/readline/readline.h +-rw-r--r-- root/root usr/include/readline/rlconf.h +-rw-r--r-- root/root usr/include/readline/rlstdc.h +-rw-r--r-- root/root usr/include/readline/rltypedefs.h +-rw-r--r-- root/root usr/include/readline/tilde.h +drwxr-xr-x root/root usr/lib/ +lrwxrwxrwx root/root usr/lib/libhistory.so -> libhistory.so.8 +lrwxrwxrwx root/root usr/lib/libhistory.so.8 -> libhistory.so.8.2 +-rwxr-xr-x root/root usr/lib/libhistory.so.8.2 +lrwxrwxrwx root/root usr/lib/libreadline.so -> libreadline.so.8 +lrwxrwxrwx root/root usr/lib/libreadline.so.8 -> libreadline.so.8.2 +-rwxr-xr-x root/root usr/lib/libreadline.so.8.2 +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/history.pc +-rw-r--r-- root/root usr/lib/pkgconfig/readline.pc +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/info/ +-rw-r--r-- root/root usr/share/info/history.info.gz +-rw-r--r-- root/root usr/share/info/readline.info.gz +-rw-r--r-- root/root usr/share/info/rluserman.info.gz +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man3/ +-rw-r--r-- root/root usr/share/man/man3/history.3.gz +-rw-r--r-- root/root usr/share/man/man3/readline.3.gz +drwxr-xr-x root/root usr/share/readline/ +-rw-r--r-- root/root usr/share/readline/excallback.c +-rw-r--r-- root/root usr/share/readline/fileman.c +-rw-r--r-- root/root usr/share/readline/hist_erasedups.c +-rw-r--r-- root/root usr/share/readline/hist_purgecmd.c +-rw-r--r-- root/root usr/share/readline/histexamp.c +-rw-r--r-- root/root usr/share/readline/manexamp.c +-rw-r--r-- root/root usr/share/readline/rl-callbacktest.c +-rw-r--r-- root/root usr/share/readline/rl-fgets.c +-rw-r--r-- root/root usr/share/readline/rl-timeout.c +-rw-r--r-- root/root usr/share/readline/rl.c +-rw-r--r-- root/root usr/share/readline/rlbasic.c +-rw-r--r-- root/root usr/share/readline/rlcat.c +-rw-r--r-- root/root usr/share/readline/rlevent.c +-rw-r--r-- root/root usr/share/readline/rlkeymaps.c +-rw-r--r-- root/root usr/share/readline/rlptytest.c +-rw-r--r-- root/root usr/share/readline/rltest.c +-rw-r--r-- root/root usr/share/readline/rlversion.c diff --git a/repos/extra/readline/abuild b/repos/extra/readline/abuild new file mode 100644 index 00000000..06128c3b --- /dev/null +++ b/repos/extra/readline/abuild @@ -0,0 +1,11 @@ +name=readline +version=8.2 +release=1 +source="https://ftp.gnu.org/gnu/$name/$name-$version.tar.gz + readline-8.2-upstream_fix-1.patch" + +build() { + ./configure --prefix=/usr --with-curses + make SHLIB_LIBS="-lncursesw" + make SHLIB_LIBS="-lncursesw" DESTDIR=$PKG install +} diff --git a/repos/extra/readline/readline-8.2-upstream_fix-1.patch b/repos/extra/readline/readline-8.2-upstream_fix-1.patch new file mode 100644 index 00000000..86544f69 --- /dev/null +++ b/repos/extra/readline/readline-8.2-upstream_fix-1.patch @@ -0,0 +1,31 @@ +Submitted By: Bruce Dubbs <bdubbs@linuxfromscratch.org> +Date: 2021-10-12 +Initial Package Version: 8.2 +Upstream Status: Applied +Origin: Upstream release repository + Starting a readline applications with an invalid locale + specification for LC_ALL/LANG/LC_CTYPE can cause the shell + to crash. + +diff -Naur readline-8.2-orig/nls.c readline-8.2/nls.c +--- readline-8.2-orig/nls.c 2022-08-15 08:38:51.000000000 -0500 ++++ readline-8.2/nls.c 2022-10-12 19:51:35.881738300 -0500 +@@ -141,6 +141,10 @@ + if (lspec == 0) + lspec = ""; + ret = setlocale (LC_CTYPE, lspec); /* ok, since it does not change locale */ ++ if (ret == 0 || *ret == 0) ++ ret = setlocale (LC_CTYPE, (char *)NULL); ++ if (ret == 0 || *ret == 0) ++ ret = RL_DEFAULT_LOCALE; + #else + ret = (lspec == 0 || *lspec == 0) ? RL_DEFAULT_LOCALE : lspec; + #endif +diff -Naur readline-8.2-orig/patchlevel readline-8.2/patchlevel +--- readline-8.2-orig/patchlevel 2020-05-21 13:22:40.000000000 -0500 ++++ readline-8.2/patchlevel 2022-10-12 19:51:35.881738300 -0500 +@@ -1,3 +1,3 @@ + # Do not edit -- exists only for use by patch + +-0 ++1 |