summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-connectivity/libmtp/libmtp-1.1.5/glibc-2.20.patch36
-rw-r--r--meta-oe/recipes-connectivity/libmtp/libmtp_1.1.5.bb1
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
2Include config.h so we get the defines available for subsequent
3include files
4
5Fixes 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
14n__'
15| char *strndup (const char *s, size_t n)
16| ^
17| make[2]: *** [libmtp_la-util.lo] Error 1
18
19
20Signed-off-by: Khem Raj <raj.khem@gmail.com>
21
22Upstream-Status: Pending
23
24Index: 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"
19SRC_URI = "\ 19SRC_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"
23SRC_URI[md5sum] = "f80e45c0e6e5798c434bb1c26a7b602d" 24SRC_URI[md5sum] = "f80e45c0e6e5798c434bb1c26a7b602d"
24SRC_URI[sha256sum] = "787679171baf8b3cf2fcc03196c705ab4d7cbc969bd71f9d3696be1ce7f1c63a" 25SRC_URI[sha256sum] = "787679171baf8b3cf2fcc03196c705ab4d7cbc969bd71f9d3696be1ce7f1c63a"