diff options
author | Khem Raj <raj.khem@gmail.com> | 2014-09-04 00:32:36 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-10-04 00:28:29 +0200 |
commit | a67fd78dc07ae44e166049d5ab8236198dc40910 (patch) | |
tree | fd2ab30b9168e0d3165e70b7d4950164c58985f7 | |
parent | 3cf69539452c1be30a3b9547a51112f78897ca74 (diff) | |
download | meta-openembedded-a67fd78dc07ae44e166049d5ab8236198dc40910.tar.gz |
libmtp: Fix build with glibc 2.20
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | meta-oe/recipes-connectivity/libmtp/libmtp-1.1.5/glibc-2.20.patch | 36 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/libmtp/libmtp_1.1.5.bb | 1 |
2 files changed, 37 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/libmtp/libmtp-1.1.5/glibc-2.20.patch b/meta-oe/recipes-connectivity/libmtp/libmtp-1.1.5/glibc-2.20.patch new file mode 100644 index 000000000..38b45c2a9 --- /dev/null +++ b/meta-oe/recipes-connectivity/libmtp/libmtp-1.1.5/glibc-2.20.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | |||
2 | Include config.h so we get the defines available for subsequent | ||
3 | include files | ||
4 | |||
5 | Fixes errors like | ||
6 | |||
7 | | In file included from /home/ubuntu/work/upstream/openembedded-core/build/tmp-glibc/sysroots/beaglebone/usr/include/string.h:634:0, | ||
8 | | from /home/ubuntu/work/upstream/openembedded-core/build/tmp-glibc/work/cortexa8t2hf-vfp-neon-oe-linux-gnueabi/libmtp/1.1.5-r0/libmtp-1.1.5/src/util.c:36: | ||
9 | | /home/ubuntu/work/upstream/openembedded-core/build/tmp-glibc/work/cortexa8t2hf-vfp-neon-oe-linux-gnueabi/libmtp/1.1.5-r0/libmtp-1.1.5/src/util.h:29:7: error: expected identifier or '(' before '__extension | ||
10 | __' | ||
11 | | char *strndup (const char *s, size_t n); | ||
12 | | ^ | ||
13 | | /home/ubuntu/work/upstream/openembedded-core/build/tmp-glibc/work/cortexa8t2hf-vfp-neon-oe-linux-gnueabi/libmtp/1.1.5-r0/libmtp-1.1.5/src/util.c:111:7: error: expected identifier or '(' before '__extensio | ||
14 | n__' | ||
15 | | char *strndup (const char *s, size_t n) | ||
16 | | ^ | ||
17 | | make[2]: *** [libmtp_la-util.lo] Error 1 | ||
18 | |||
19 | |||
20 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
21 | |||
22 | Upstream-Status: Pending | ||
23 | |||
24 | Index: libmtp-1.1.5/src/util.c | ||
25 | =================================================================== | ||
26 | --- libmtp-1.1.5.orig/src/util.c 2011-01-10 05:37:21.000000000 -0800 | ||
27 | +++ libmtp-1.1.5/src/util.c 2014-09-03 23:50:44.703563888 -0700 | ||
28 | @@ -22,6 +22,8 @@ | ||
29 | * Boston, MA 02111-1307, USA. | ||
30 | */ | ||
31 | |||
32 | +#include "config.h" | ||
33 | + | ||
34 | /* MSVC does not have these */ | ||
35 | #ifndef _MSC_VER | ||
36 | #include <sys/time.h> | ||
diff --git a/meta-oe/recipes-connectivity/libmtp/libmtp_1.1.5.bb b/meta-oe/recipes-connectivity/libmtp/libmtp_1.1.5.bb index 004323add..de63c72f5 100644 --- a/meta-oe/recipes-connectivity/libmtp/libmtp_1.1.5.bb +++ b/meta-oe/recipes-connectivity/libmtp/libmtp_1.1.5.bb | |||
@@ -19,6 +19,7 @@ SCM_URI = "git://git.code.sf.net/p/libmtp/code" | |||
19 | SRC_URI = "\ | 19 | SRC_URI = "\ |
20 | ${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ | 20 | ${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ |
21 | file://69-libmtp.rules \ | 21 | file://69-libmtp.rules \ |
22 | file://glibc-2.20.patch \ | ||
22 | " | 23 | " |
23 | SRC_URI[md5sum] = "f80e45c0e6e5798c434bb1c26a7b602d" | 24 | SRC_URI[md5sum] = "f80e45c0e6e5798c434bb1c26a7b602d" |
24 | SRC_URI[sha256sum] = "787679171baf8b3cf2fcc03196c705ab4d7cbc969bd71f9d3696be1ce7f1c63a" | 25 | SRC_URI[sha256sum] = "787679171baf8b3cf2fcc03196c705ab4d7cbc969bd71f9d3696be1ce7f1c63a" |