mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-09 14:07:19 +08:00
added lib32-readline
This commit is contained in:
parent
f557f90c22
commit
ee475b53b6
51
lib32-readline/PKGBUILD
Normal file
51
lib32-readline/PKGBUILD
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
# Lib32 Packages for Chakra, part of chakra-project.org
|
||||||
|
#
|
||||||
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
||||||
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
||||||
|
|
||||||
|
_pkgbasename=readline
|
||||||
|
pkgname=lib32-$_pkgbasename
|
||||||
|
_patchlevel=002 #prepare for some patches
|
||||||
|
pkgver=6.1.$_patchlevel
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="GNU readline library (32-bit)"
|
||||||
|
arch=(x86_64)
|
||||||
|
url="http://tiswww.case.edu/php/chet/readline/rltop.html"
|
||||||
|
license=('GPL')
|
||||||
|
depends=('lib32-glibc' 'lib32-ncurses' $_pkgbasename)
|
||||||
|
makedepends=('gcc-multilib')
|
||||||
|
source=(http://ftp.gnu.org/gnu/readline/readline-6.1.tar.gz)
|
||||||
|
if [ $_patchlevel -gt 00 ]; then
|
||||||
|
for (( p=1; p<=$_patchlevel; p++ )); do
|
||||||
|
source=(${source[@]} http://ftp.gnu.org/gnu/readline/readline-6.1-patches/readline61-$(printf "%03d" $p))
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
md5sums=('fc2f7e714fe792db1ce6ddc4c9fb4ef3'
|
||||||
|
'c642f2e84d820884b0bf9fd176bc6c3f'
|
||||||
|
'1a76781a1ea734e831588285db7ec9b1')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
export CC="gcc -m32"
|
||||||
|
export CXX="g++ -m32"
|
||||||
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
||||||
|
|
||||||
|
cd ${srcdir}/${_pkgbasename}-6.1
|
||||||
|
for p in ../readline61-*; do
|
||||||
|
[ -e "$p" ] || continue
|
||||||
|
msg "applying patch ${p}"
|
||||||
|
patch -Np0 -i ${p}
|
||||||
|
done
|
||||||
|
|
||||||
|
# Remove RPATH from shared objects (FS#14366)
|
||||||
|
sed -i 's|-Wl,-rpath,$(libdir) ||g' support/shobj-conf
|
||||||
|
|
||||||
|
./configure --prefix=/usr --libdir=/usr/lib32
|
||||||
|
make SHLIB_LIBS=-lncurses
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd ${srcdir}/${_pkgbasename}-6.1
|
||||||
|
|
||||||
|
make DESTDIR=${pkgdir} install
|
||||||
|
rm -rf "${pkgdir}"/usr/{include,share,bin}
|
||||||
|
}
|
61
lib32-readline/readline61-001
Normal file
61
lib32-readline/readline61-001
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
READLINE PATCH REPORT
|
||||||
|
=====================
|
||||||
|
|
||||||
|
Readline-Release: 6.1
|
||||||
|
Patch-ID: readline61-001
|
||||||
|
|
||||||
|
Bug-Reported-by: guillaume.outters@free.fr
|
||||||
|
Bug-Reference-ID: <20100105230441.70D171AA7F52@asterix.local>
|
||||||
|
Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2010-01/msg00017.html
|
||||||
|
|
||||||
|
Bug-Description:
|
||||||
|
|
||||||
|
Bash-4.1/Readline-6.1 introduced a hook function that allows applications
|
||||||
|
to rewrite or modify filenames read from the file system before comparing
|
||||||
|
them with a word to be completed. The converted filename, if it matches,
|
||||||
|
needs to be inserted into the line buffer, replacing the original contents.
|
||||||
|
|
||||||
|
This fixes a completion bug on Mac OS X involving filenames containing
|
||||||
|
UTF-8 characters.
|
||||||
|
|
||||||
|
Patch (apply with `patch -p0'):
|
||||||
|
|
||||||
|
*** ../readline-6.1-patched/complete.c 2009-11-29 18:39:30.000000000 -0500
|
||||||
|
--- complete.c 2010-01-06 08:30:23.000000000 -0500
|
||||||
|
***************
|
||||||
|
*** 2139,2143 ****
|
||||||
|
if (filename_len == 0)
|
||||||
|
{
|
||||||
|
! if (_rl_match_hidden_files == 0 && HIDDEN_FILE (entry->d_name))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
--- 2139,2143 ----
|
||||||
|
if (filename_len == 0)
|
||||||
|
{
|
||||||
|
! if (_rl_match_hidden_files == 0 && HIDDEN_FILE (convfn))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
***************
|
||||||
|
*** 2220,2224 ****
|
||||||
|
}
|
||||||
|
|
||||||
|
! strcpy (temp + dirlen, entry->d_name);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
--- 2220,2224 ----
|
||||||
|
}
|
||||||
|
|
||||||
|
! strcpy (temp + dirlen, convfn);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
*** ../readline-6.1-patched/patchlevel 2008-11-18 11:01:14.000000000 -0500
|
||||||
|
--- patchlevel 2010-01-14 10:15:52.000000000 -0500
|
||||||
|
***************
|
||||||
|
*** 1,3 ****
|
||||||
|
# Do not edit -- exists only for use by patch
|
||||||
|
|
||||||
|
! 0
|
||||||
|
--- 1,3 ----
|
||||||
|
# Do not edit -- exists only for use by patch
|
||||||
|
|
||||||
|
! 1
|
47
lib32-readline/readline61-002
Normal file
47
lib32-readline/readline61-002
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
READLINE PATCH REPORT
|
||||||
|
=====================
|
||||||
|
|
||||||
|
Readline-Release: 6.1
|
||||||
|
Patch-ID: readline61-002
|
||||||
|
|
||||||
|
Bug-Reported-by: Chet Ramey <chet.ramey@case.edu>
|
||||||
|
Bug-Reference-ID:
|
||||||
|
Bug-Reference-URL:
|
||||||
|
|
||||||
|
Bug-Description:
|
||||||
|
|
||||||
|
The readline version information was not updated for the release of version 6.1.
|
||||||
|
|
||||||
|
Patch (apply with `patch -p0'):
|
||||||
|
|
||||||
|
*** ../readline-6.1-patched/readline.h 2009-08-26 23:05:55.000000000 -0400
|
||||||
|
--- readline.h 2010-01-26 10:42:42.000000000 -0500
|
||||||
|
***************
|
||||||
|
*** 40,46 ****
|
||||||
|
|
||||||
|
/* Hex-encoded Readline version number. */
|
||||||
|
! #define RL_READLINE_VERSION 0x0600 /* Readline 6.0 */
|
||||||
|
#define RL_VERSION_MAJOR 6
|
||||||
|
! #define RL_VERSION_MINOR 0
|
||||||
|
|
||||||
|
/* Readline data structures. */
|
||||||
|
--- 40,46 ----
|
||||||
|
|
||||||
|
/* Hex-encoded Readline version number. */
|
||||||
|
! #define RL_READLINE_VERSION 0x0601 /* Readline 6.1 */
|
||||||
|
#define RL_VERSION_MAJOR 6
|
||||||
|
! #define RL_VERSION_MINOR 1
|
||||||
|
|
||||||
|
/* Readline data structures. */
|
||||||
|
*** ../readline-6.1-patched/patchlevel 2008-11-18 11:01:14.000000000 -0500
|
||||||
|
--- patchlevel 2010-01-14 10:15:52.000000000 -0500
|
||||||
|
***************
|
||||||
|
*** 1,3 ****
|
||||||
|
# Do not edit -- exists only for use by patch
|
||||||
|
|
||||||
|
! 1
|
||||||
|
--- 1,3 ----
|
||||||
|
# Do not edit -- exists only for use by patch
|
||||||
|
|
||||||
|
! 2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user