diff options
Diffstat (limited to 'meta-oe/recipes-devtools/ltrace')
-rw-r--r-- | meta-oe/recipes-devtools/ltrace/ltrace-git/ltrace-0.7.2-unused-typedef.patch | 49 | ||||
-rw-r--r-- | meta-oe/recipes-devtools/ltrace/ltrace_git.bb | 25 |
2 files changed, 74 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/ltrace/ltrace-git/ltrace-0.7.2-unused-typedef.patch b/meta-oe/recipes-devtools/ltrace/ltrace-git/ltrace-0.7.2-unused-typedef.patch new file mode 100644 index 0000000000..8f3c0ecea1 --- /dev/null +++ b/meta-oe/recipes-devtools/ltrace/ltrace-git/ltrace-0.7.2-unused-typedef.patch | |||
@@ -0,0 +1,49 @@ | |||
1 | diff --git a/value.c b/value.c | ||
2 | index d18db17..b98298e 100644 | ||
3 | --- a/value.c | ||
4 | +++ b/value.c | ||
5 | @@ -1,6 +1,6 @@ | ||
6 | /* | ||
7 | * This file is part of ltrace. | ||
8 | - * Copyright (C) 2011,2012 Petr Machata, Red Hat Inc. | ||
9 | + * Copyright (C) 2011,2012,2013 Petr Machata, Red Hat Inc. | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or | ||
12 | * modify it under the terms of the GNU General Public License as | ||
13 | @@ -282,9 +282,9 @@ value_init_deref(struct value *ret_val, struct value *valp) | ||
14 | if (value_extract_word(valp, &l, NULL) < 0) | ||
15 | return -1; | ||
16 | |||
17 | - /* We need "long" to be long enough to hold platform | ||
18 | + /* We need "long" to be long enough to hold target | ||
19 | * pointers. */ | ||
20 | - typedef char assert__long_enough_long[-(sizeof(l) < sizeof(void *))]; | ||
21 | + assert(sizeof(l) >= sizeof(arch_addr_t)); | ||
22 | |||
23 | value_common_init(ret_val, valp->inferior, valp, | ||
24 | valp->type->u.ptr_info.info, 0); | ||
25 | diff --git a/lens_default.c b/lens_default.c | ||
26 | index ed3d0e1..5d00814 100644 | ||
27 | --- a/lens_default.c | ||
28 | +++ b/lens_default.c | ||
29 | @@ -1,6 +1,6 @@ | ||
30 | /* | ||
31 | * This file is part of ltrace. | ||
32 | - * Copyright (C) 2011,2012 Petr Machata, Red Hat Inc. | ||
33 | + * Copyright (C) 2011,2012,2013 Petr Machata, Red Hat Inc. | ||
34 | * Copyright (C) 1998,2004,2007,2008,2009 Juan Cespedes | ||
35 | * Copyright (C) 2006 Ian Wienand | ||
36 | * Copyright (C) 2006 Steve Fink | ||
37 | @@ -342,9 +342,9 @@ format_array(FILE *stream, struct value *value, struct value_dict *arguments, | ||
38 | struct expr_node *length, size_t maxlen, int before, | ||
39 | const char *open, const char *close, const char *delim) | ||
40 | { | ||
41 | - /* We need "long" to be long enough to cover the whole address | ||
42 | - * space. */ | ||
43 | - typedef char assert__long_enough_long[-(sizeof(long) < sizeof(void *))]; | ||
44 | + /* We need "long" to be long enough to cover the whole target | ||
45 | + * address space. */ | ||
46 | + assert(sizeof(long) >= sizeof(arch_addr_t)); | ||
47 | long l; | ||
48 | if (expr_eval_word(length, value, arguments, &l) < 0) | ||
49 | return -1; | ||
diff --git a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb new file mode 100644 index 0000000000..149af52dc0 --- /dev/null +++ b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb | |||
@@ -0,0 +1,25 @@ | |||
1 | SUMMARY = "ltrace intercepts and records dynamic library calls" | ||
2 | |||
3 | DESCRIPTION = "ltrace intercepts and records dynamic library calls \ | ||
4 | which are called by an executed process and the signals received by that process. \ | ||
5 | It can also intercept and print the system calls executed by the program.\ | ||
6 | " | ||
7 | HOMEPAGE = "http://ltrace.org/" | ||
8 | |||
9 | LICENSE = "GPLv2" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" | ||
11 | |||
12 | SRCREV = "f44b28421979cec88d6d6a778fc27a8cd514f508" | ||
13 | |||
14 | DEPENDS = "elfutils" | ||
15 | RDEPENDS_${PN} = "elfutils" | ||
16 | SRC_URI = "git://anonscm.debian.org/collab-maint/ltrace.git \ | ||
17 | file://ltrace-0.7.2-unused-typedef.patch \ | ||
18 | " | ||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | inherit autotools | ||
22 | |||
23 | do_configure_prepend () { | ||
24 | ./autogen.sh | ||
25 | } | ||