From patchwork Sat Jun 25 11:20:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaap Crezee X-Patchwork-Id: 640547 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rcCRQ3Tvgz9sCy for ; Sat, 25 Jun 2016 21:20:17 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 0CD199595D; Sat, 25 Jun 2016 11:20:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CEdoxRzLXTQz; Sat, 25 Jun 2016 11:20:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id EB18595849; Sat, 25 Jun 2016 11:20:13 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 419D71CE973 for ; Sat, 25 Jun 2016 11:20:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 3DCB7957FA for ; Sat, 25 Jun 2016 11:20:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lsjzNpkkMsN0 for ; Sat, 25 Jun 2016 11:20:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from jcz.nl (jcz.nl [94.126.37.106]) by hemlock.osuosl.org (Postfix) with ESMTPS id 93C9F95849 for ; Sat, 25 Jun 2016 11:20:11 +0000 (UTC) Received: (qmail 18154 invoked by uid 210); 25 Jun 2016 11:20:08 -0000 Received: from 10.254.0.10 by www.jcz.nl (envelope-from , uid 201) with qmail-scanner-1.25st (clamdscan: 0.95.3/10458. spamassassin: 3.2.1. perlscan: 1.25st. Clear:RC:1(10.254.0.10):. Processed in 0.030861 secs); 25 Jun 2016 11:20:08 -0000 Received: from unknown (HELO knutselen) (jaap@jcz.nl@10.254.0.10) by jcz.nl with ESMTPA; 25 Jun 2016 11:20:07 -0000 From: Jaap Crezee To: buildroot@buildroot.org Date: Sat, 25 Jun 2016 13:20:03 +0200 Message-Id: <20160625112003.3414-1-jaap@jcz.nl> X-Mailer: git-send-email 2.9.0 Subject: [Buildroot] [PATCH 1/1] lzop: fixed compiling host-lzop with gcc6 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Jaap Crezee --- package/lzop/001-host-lzop-build-with-gcc6.patch | 37 ++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/lzop/001-host-lzop-build-with-gcc6.patch diff --git a/package/lzop/001-host-lzop-build-with-gcc6.patch b/package/lzop/001-host-lzop-build-with-gcc6.patch new file mode 100644 index 0000000..2b32bb7 --- /dev/null +++ b/package/lzop/001-host-lzop-build-with-gcc6.patch @@ -0,0 +1,37 @@ +From: Jaap Crezee +Date: Sat, 25 june 2016 13:13:00 +0200 +Subject: [PATCH 1/1] lzop: fixed compiling host-lzop with gcc-6 + +This patch allows host-lzop to be compiled with host systems containing gcc-6 + +Upstream patch found here: +https://build.opensuse.org/package/view_file/Archiving/lzop/lzop-1.03-gcc6.patch?expand=1 + +Signed-off-by: Jaap Crezee +Acked-by: James Knight +--- a/src/miniacc.h.orig 2016-02-10 16:09:23.247315866 +0100 ++++ b/src/miniacc.h 2016-02-10 16:12:14.973297054 +0100 +@@ -4469,12 +4469,12 @@ + #if defined(__MSDOS__) && defined(__TURBOC__) && (__TURBOC__ < 0x0150) + #elif 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC) + #else +- ACCCHK_ASSERT((1 << (8*SIZEOF_INT-1)) < 0) ++ ACCCHK_ASSERT((int)(1u << (8*SIZEOF_INT-1)) < 0) + #endif + ACCCHK_ASSERT((1u << (8*SIZEOF_INT-1)) > 0) + #if 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC) + #else +- ACCCHK_ASSERT((1l << (8*SIZEOF_LONG-1)) < 0) ++ ACCCHK_ASSERT((long)(1ul << (8*SIZEOF_LONG-1)) < 0) + #endif + ACCCHK_ASSERT((1ul << (8*SIZEOF_LONG-1)) > 0) + #if defined(acc_int16e_t) +@@ -4703,7 +4703,7 @@ + #elif 1 && (ACC_CC_LCC || ACC_CC_LCCWIN32) && !defined(ACCCHK_CFG_PEDANTIC) + #elif 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC) + #elif !(ACC_BROKEN_INTEGRAL_PROMOTION) && (SIZEOF_INT > 1) +- ACCCHK_ASSERT( (((unsigned char)128) << (int)(8*sizeof(int)-8)) < 0) ++ ACCCHK_ASSERT( (int)((unsigned int)((unsigned char)128) << (int)(8*sizeof(int)-8)) < 0) + #endif + #if (ACC_CC_BORLANDC && (__BORLANDC__ >= 0x0530) && (__BORLANDC__ < 0x0560)) + # pragma option pop