summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorEric BENARD <eric@eukrea.com>2013-09-19 20:56:21 +0000
committerMartin Jansa <Martin.Jansa@gmail.com>2013-10-05 12:36:02 +0200
commit8b9fccbbfaf757844f813b06a22c413dc5cafe94 (patch)
treeeb84fcd3d9208974cd4d2b27b0039b4d22031441 /meta-oe
parent13f540c5a98d3a64b41117db9cf554956eebafe9 (diff)
downloadmeta-openembedded-8b9fccbbfaf757844f813b06a22c413dc5cafe94.tar.gz
libsocketcan: upgrade to 0.0.9
and include a compile fix Signed-off-by: Eric BĂ©nard <eric@eukrea.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-extended/socketcan/libsocketcan/0001-Use-strcmp-instead-of-sizeof-on-char-string.patch39
-rw-r--r--meta-oe/recipes-extended/socketcan/libsocketcan_0.0.9.bb (renamed from meta-oe/recipes-extended/socketcan/libsocketcan_0.0.8.bb)7
2 files changed, 43 insertions, 3 deletions
diff --git a/meta-oe/recipes-extended/socketcan/libsocketcan/0001-Use-strcmp-instead-of-sizeof-on-char-string.patch b/meta-oe/recipes-extended/socketcan/libsocketcan/0001-Use-strcmp-instead-of-sizeof-on-char-string.patch
new file mode 100644
index 000000000..aa6196ee9
--- /dev/null
+++ b/meta-oe/recipes-extended/socketcan/libsocketcan/0001-Use-strcmp-instead-of-sizeof-on-char-string.patch
@@ -0,0 +1,39 @@
1From 94094cc4ee7ae585da3e5e7e83e7d82b5d6de656 Mon Sep 17 00:00:00 2001
2From: Alexander Stein <alexander.stein@systec-electronic.com>
3Date: Wed, 14 Nov 2012 12:13:06 +0100
4Subject: [PATCH] Use strcmp instead of sizeof on char* string
5
6This bug was detected by the clang warning:
7libsocketcan.c:384:16: warning: argument to 'sizeof' in 'strncmp' call
8is the same expression as the source; did you mean to provide an
9explicit length? [-Wsizeof-pointer-memaccess]
10sizeof(name)) != 0)
11~~~~~~~^~~~~~
12
13Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
14Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
15---
16Upstream-Status: Backport
17
18 src/libsocketcan.c | 5 ++---
19 1 file changed, 2 insertions(+), 3 deletions(-)
20
21diff --git a/src/libsocketcan.c b/src/libsocketcan.c
22index fedcbdc..841c2ed 100644
23--- a/src/libsocketcan.c
24+++ b/src/libsocketcan.c
25@@ -379,9 +379,8 @@ static int do_get_nl_link(int fd, __u8 acquire, const char *name, void *res)
26 nl_msg->nlmsg_len - NLMSG_LENGTH(sizeof(struct ifaddrmsg));
27 parse_rtattr(tb, IFLA_MAX, IFLA_RTA(ifi), len);
28
29- if (strncmp
30- ((char *)RTA_DATA(tb[IFLA_IFNAME]), name,
31- sizeof(name)) != 0)
32+ if (strcmp
33+ ((char *)RTA_DATA(tb[IFLA_IFNAME]), name) != 0)
34 continue;
35
36 if (tb[IFLA_LINKINFO])
37--
381.8.3.1
39
diff --git a/meta-oe/recipes-extended/socketcan/libsocketcan_0.0.8.bb b/meta-oe/recipes-extended/socketcan/libsocketcan_0.0.9.bb
index 34ba56b18..6b31a1e2c 100644
--- a/meta-oe/recipes-extended/socketcan/libsocketcan_0.0.8.bb
+++ b/meta-oe/recipes-extended/socketcan/libsocketcan_0.0.9.bb
@@ -5,9 +5,10 @@ SECTION = "libs/network"
5LICENSE = "LGPLv2.1" 5LICENSE = "LGPLv2.1"
6LIC_FILES_CHKSUM = "file://src/libsocketcan.c;beginline=3;endline=17;md5=97e38adced4385d8fba1ae2437cedee1" 6LIC_FILES_CHKSUM = "file://src/libsocketcan.c;beginline=3;endline=17;md5=97e38adced4385d8fba1ae2437cedee1"
7 7
8SRCREV = "3a2cec63a4e6212cc63d21008453bd799cfe8774" 8SRCREV = "e1a224bf1c409adf0c02b07a90deada634e54b88"
9 9
10SRC_URI = "git://git.pengutronix.de/git/tools/libsocketcan.git \ 10SRC_URI = "git://git.pengutronix.de/git/tools/libsocketcan.git;protocol=git \
11 file://0001-Use-strcmp-instead-of-sizeof-on-char-string.patch \
11" 12"
12 13
13S = "${WORKDIR}/git" 14S = "${WORKDIR}/git"
@@ -15,5 +16,5 @@ S = "${WORKDIR}/git"
15inherit autotools pkgconfig 16inherit autotools pkgconfig
16 17
17do_configure_prepend() { 18do_configure_prepend() {
18 sed -i -e s:tests/GNUmakefile::g -e s:trunk:0.0.8: configure.ac 19 sed -i -e s:tests/GNUmakefile::g -e s:trunk:0.0.9: configure.ac
19} 20}