summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-05-11 10:35:10 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-13 13:41:29 +0100
commitb5c1f588320e6b1f1804803de9abc0bf71976f3e (patch)
treeca69c9662b579dcbf767a08519a5feaa902cd762 /meta/recipes-support
parent54cbfa3a0b5f6df4b8cec3f7186c21d4fe6d5059 (diff)
downloadpoky-b5c1f588320e6b1f1804803de9abc0bf71976f3e.tar.gz
lzop: Fix build with gcc-6
(From OE-Core rev: aaab0e290ec7c4fb09a46a15d72d6aec6dedc832) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/lzop/lzop/lzop-1.03-gcc6.patch37
-rw-r--r--meta/recipes-support/lzop/lzop_1.03.bb6
2 files changed, 40 insertions, 3 deletions
diff --git a/meta/recipes-support/lzop/lzop/lzop-1.03-gcc6.patch b/meta/recipes-support/lzop/lzop/lzop-1.03-gcc6.patch
new file mode 100644
index 0000000000..72b33970e2
--- /dev/null
+++ b/meta/recipes-support/lzop/lzop/lzop-1.03-gcc6.patch
@@ -0,0 +1,37 @@
1gcc-6 has additional errors e.g.
2
3./test.c:1:12: error: variably modified '__acc_cta' at file scope
4 extern int __acc_cta[1-2*!((1l << (8*8 -1)) < 0)];
5 ^~~~~~~~~
6
7This is rightly pointed out since that index is undefined
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10Upstream-Status: Pending
11
12--- a/src/miniacc.h.orig 2016-02-10 16:09:23.247315866 +0100
13+++ a/src/miniacc.h 2016-02-10 16:12:14.973297054 +0100
14@@ -4469,12 +4469,12 @@
15 #if defined(__MSDOS__) && defined(__TURBOC__) && (__TURBOC__ < 0x0150)
16 #elif 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC)
17 #else
18- ACCCHK_ASSERT((1 << (8*SIZEOF_INT-1)) < 0)
19+ ACCCHK_ASSERT((int)(1u << (8*SIZEOF_INT-1)) < 0)
20 #endif
21 ACCCHK_ASSERT((1u << (8*SIZEOF_INT-1)) > 0)
22 #if 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC)
23 #else
24- ACCCHK_ASSERT((1l << (8*SIZEOF_LONG-1)) < 0)
25+ ACCCHK_ASSERT((long)(1ul << (8*SIZEOF_LONG-1)) < 0)
26 #endif
27 ACCCHK_ASSERT((1ul << (8*SIZEOF_LONG-1)) > 0)
28 #if defined(acc_int16e_t)
29@@ -4703,7 +4703,7 @@
30 #elif 1 && (ACC_CC_LCC || ACC_CC_LCCWIN32) && !defined(ACCCHK_CFG_PEDANTIC)
31 #elif 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC)
32 #elif !(ACC_BROKEN_INTEGRAL_PROMOTION) && (SIZEOF_INT > 1)
33- ACCCHK_ASSERT( (((unsigned char)128) << (int)(8*sizeof(int)-8)) < 0)
34+ ACCCHK_ASSERT( (int)((unsigned int)((unsigned char)128) << (int)(8*sizeof(int)-8)) < 0)
35 #endif
36 #if (ACC_CC_BORLANDC && (__BORLANDC__ >= 0x0530) && (__BORLANDC__ < 0x0560))
37 # pragma option pop
diff --git a/meta/recipes-support/lzop/lzop_1.03.bb b/meta/recipes-support/lzop/lzop_1.03.bb
index 07d628908a..649e7243ee 100644
--- a/meta/recipes-support/lzop/lzop_1.03.bb
+++ b/meta/recipes-support/lzop/lzop_1.03.bb
@@ -15,15 +15,15 @@ SRC_URI = "http://www.lzop.org/download/${BP}.tar.gz \
15 file://acinclude.m4 \ 15 file://acinclude.m4 \
16 file://x32_abi_miniacc_h.patch \ 16 file://x32_abi_miniacc_h.patch \
17 file://0001-use-static-inlines-as-the-external-inline-definition.patch \ 17 file://0001-use-static-inlines-as-the-external-inline-definition.patch \
18 file://lzop-1.03-gcc6.patch \
18 " 19 "
19SRC_URI[md5sum] = "006c5e27fb78cdd14a628fdfa5aa1905" 20SRC_URI[md5sum] = "006c5e27fb78cdd14a628fdfa5aa1905"
20SRC_URI[sha256sum] = "c1425b8c77d49f5a679d5a126c90ea6ad99585a55e335a613cae59e909dbb2c9" 21SRC_URI[sha256sum] = "c1425b8c77d49f5a679d5a126c90ea6ad99585a55e335a613cae59e909dbb2c9"
21 22
22inherit autotools 23inherit autotools
23 24
24do_configure () { 25do_configure_prepend () {
25 ln -sf ../acinclude.m4 ${S}/acinclude.m4 26 install -Dm 0644 ${WORKDIR}/acinclude.m4 ${S}/acinclude.m4
26 autotools_do_configure
27} 27}
28 28
29BBCLASSEXTEND += "native nativesdk" 29BBCLASSEXTEND += "native nativesdk"