6e73c7f2630ad1676514c976f3c8be0e3a70b427
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / readline / 0005-patchlevel-5.patch
1 From http://ftp.gnu.org/pub/gnu/readline/readline-6.3-patches/readline63-005
2
3 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
4
5                            READLINE PATCH REPORT
6                            =====================
7
8 Readline-Release: 6.3
9 Patch-ID: readline63-005
10
11 Bug-Reported-by:        Juergen Daubert <jue@jue.li>
12 Bug-Reference-ID:       <20140303180430.GA7346@jue.netz>
13 Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-readline/2014-03/msg00002.html
14
15 Bug-Description:
16
17 There are still applications using the deprecated Function/VFunction/etc.
18 typedefs in rltypedefs.h.  This patch restores the typedefs, but attempts
19 to mark them as deprecated using gcc/clang attributes.  Thanks to Max Horn
20 for the suggestion.
21
22 Patch (apply with `patch -p0'):
23
24 *** a/readline-6.3-patched/rltypedefs.h 2011-03-26 14:53:31.000000000 -0400
25 --- b/rltypedefs.h      2014-04-10 11:30:45.000000000 -0400
26 ***************
27 *** 27,30 ****
28 --- 27,49 ----
29   #endif
30   
31 + /* Old-style, attempt to mark as deprecated in some way people will notice. */
32
33 + #if !defined (_FUNCTION_DEF)
34 + #  define _FUNCTION_DEF
35
36 + #if defined(__GNUC__) || defined(__clang__)
37 + typedef int Function () __attribute__ ((deprecated));
38 + typedef void VFunction () __attribute__ ((deprecated));
39 + typedef char *CPFunction () __attribute__ ((deprecated));
40 + typedef char **CPPFunction () __attribute__ ((deprecated));
41 + #else
42 + typedef int Function ();
43 + typedef void VFunction ();
44 + typedef char *CPFunction ();
45 + typedef char **CPPFunction ();
46 + #endif
47
48 + #endif /* _FUNCTION_DEF */
49
50   /* New style. */
51   
52 *** a/readline-6.3/patchlevel   2013-11-15 08:11:11.000000000 -0500
53 --- b/patchlevel        2014-03-21 08:28:40.000000000 -0400
54 ***************
55 *** 1,3 ****
56   # Do not edit -- exists only for use by patch
57   
58 ! 4
59 --- 1,3 ----
60   # Do not edit -- exists only for use by patch
61   
62 ! 5