patches/ltrace/0.7.3/100-ltrace.git-a77b267abb870c935f9b4187ca31409fa5eb9dcb.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Tue Mar 11 22:11:43 2014 +0100 (2014-03-11)
changeset 3293 e11a8a2e225d
permissions -rw-r--r--
comptools: do not force build of make-3.81 unless really needed

On systems with make-3.82, we forcibly force the build and the use
of make-3.81

But some newer tools break when building with make-3.81. For example,
eglibc-3.18 breaks.

Introduce a new blind options that tools may select if they require
make-3.81. If the system does not have make-3.81, and this option is
selected, then we force the build of make-3.81. Otherwise, we leave
it to the user to decide on his own.

Note that no component selects this option for now. It will come in
later patches as we find them.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 From a77b267abb870c935f9b4187ca31409fa5eb9dcb Mon Sep 17 00:00:00 2001
     2 From: Peter Wu <lekensteyn@gmail.com>
     3 Date: Thu, 26 Sep 2013 00:55:55 +0200
     4 Subject: [PATCH] Fix compile warning about unused typedef
     5 
     6 Switch assertion to style as used by the Linux kernel (BUILD_BUG_ON)
     7 
     8 Signed-off-by: Peter Wu <lekensteyn@gmail.com>
     9 ---
    10  lens_default.c | 2 +-
    11  value.c        | 2 +-
    12  2 files changed, 2 insertions(+), 2 deletions(-)
    13 
    14 diff --git a/lens_default.c b/lens_default.c
    15 index e0c0566..84b74ea 100644
    16 --- a/lens_default.c
    17 +++ b/lens_default.c
    18 @@ -345,7 +345,7 @@ format_array(FILE *stream, struct value *value, struct value_dict *arguments,
    19  {
    20  	/* We need "long" to be long enough to cover the whole address
    21  	 * space.  */
    22 -	typedef char assert__long_enough_long[-(sizeof(long) < sizeof(void *))];
    23 +	(void)sizeof(char[1 - 2*(sizeof(long) < sizeof(void *))]);
    24  	long l;
    25  	if (expr_eval_word(length, value, arguments, &l) < 0)
    26  		return -1;
    27 diff --git a/value.c b/value.c
    28 index d18db17..8caf98c 100644
    29 --- a/value.c
    30 +++ b/value.c
    31 @@ -284,7 +284,7 @@ value_init_deref(struct value *ret_val, struct value *valp)
    32  
    33  	/* We need "long" to be long enough to hold platform
    34  	 * pointers.  */
    35 -	typedef char assert__long_enough_long[-(sizeof(l) < sizeof(void *))];
    36 +	(void)sizeof(char[1 - 2*(sizeof(l) < sizeof(void *))]);
    37  
    38  	value_common_init(ret_val, valp->inferior, valp,
    39  			  valp->type->u.ptr_info.info, 0);
    40 -- 
    41 1.8.5.2
    42