diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-03-28 22:50:34 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-03-30 22:25:43 +0000 |
commit | 135c4f7b560073a1f9444ccc36402e0721b1dae1 (patch) | |
tree | eec030089e66cfae765ff27f08ed9b347a974b70 /meta/recipes-core/readline/readline/readline82-009.patch | |
parent | d5d10db429917026b331279288bab9af31447316 (diff) | |
download | poky-135c4f7b560073a1f9444ccc36402e0721b1dae1.tar.gz |
readline: Apply patches from readline-8.2-patches
These patches are submitted/backported to 8.2 release
and address issues reported by different distros.
(From OE-Core rev: c74048f5ff2e90b06c7a6d5866db4b94a6f1539d)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/readline/readline/readline82-009.patch')
-rw-r--r-- | meta/recipes-core/readline/readline/readline82-009.patch | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/meta/recipes-core/readline/readline/readline82-009.patch b/meta/recipes-core/readline/readline/readline82-009.patch new file mode 100644 index 0000000000..1fcf7b3535 --- /dev/null +++ b/meta/recipes-core/readline/readline/readline82-009.patch | |||
@@ -0,0 +1,76 @@ | |||
1 | READLINE PATCH REPORT | ||
2 | ===================== | ||
3 | |||
4 | Readline-Release: 8.2 | ||
5 | Patch-ID: readline82-009 | ||
6 | |||
7 | Bug-Reported-by: Stefan H. Holek <stefan@epy.co.at> | ||
8 | Bug-Reference-ID: <50F8DA45-B7F3-4DE1-AB94-19AE42649CDC@epy.co.at> | ||
9 | Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-readline/2022-10/msg00021.html | ||
10 | |||
11 | Bug-Description: | ||
12 | |||
13 | Fix issue where the directory name portion of the word to be completed (the | ||
14 | part that is passed to opendir()) requires both tilde expansion and dequoting. | ||
15 | Readline only performed tilde expansion in this case, so filename completion | ||
16 | would fail. | ||
17 | |||
18 | Patch (apply with `patch -p0'): | ||
19 | |||
20 | Upstream-Status: Submitted [https://ftp.gnu.org/gnu/readline/readline-8.2-patches/] | ||
21 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
22 | |||
23 | *** ../readline-8.2-patched/complete.c 2022-04-05 10:47:06.000000000 -0400 | ||
24 | --- complete.c 2022-10-26 15:08:51.000000000 -0400 | ||
25 | *************** | ||
26 | *** 2527,2531 **** | ||
27 | xfree (dirname); | ||
28 | dirname = temp; | ||
29 | ! tilde_dirname = 1; | ||
30 | } | ||
31 | |||
32 | --- 2527,2532 ---- | ||
33 | xfree (dirname); | ||
34 | dirname = temp; | ||
35 | ! if (*dirname != '~') | ||
36 | ! tilde_dirname = 1; /* indicate successful tilde expansion */ | ||
37 | } | ||
38 | |||
39 | *************** | ||
40 | *** 2546,2554 **** | ||
41 | users_dirname = savestring (dirname); | ||
42 | } | ||
43 | ! else if (tilde_dirname == 0 && rl_completion_found_quote && rl_filename_dequoting_function) | ||
44 | { | ||
45 | ! /* delete single and double quotes */ | ||
46 | xfree (dirname); | ||
47 | ! dirname = savestring (users_dirname); | ||
48 | } | ||
49 | directory = opendir (dirname); | ||
50 | --- 2547,2560 ---- | ||
51 | users_dirname = savestring (dirname); | ||
52 | } | ||
53 | ! else if (rl_completion_found_quote && rl_filename_dequoting_function) | ||
54 | { | ||
55 | ! /* We already ran users_dirname through the dequoting function. | ||
56 | ! If tilde_dirname == 1, we successfully performed tilde expansion | ||
57 | ! on dirname. Now we need to reconcile those results. We either | ||
58 | ! just copy the already-dequoted users_dirname or tilde expand it | ||
59 | ! if we tilde-expanded dirname. */ | ||
60 | ! temp = tilde_dirname ? tilde_expand (users_dirname) : savestring (users_dirname); | ||
61 | xfree (dirname); | ||
62 | ! dirname = temp; | ||
63 | } | ||
64 | directory = opendir (dirname); | ||
65 | |||
66 | *** ../readline-8.2/patchlevel 2013-11-15 08:11:11.000000000 -0500 | ||
67 | --- patchlevel 2014-03-21 08:28:40.000000000 -0400 | ||
68 | *************** | ||
69 | *** 1,3 **** | ||
70 | # Do not edit -- exists only for use by patch | ||
71 | |||
72 | ! 8 | ||
73 | --- 1,3 ---- | ||
74 | # Do not edit -- exists only for use by patch | ||
75 | |||
76 | ! 9 | ||