diff options
author | Juergen Daubert <jue@jue.li> | 2014-03-04 15:28:35 +0100 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2014-03-04 15:28:35 +0100 |
commit | 40a6c66cb0d612b66fc35c26dd817f1adf4d86a6 (patch) | |
tree | cabbb7edb9c3c19b9fdcb8a1373fb95b7d2b322d /parted | |
parent | 70269429ea096d01d7a03ba39f174ca633a20355 (diff) | |
download | opt-40a6c66cb0d612b66fc35c26dd817f1adf4d86a6.tar.gz opt-40a6c66cb0d612b66fc35c26dd817f1adf4d86a6.tar.xz |
parted: apply patch to build with readline 6.3
Diffstat (limited to 'parted')
-rw-r--r-- | parted/.md5sum | 1 | ||||
-rw-r--r-- | parted/Pkgfile | 11 | ||||
-rw-r--r-- | parted/parted-3.1-readline-6.3.patch | 12 |
3 files changed, 21 insertions, 3 deletions
diff --git a/parted/.md5sum b/parted/.md5sum index 78b756d4b..720b87e40 100644 --- a/parted/.md5sum +++ b/parted/.md5sum @@ -1 +1,2 @@ +8bfd0f247c32c6af0d67aa560894d67e parted-3.1-readline-6.3.patch 5d89d64d94bcfefa9ce8f59f4b81bdcb parted-3.1.tar.xz diff --git a/parted/Pkgfile b/parted/Pkgfile index 01da340a7..b3ace08e4 100644 --- a/parted/Pkgfile +++ b/parted/Pkgfile @@ -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 diff --git a/parted/parted-3.1-readline-6.3.patch b/parted/parted-3.1-readline-6.3.patch new file mode 100644 index 000000000..7b6502f9c --- /dev/null +++ b/parted/parted-3.1-readline-6.3.patch @@ -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 |