From patchwork Wed Aug 9 06:32:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 109693 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp453802qge; Tue, 8 Aug 2017 23:33:25 -0700 (PDT) X-Received: by 10.84.134.164 with SMTP id 33mr7644418plh.378.1502260405115; Tue, 08 Aug 2017 23:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502260405; cv=none; d=google.com; s=arc-20160816; b=DtYoxn5rp6YJLD+s3/C7JfjZHXZMLj6w4kRwgz4jTWZA8I7z70whFRFzeueqnE5Mbr y/eOcDAM7BXFYkuQa34EtAzlG1tqGanUthn0Q5fr1Mz0V5yErUO+g1PTOcSpd64yyK2e AUjIgMCESZ7uOhY0q7pavMAUSAKW4fe42HR8kx6t5/FMHnUmq9ssWvb0+iZTvi9qm5lT zuwOZysQFwS7oRrbtTE2h4W2ACPAp/zZ0YhASEf+cUI8xMkU+d1EzRPcHHOwJ+NPKbWs E88WXpeMa3ABE9DoixkP1iLWqXvB4tQfOJYvaQRT0ZRGST/hp+uvZ7AeDm73feptI2gP iMQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=0sH+HtFUKC+kQh4B2EnFnQEuLNc7Yn6h7/v0omIMb1M=; b=Dmdl71753pUTI4n7FUFeAATAjpvO8CtO6gCjnyMPC7/BaR86rzcN/ZR09RsMbyJFxz UAVm74AYdqZh4kwnlGZv4qiWYvVj2ywCfW8gXrvfLvZjFGGzUtaaeExkmmxEHJ+Wvka8 a0AGwEGiGJ+8nKJO7wkunQLQ9DOw47VyWRcSuN5I+OOI6pygF47LJ4J4bDjVMEv1cGiF KeErIS+QF82CPCttLeyddY7dBeRER8BatXIiB0X9H6sKMHzw036JROx5IZNpeMVWbfk1 Avob6NQKGT7GQl1MXrpoj6i1N90RSpLzCZ5xyoFmKz3zTAO8lEF6LUEKhfCl+IvkNwQK 711A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=DFuzZbm2; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id t61si2199079plb.24.2017.08.08.23.33.24; Tue, 08 Aug 2017 23:33:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=DFuzZbm2; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 3329871B31; Wed, 9 Aug 2017 06:33:14 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by mail.openembedded.org (Postfix) with ESMTP id BD7C271B31 for ; Wed, 9 Aug 2017 06:33:12 +0000 (UTC) Received: by mail-pf0-f194.google.com with SMTP id h75so5281676pfh.5 for ; Tue, 08 Aug 2017 23:33:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=0sitrO+OQYp826rjKQJFizN2wQYUIqc2yFwGSAwRtlM=; b=DFuzZbm2+reIRp8BRbUDf/FTEQIYjv27k39OrPUw9vqjQFznxusE3L+Cjdo1MEyv44 u8xeQV5iTAU6KiACdx97nELYIukX+n0kyE8SLOHIvSb35CU4stDzOV3kBxw3H54jMjzs Msg0vJuAGdL6EM8ZNw2HZ4NADkhEYpIzVEISFGLg3so68Qflu6UtVP9xZF6lUjFzslom dkjrWeTs2nSV9QotmxdpTcbcWifnYH8/ylcd+0n2TNWJ13inoz294wRQNlkZNH/ZHtmr ZrMVtRJ6ZDF8BfzUmV2mlf8f3D4MW+KjErImoUGuqC5WfCQcQVPF6OHJrJgxElPU7oN6 tjQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=0sitrO+OQYp826rjKQJFizN2wQYUIqc2yFwGSAwRtlM=; b=OcS0BYdQmJ0Zc0+KEII3Gt+YE2UDVL3y880ABsDQailW71JLji5Pb74xV7ksoviOrP ErMG4WXXF7NcMrY7NdJiVTMTx10SsBUAjiYTIXu+yTFXCeGtt4SMsoXBJh7qEmLkaS+J sOdQcyzYNoxlEdlsw4YdfS+GFrSu8ixOaM3tBSsuLCvb/bsiZx8Hqu29Q1jqgfaz2eQq 8DiQx1ZBs92X/p/3/nNjB8W5mqNn3X+e8dNHTE2eP5CcC3Y1rxSkHPBuDz7CMSv2gYJ4 noeOtdo/ztWfCRNIpa3Yv6HGdpHioFtRMgS2E9aeLpSFCbx1WU8+tPV3jWFrB/nT7AZz LBpw== X-Gm-Message-State: AHYfb5hxPkyqORyPc3JDT5bNt4e9Wr2G0ZxyGrz7v+wgcc9rPP8xjtCg hp0cYvkn1v8n1Zj2 X-Received: by 10.84.133.15 with SMTP id 15mr7568791plf.31.1502260393807; Tue, 08 Aug 2017 23:33:13 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::f213]) by smtp.gmail.com with ESMTPSA id x25sm6259547pfk.80.2017.08.08.23.33.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Aug 2017 23:33:12 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 8 Aug 2017 23:32:58 -0700 Message-Id: <20170809063259.373-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.14.0 Subject: [oe] [meta-qt5][PATCH 1/2] qtwebkit: Backport a patch to fix build with icu-59 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../0004-Fix-compilation-with-ICU-59.patch | 92 ++++++++++++++++++++++ recipes-qt/qt5/qtwebkit_git.bb | 1 + 2 files changed, 93 insertions(+) create mode 100644 recipes-qt/qt5/qtwebkit/0004-Fix-compilation-with-ICU-59.patch -- 2.14.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel Tested-by: Andreas Müller diff --git a/recipes-qt/qt5/qtwebkit/0004-Fix-compilation-with-ICU-59.patch b/recipes-qt/qt5/qtwebkit/0004-Fix-compilation-with-ICU-59.patch new file mode 100644 index 0000000..e4a108e --- /dev/null +++ b/recipes-qt/qt5/qtwebkit/0004-Fix-compilation-with-ICU-59.patch @@ -0,0 +1,92 @@ +From d8d9b1eb468f5e5d5d9f0b196fc0acb641998c8b Mon Sep 17 00:00:00 2001 +From: Konstantin Tokarev +Date: Thu, 4 May 2017 15:12:37 +0300 +Subject: [PATCH] Fix compilation with ICU 59 + +Upstream fix: https://bugs.webkit.org/show_bug.cgi?id=171612 + +Task-number: QTBUG-60532 +Change-Id: I6014feea213aa70ebe40b09d9d1a03fd1ed3c843 +Reviewed-by: Allan Sandfeld Jensen +--- + Source/JavaScriptCore/API/JSStringRef.cpp | 6 +++--- + Source/JavaScriptCore/runtime/DateConversion.cpp | 3 ++- + Source/WTF/wtf/TypeTraits.h | 3 +++ + Source/WebKit2/Shared/API/c/WKString.cpp | 2 +- + 4 files changed, 9 insertions(+), 5 deletions(-) + +diff --git a/Source/JavaScriptCore/API/JSStringRef.cpp b/Source/JavaScriptCore/API/JSStringRef.cpp +index 812f3d413..77a3fd0f4 100644 +--- a/Source/JavaScriptCore/API/JSStringRef.cpp ++++ b/Source/JavaScriptCore/API/JSStringRef.cpp +@@ -37,7 +37,7 @@ using namespace WTF::Unicode; + JSStringRef JSStringCreateWithCharacters(const JSChar* chars, size_t numChars) + { + initializeThreading(); +- return OpaqueJSString::create(chars, numChars).leakRef(); ++ return OpaqueJSString::create(reinterpret_cast(chars), numChars).leakRef(); + } + + JSStringRef JSStringCreateWithUTF8CString(const char* string) +@@ -62,7 +62,7 @@ JSStringRef JSStringCreateWithUTF8CString(const char* string) + JSStringRef JSStringCreateWithCharactersNoCopy(const JSChar* chars, size_t numChars) + { + initializeThreading(); +- return OpaqueJSString::create(StringImpl::createWithoutCopying(chars, numChars, WTF::DoesNotHaveTerminatingNullCharacter)).leakRef(); ++ return OpaqueJSString::create(StringImpl::createWithoutCopying(reinterpret_cast(chars), numChars, WTF::DoesNotHaveTerminatingNullCharacter)).leakRef(); + } + + JSStringRef JSStringRetain(JSStringRef string) +@@ -83,7 +83,7 @@ size_t JSStringGetLength(JSStringRef string) + + const JSChar* JSStringGetCharactersPtr(JSStringRef string) + { +- return string->characters(); ++ return reinterpret_cast(string->characters()); + } + + size_t JSStringGetMaximumUTF8CStringSize(JSStringRef string) +diff --git a/Source/JavaScriptCore/runtime/DateConversion.cpp b/Source/JavaScriptCore/runtime/DateConversion.cpp +index 0b57f012d..05e27338b 100644 +--- a/Source/JavaScriptCore/runtime/DateConversion.cpp ++++ b/Source/JavaScriptCore/runtime/DateConversion.cpp +@@ -107,7 +107,8 @@ String formatDateTime(const GregorianDateTime& t, DateTimeFormat format, bool as + #if OS(WINDOWS) + TIME_ZONE_INFORMATION timeZoneInformation; + GetTimeZoneInformation(&timeZoneInformation); +- const WCHAR* timeZoneName = t.isDST() ? timeZoneInformation.DaylightName : timeZoneInformation.StandardName; ++ const WCHAR* winTimeZoneName = t.isDST() ? timeZoneInformation.DaylightName : timeZoneInformation.StandardName; ++ String timeZoneName(reinterpret_cast(winTimeZoneName)); + #else + struct tm gtm = t; + char timeZoneName[70]; +diff --git a/Source/WTF/wtf/TypeTraits.h b/Source/WTF/wtf/TypeTraits.h +index 9df2c95cf..f5d6121fd 100644 +--- a/Source/WTF/wtf/TypeTraits.h ++++ b/Source/WTF/wtf/TypeTraits.h +@@ -72,6 +72,9 @@ namespace WTF { + template<> struct IsInteger { static const bool value = true; }; + template<> struct IsInteger { static const bool value = true; }; + template<> struct IsInteger { static const bool value = true; }; ++#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(_HAS_CHAR16_T_LANGUAGE_SUPPORT) && _HAS_CHAR16_T_LANGUAGE_SUPPORT) ++ template<> struct IsInteger { static const bool value = true; }; ++#endif + #if !COMPILER(MSVC) || defined(_NATIVE_WCHAR_T_DEFINED) + template<> struct IsInteger { static const bool value = true; }; + #endif +diff --git a/Source/WebKit2/Shared/API/c/WKString.cpp b/Source/WebKit2/Shared/API/c/WKString.cpp +index cbac67dd8..23400a64e 100644 +--- a/Source/WebKit2/Shared/API/c/WKString.cpp ++++ b/Source/WebKit2/Shared/API/c/WKString.cpp +@@ -55,7 +55,7 @@ size_t WKStringGetLength(WKStringRef stringRef) + size_t WKStringGetCharacters(WKStringRef stringRef, WKChar* buffer, size_t bufferLength) + { + COMPILE_ASSERT(sizeof(WKChar) == sizeof(UChar), WKStringGetCharacters_sizeof_WKChar_matches_UChar); +- return (toImpl(stringRef)->getCharacters(static_cast(buffer), bufferLength)); ++ return (toImpl(stringRef)->getCharacters(reinterpret_cast(buffer), bufferLength)); + } + + size_t WKStringGetMaximumUTF8CStringSize(WKStringRef stringRef) +-- +2.13.3 + diff --git a/recipes-qt/qt5/qtwebkit_git.bb b/recipes-qt/qt5/qtwebkit_git.bb index 4845d0f..3c52ef3 100644 --- a/recipes-qt/qt5/qtwebkit_git.bb +++ b/recipes-qt/qt5/qtwebkit_git.bb @@ -22,6 +22,7 @@ SRC_URI += "\ file://0001-qtwebkit-fix-QA-issue-bad-RPATH.patch \ file://0002-Remove-TEXTREL-tag-in-x86.patch \ file://0003-Exclude-backtrace-API-for-non-glibc-libraries.patch \ + file://0004-Fix-compilation-with-ICU-59.patch \ " PACKAGECONFIG ??= "gstreamer qtlocation qtmultimedia qtsensors qtwebchannel \ From patchwork Wed Aug 9 06:32:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 109694 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp454217qge; Tue, 8 Aug 2017 23:33:57 -0700 (PDT) X-Received: by 10.84.143.129 with SMTP id 1mr8032089plz.344.1502260437214; Tue, 08 Aug 2017 23:33:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502260437; cv=none; d=google.com; s=arc-20160816; b=YC930435+eyMl2q2vCLzHQyTvdl9+Ny+OOiUPxxxdwlsmn8d8Rs+t/9mKYGz1k6pCh Dg7OOSvSv32k/0/kbfLsapwK2nHdCcatfhDUXzjfAvZmjMTXo6AJz3uh4YYMiJBP9QX5 Z/kwHwEmquuxfhv2DLI/wzlHCr0c8YPPjV4OZ89eQkf5H0tFzdKfC34S0FHuACyywB6Q 9a2IP9rYFZD8vgeyHPqTgnQ/uoBPARcOyDiP23Hj8QlRTh+1v9klRiisDPdrelFXlSwO 5SQpF0kfz0Tbd8ypOtn4RCEfFaBQIqppcFpD6ea8aB2svKz36epUco9ULXZvIvXBBKaH +JbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=obYLF46zMRcvC18kyVmj6EUSFhPe62iMEsm4cohQgaE=; b=s29KlAU2po5s/VKUtqxeZoE/B7RQa2J8JKtFpnT4iTe2A/vr+NQ0FFxo4iDPgZuk3Z 6LnJBFt4XV1FagOG3mKwqZcWDZrQqdXo1NO1xIBG7ckjklQ8W/EeuqagjLFlUn5j8WK1 +ryT4JBFb0O+wItuscSenn4k1OQX2FJQcvpp0F7isZiJlz65cahTM2NwJ8W7lnJuzMgW 8cnCy+yP78kUmtdevGvDG/zQHXZ9pgfZ17/raaKMoPY1DPSwB1lRKwUlQt+WmaFUdxMG KVugR8qyGWsyXNiAyaSltUBUC4V+kstGwJCEHslhCfOZMy60M+VyROPrIM5XhX0KqtRF kXww== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=mGSc3M4P; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id g4si1927705pgr.732.2017.08.08.23.33.56; Tue, 08 Aug 2017 23:33:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=mGSc3M4P; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 9D92E77CCC; Wed, 9 Aug 2017 06:33:53 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg0-f68.google.com (mail-pg0-f68.google.com [74.125.83.68]) by mail.openembedded.org (Postfix) with ESMTP id 60EA877BC9 for ; Wed, 9 Aug 2017 06:33:13 +0000 (UTC) Received: by mail-pg0-f68.google.com with SMTP id 83so5099228pgb.4 for ; Tue, 08 Aug 2017 23:33:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ErcEISSO9F6skO7Iuqx2Ajfbs71/abSal9fCJWQw910=; b=mGSc3M4Pj2tBpw5HZOIoiWvFgnE9mtnyhHQmtl2F7Is3OmFSWl7k5RquT5zyRLDRnq UKm9OUTOgvOwHN4p9wLEpfXUKp8RIMdmMvCXMi5ucDvpJ74SOy7JOnu5oqCnUUHAflqD 54bMhPbnyzOhdYFssXhwyxpekODaTHhEXhTExC62y7fIXuiY79qJO2rXTUBmN+TTi1Gk VLi+6+Lt7hPSuLKeJJbj8ZfYJOn+0wL9gT0PZOqPqdSUasZ8Ddgn1SL8i3TL28JJZajY YmHNnTD+VTTxjRoIKRUdlSv6875u8amI+0PjLUv9A7yH9chgzgpWOVgDMA+yqnIKXWCd n6SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ErcEISSO9F6skO7Iuqx2Ajfbs71/abSal9fCJWQw910=; b=WskRVDGs66f3KODcTpbrWfXd0T9z9KyWikhd3uMsdqncNT3iqAasTajVRCfOFWq5dC U94IoVdGxj7Vg6Sa8+ggJaq61HcMxYUeHTM89iM4Dqy2mjtwCxCOPXZ4+SCu7PjdtzND zZuprmKXcAl6FWTA9u71KauvIop916TwCbkkPuYl2aZXRKdGKR/o2wsPjYa+RSTVNxzG 4RetTncB7mj2hiOG8VyEyVbZExrK4yYT9E/nNT/+OuKrZ0Fm75T3l3AamRrH7L7lWJ3W 41s85lKH4kKu/wmc3La/Yg8n84G9yhBrLmw6h6vHHKhjU3qONxiD4b5WXmwibdv2eMlE fhxQ== X-Gm-Message-State: AHYfb5jMotE+7PWv5UfPb7/NGaD4esx6QeVSB4tMf0gfMYZBaVKCBVb1 vhcacQLmdxaXRoFu X-Received: by 10.84.167.2 with SMTP id c2mr7525007plb.367.1502260394701; Tue, 08 Aug 2017 23:33:14 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::f213]) by smtp.gmail.com with ESMTPSA id x25sm6259547pfk.80.2017.08.08.23.33.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Aug 2017 23:33:14 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 8 Aug 2017 23:32:59 -0700 Message-Id: <20170809063259.373-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.14.0 In-Reply-To: <20170809063259.373-1-raj.khem@gmail.com> References: <20170809063259.373-1-raj.khem@gmail.com> Subject: [oe] [meta-qt5][PATCH 2/2] qt3d: Fix build with clang X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...2-Fix-BlenderDNA-for-clang-cross-compiler.patch | 46 ++++++++++++++++++++++ recipes-qt/qt5/qt3d_git.bb | 1 + 2 files changed, 47 insertions(+) create mode 100644 recipes-qt/qt5/qt3d/0002-Fix-BlenderDNA-for-clang-cross-compiler.patch -- 2.14.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/recipes-qt/qt5/qt3d/0002-Fix-BlenderDNA-for-clang-cross-compiler.patch b/recipes-qt/qt5/qt3d/0002-Fix-BlenderDNA-for-clang-cross-compiler.patch new file mode 100644 index 0000000..8b36a0a --- /dev/null +++ b/recipes-qt/qt5/qt3d/0002-Fix-BlenderDNA-for-clang-cross-compiler.patch @@ -0,0 +1,46 @@ +From b28ad8e101d4e2ffae00e43d53b22ace35f8c308 Mon Sep 17 00:00:00 2001 +From: Kim Kulling +Date: Mon, 7 Nov 2016 17:19:49 +0100 +Subject: [PATCH] Fix BlenderDNA for clang cross compiler. + +--- + src/3rdparty/assimp/code/BlenderDNA.cpp | 16 ++++++++-------- + 1 file changed, 8 insertions(+), 8 deletions(-) + +diff --git a/src/3rdparty/assimp/code/BlenderDNA.cpp b/src/3rdparty/assimp/code/BlenderDNA.cpp +index b380fbe8d..437e44349 100644 +--- a/src/3rdparty/assimp/code/BlenderDNA.cpp ++++ b/src/3rdparty/assimp/code/BlenderDNA.cpp +@@ -56,10 +56,10 @@ using namespace Assimp::Formatter; + #define for_each BOOST_FOREACH + bool match4(StreamReaderAny& stream, const char* string) { + char tmp[] = { +- (stream).GetI1(), +- (stream).GetI1(), +- (stream).GetI1(), +- (stream).GetI1() ++ (const char)(stream).GetI1(), ++ (const char)(stream).GetI1(), ++ (const char)(stream).GetI1(), ++ (const char)(stream).GetI1() + }; + return (tmp[0]==string[0] && tmp[1]==string[1] && tmp[2]==string[2] && tmp[3]==string[3]); + } +@@ -344,10 +344,10 @@ void SectionParser :: Next() + stream.SetCurrentPos(current.start + current.size); + + const char tmp[] = { +- stream.GetI1(), +- stream.GetI1(), +- stream.GetI1(), +- stream.GetI1() ++ (const char)stream.GetI1(), ++ (const char)stream.GetI1(), ++ (const char)stream.GetI1(), ++ (const char)stream.GetI1() + }; + current.id = std::string(tmp,tmp[3]?4:tmp[2]?3:tmp[1]?2:1); + +-- +2.13.3 + diff --git a/recipes-qt/qt5/qt3d_git.bb b/recipes-qt/qt5/qt3d_git.bb index f39208a..2891470 100644 --- a/recipes-qt/qt5/qt3d_git.bb +++ b/recipes-qt/qt5/qt3d_git.bb @@ -13,6 +13,7 @@ DEPENDS_class-target += "qtdeclarative qt3d-native" SRC_URI += " \ file://0001-Allow-a-tools-only-build.patch \ + file://0002-Fix-BlenderDNA-for-clang-cross-compiler.patch \ " PACKAGECONFIG ??= ""