summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2014-03-02 04:21:10 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-03-02 08:43:11 (GMT)
commitfb36a82a745e93afc92bb5aff29daea8daecb6d3 (patch)
tree88f3845813bcf95372041063ae19d20074261ac7
parent68af56cc3300fb8f3bef83a24d81167de91b27ca (diff)
downloadbuildroot-fb36a82a745e93afc92bb5aff29daea8daecb6d3.tar.gz
buildroot-fb36a82a745e93afc92bb5aff29daea8daecb6d3.tar.bz2
lvm2: add readline bump fix patch
Fixes: http://autobuild.buildroot.net/results/d6f/d6f4d388c62ec2137560aabbff46c4a30c584e18/ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/lvm2/lvm2-001-readline-deprecated.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/lvm2/lvm2-001-readline-deprecated.patch b/package/lvm2/lvm2-001-readline-deprecated.patch
new file mode 100644
index 0000000..d36adc3
--- /dev/null
+++ b/package/lvm2/lvm2-001-readline-deprecated.patch
@@ -0,0 +1,19 @@
+The CPPFunction typedef (among others) have been deprecated in favour of
+specific prototyped typedefs since readline 4.2.
+It's been working since because compatibility typedefs have been
+in place until they were removed in readline 6.3.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+diff -Nura LVM2.2.02.103.orig/tools/lvm.c LVM2.2.02.103/tools/lvm.c
+--- LVM2.2.02.103.orig/tools/lvm.c 2014-03-01 16:10:57.902422044 -0300
++++ LVM2.2.02.103/tools/lvm.c 2014-03-01 16:11:34.791598230 -0300
+@@ -185,7 +185,7 @@
+ char *input = NULL, *args[MAX_ARGS], **argv;
+
+ rl_readline_name = "lvm";
+- rl_attempted_completion_function = (CPPFunction *) _completion;
++ rl_attempted_completion_function = (rl_completion_func_t *) _completion;
+
+ _read_history(cmd);
+