parted: apply patch to build with readline 6.3

This commit is contained in:
Juergen Daubert 2014-03-04 15:28:35 +01:00
parent 70269429ea
commit 40a6c66cb0
3 changed files with 21 additions and 3 deletions

View File

@ -1 +1,2 @@
8bfd0f247c32c6af0d67aa560894d67e parted-3.1-readline-6.3.patch
5d89d64d94bcfefa9ce8f59f4b81bdcb parted-3.1.tar.xz

View File

@ -1,15 +1,20 @@
# Description: A library and frontend to manipulate partition tables
# URL: http://www.gnu.org/software/parted/
# Maintainer: Matt Housh, jaeger at morpheus dot net
# Depends on: libdevmapper, readline, eudev, util-linux
# Depends on: libdevmapper, readline, udev, util-linux
name=parted
version=3.1
release=1
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz)
release=2
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz
$name-$version-readline-6.3.patch)
build() {
cd $name-$version
# http://article.gmane.org/gmane.comp.gnu.parted.bugs/11261
patch -p1 -i $SRC/$name-$version-readline-6.3.patch
./configure --prefix=/usr \
--mandir=/usr/man
make

View File

@ -0,0 +1,12 @@
diff -Nru parted-3.1.orig/parted/ui.c parted-3.1/parted/ui.c
--- parted-3.1.orig/parted/ui.c 2014-03-04 11:20:01.556849738 +0100
+++ parted-3.1/parted/ui.c 2014-03-04 11:21:36.810139757 +0100
@@ -1474,7 +1474,7 @@
#ifdef HAVE_LIBREADLINE
if (!opt_script_mode) {
rl_initialize ();
- rl_attempted_completion_function = (CPPFunction*) complete_function;
+ rl_attempted_completion_function = (rl_completion_func_t *) complete_function;
readline_state.in_readline = 0;
}
#endif