diff options
author | Kai Kang <kai.kang@windriver.com> | 2015-08-24 23:31:54 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-08-31 19:30:54 +0200 |
commit | 31c98b41c392a55db8bdb042bf920c6b7825fcd0 (patch) | |
tree | 9c2e7eafb558318287e229314df6f31e1ba68317 | |
parent | f45881b3822630eda5282b8f016d772c1670df70 (diff) | |
download | meta-openembedded-31c98b41c392a55db8bdb042bf920c6b7825fcd0.tar.gz |
ltrace: 7.2 -> 7.3
Upgrade ltrace from 7.2 to 7.3.
* update SRC_URI and SRCREV
* drop backport patch 0001-In-Linux-backend-initialize-linkmap-struct.patch
* fix error when compile with gcc 5.2
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
3 files changed, 42 insertions, 35 deletions
diff --git a/meta-oe/recipes-devtools/ltrace/ltrace/0001-In-Linux-backend-initialize-linkmap-struct.patch b/meta-oe/recipes-devtools/ltrace/ltrace/0001-In-Linux-backend-initialize-linkmap-struct.patch deleted file mode 100644 index 13609c13c1..0000000000 --- a/meta-oe/recipes-devtools/ltrace/ltrace/0001-In-Linux-backend-initialize-linkmap-struct.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From efd12cfb10ccd2c612838c0e22069554ce60637c Mon Sep 17 00:00:00 2001 | ||
2 | From: Petr Machata <pmachata@redhat.com> | ||
3 | Date: Wed, 2 Jan 2013 16:01:43 +0100 | ||
4 | Subject: [PATCH] In Linux backend, initialize linkmap struct | ||
5 | |||
6 | GCC 4.7.2 -m32 -Os gives the following (spurious) warning: | ||
7 | proc.c: In function 'crawl_linkmap': | ||
8 | proc.c:544:25: error: 'rlm.l_addr' may be used uninitialized in this | ||
9 | |||
10 | Upstream-Status: Backport | ||
11 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
12 | --- | ||
13 | sysdeps/linux-gnu/proc.c | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/sysdeps/linux-gnu/proc.c b/sysdeps/linux-gnu/proc.c | ||
17 | index 6e01d28..d69c985 100644 | ||
18 | --- a/sysdeps/linux-gnu/proc.c | ||
19 | +++ b/sysdeps/linux-gnu/proc.c | ||
20 | @@ -484,7 +484,7 @@ crawl_linkmap(struct process *proc, struct lt_r_debug_64 *dbg) | ||
21 | arch_addr_t addr = (arch_addr_t)(uintptr_t)dbg->r_map; | ||
22 | |||
23 | while (addr != 0) { | ||
24 | - struct lt_link_map_64 rlm; | ||
25 | + struct lt_link_map_64 rlm = {}; | ||
26 | if (lm_fetcher(proc)(proc, addr, &rlm) < 0) { | ||
27 | debug(2, "Unable to read link map"); | ||
28 | return; | ||
29 | -- | ||
30 | 2.3.5 | ||
31 | |||
diff --git a/meta-oe/recipes-devtools/ltrace/ltrace/0001-ltrace-fix-gcc-5-logical-not-parentheses.patch b/meta-oe/recipes-devtools/ltrace/ltrace/0001-ltrace-fix-gcc-5-logical-not-parentheses.patch new file mode 100644 index 0000000000..681c43da0d --- /dev/null +++ b/meta-oe/recipes-devtools/ltrace/ltrace/0001-ltrace-fix-gcc-5-logical-not-parentheses.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From 876fe5680d77800426f8c4c5680a235732d722e6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Kai Kang <kai.kang@windriver.com> | ||
3 | Date: Mon, 24 Aug 2015 17:37:54 +0800 | ||
4 | Subject: [PATCH] ltrace: fix gcc 5 logical not parentheses | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Build ltrace with gcc 5.2, it fails with: | ||
9 | |||
10 | error: logical not is only applied to the left hand side of comparison | ||
11 | [-Werror=logical-not-parentheses] | ||
12 | if (!need_data(data, offset, SIZE / 8) < 0) \ | ||
13 | ^ | ||
14 | |||
15 | Function need_data just return 0 on success and -1 if fail. So it is ok | ||
16 | to just test if (need_data(data, offset, SIZE / 8) < 0). | ||
17 | |||
18 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
19 | --- | ||
20 | ltrace-elf.c | 2 +- | ||
21 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
22 | |||
23 | diff --git a/ltrace-elf.c b/ltrace-elf.c | ||
24 | index c571d2a..7fe830f 100644 | ||
25 | --- a/ltrace-elf.c | ||
26 | +++ b/ltrace-elf.c | ||
27 | @@ -218,7 +218,7 @@ need_data(Elf_Data *data, GElf_Xword offset, GElf_Xword size) | ||
28 | int \ | ||
29 | NAME(Elf_Data *data, GElf_Xword offset, uint##SIZE##_t *retp) \ | ||
30 | { \ | ||
31 | - if (!need_data(data, offset, SIZE / 8) < 0) \ | ||
32 | + if (need_data(data, offset, SIZE / 8) < 0) \ | ||
33 | return -1; \ | ||
34 | \ | ||
35 | if (data->d_buf == NULL) /* NODATA section */ { \ | ||
36 | -- | ||
37 | 1.9.1 | ||
38 | |||
diff --git a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb index f9f16843bd..d8d037ed68 100644 --- a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb +++ b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb | |||
@@ -10,15 +10,15 @@ LICENSE = "GPLv2" | |||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" |
11 | 11 | ||
12 | PE = "1" | 12 | PE = "1" |
13 | PV = "7.2+git${SRCPV}" | 13 | PV = "7.3+git${SRCPV}" |
14 | SRCREV = "f44b28421979cec88d6d6a778fc27a8cd514f508" | 14 | SRCREV = "37ecc41b58be3dbdd79592a76e331b5b371e4f81" |
15 | 15 | ||
16 | DEPENDS = "elfutils" | 16 | DEPENDS = "elfutils" |
17 | RDEPENDS_${PN} = "elfutils" | 17 | RDEPENDS_${PN} = "elfutils" |
18 | SRC_URI = "git://anonscm.debian.org/collab-maint/ltrace.git \ | 18 | SRC_URI = "git://anonscm.debian.org/collab-maint/ltrace.git;branch=ltrace-0.7 \ |
19 | file://ltrace-0.7.2-unused-typedef.patch \ | 19 | file://ltrace-0.7.2-unused-typedef.patch \ |
20 | file://configure-allow-to-disable-selinux-support.patch \ | 20 | file://configure-allow-to-disable-selinux-support.patch \ |
21 | file://0001-In-Linux-backend-initialize-linkmap-struct.patch \ | 21 | file://0001-ltrace-fix-gcc-5-logical-not-parentheses.patch \ |
22 | " | 22 | " |
23 | S = "${WORKDIR}/git" | 23 | S = "${WORKDIR}/git" |
24 | 24 | ||