From patchwork Thu Feb 22 04:29:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 129142 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp185064lja; Wed, 21 Feb 2018 20:29:57 -0800 (PST) X-Google-Smtp-Source: AH8x227H2FYjNhvgdKiv+0LsU1WkIfWrB6+r3RveSYtOm6pX6OxSWGrtGHAF5n9FLVD//6TbvDn0 X-Received: by 2002:a17:902:bf0a:: with SMTP id bi10-v6mr5305024plb.181.1519273797272; Wed, 21 Feb 2018 20:29:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519273797; cv=none; d=google.com; s=arc-20160816; b=TWczlLFxpOucHSJdPaljmDJ8T+Mb+YhWwe3Sn2+axXHGYXbffMPbi5Xa1dgxupktxI NK+4AViJb04pHYekcMmoz1K3R/e83h+tTNiMB6NGuKceCR0tyHSp7JiQDauepiLlqO0Y B/XII08Wpj2yVhgSwEgaNa+E/LwpVXekKqHVfzRnijAMx4VRWbZl0b2Oa0hyCzI5M7dz 6eBwnOkfgafERMqScDgVGNorSpHE2gXZQoJ9g8ZmXEbvTjQRXhMRVFE7xnrGIi+l2r9m b/E7+dQKEGb+LD+mVt9MjFqQzBXqV0Nxqqyy82tcUZrdXVXL4dmHHB5KDLjjCTBIj9Hp Y3wg== 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=s6mmLWKzZc/kFuRI22jb+VtP8+hJYFlgZ77GJxPR5Io=; b=duakkzoZV4BHnqHH7QbMZ8mVefsto76cYWm7fwvHKKUETXMXWTkHwbVJt3Jw0nPTF5 74GLsX5e2hq5N5LDbsj2L2u5GmvZIrwXE4l6fOG4iU9hnDH6qErhhbHc31iMqoLryCpu z+A9NF3mH29zAXAzyjzk3hzH9KRmC21kUL39JeaMMKE8OiweJCNZKPi7eMC290wSRJQV GPKnUoD6oN4YXJkc6IKn1PO0Tv1NAESBQRQ31chRr9o90VN1z5NCzgmhntnjHpFTtq0W Ufw70RlVQslxexumkhhqnJpDmpxmS3HdMrgYC7TNh6AizS4ix8cKRUur1NR4DylXTZ7E 4FHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=RFGMJh7t; 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=QUARANTINE 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 o12-v6si877835plk.60.2018.02.21.20.29.56; Wed, 21 Feb 2018 20:29:57 -0800 (PST) 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=RFGMJh7t; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id C95FA786F4; Thu, 22 Feb 2018 04:29:50 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by mail.openembedded.org (Postfix) with ESMTP id A4B6F786D6 for ; Thu, 22 Feb 2018 04:29:48 +0000 (UTC) Received: by mail-pg0-f66.google.com with SMTP id m1so1569098pgp.13 for ; Wed, 21 Feb 2018 20:29:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=qT0dfBzo25Es30ukKUcMPgvt98PzN1rRmGOWM56bbUo=; b=RFGMJh7tdzSgH1DEpXCvWP3VadOc7sUH/ToKatcAyd0wDGtZ5DcpTSTzgEdSyLX/lF OjiJDxTtLKEXWN8TyLgfVqMKdKhNFEtAP8LrWtkg3SQ5xezkUjOJdeY1ZrTWTeGUGyhD rQA9T/AKXz7dS6HLsEuQeT78JlS1IGn5p0c4ah4be23lGrFUDcjxuZHoX+Mce4tmyDst yyhMapeV+Lk5DZdGi2g43dWc+3GZ+9YaWjRJbnufyIHbXNdvCWm1KG/tBdunYuwZ5xVJ GE1gGiLQfV2EF7kYD7dJtzYCwrwRo4ucUaTHVTONzHxM5DhPA/NJ/ebuRcKmMohyDiPp E5ng== 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=qT0dfBzo25Es30ukKUcMPgvt98PzN1rRmGOWM56bbUo=; b=lXCPW6RGsaPSUMJ7QqmwEeU68wMy8fYYeWSNfe5BeCUiqV0euqsksPEgc4r264cxuw C+fxmMQbVCDXWjQxbHAko14/r7QzjZgQsfOkk4LTVemboXxYbylUC87KKZG0SnDTvGph zHjDNEnGDa8nHr5VeQEBStEy54OYx/14HR14QCnG4XmNtrtInzX58h/21Mwr4V005JPQ NmNcjEoXlzBnlPXoapjtjaR+o/c8fb+0dzCTinE2d0wmp3Fe7WlQPKPgAp5o/I8s7/Ic DiEn/M0iLSZLL1SGxrWvMxa4H6A4mOHKeVX2m0grEIgViCBe9psAxrSpDLHTyKPlB1Lo iW6w== X-Gm-Message-State: APf1xPCNq7WgRpB4hMvFP4juxlzlaCDUCG/2z6dPuVWh+AG4bdtXmj4y K7CgdBCGiu2ffo4WZNS2IXIl8g== X-Received: by 10.99.169.26 with SMTP id u26mr4533302pge.304.1519273789651; Wed, 21 Feb 2018 20:29:49 -0800 (PST) Received: from localhost.localdomain ([2601:646:8880:466c::436d]) by smtp.gmail.com with ESMTPSA id q14sm57548265pgt.53.2018.02.21.20.29.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Feb 2018 20:29:48 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Wed, 21 Feb 2018 20:29:39 -0800 Message-Id: <20180222042940.3770-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.16.2 Subject: [oe] [meta-qt5][PATCH 1/2] qtbase: Replace -isystem with -I 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 Fixes no-x11 builds (eglfs) Signed-off-by: Khem Raj --- recipes-qt/qt5/qtbase-native_git.bb | 1 + ...mon-gcc-base.conf-Use-I-instead-of-isyste.patch | 36 ++++++++++++++++++++++ recipes-qt/qt5/qtbase_git.bb | 1 + 3 files changed, 38 insertions(+) create mode 100644 recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch -- 2.16.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/recipes-qt/qt5/qtbase-native_git.bb b/recipes-qt/qt5/qtbase-native_git.bb index 20e24eb..5fa24d3 100644 --- a/recipes-qt/qt5/qtbase-native_git.bb +++ b/recipes-qt/qt5/qtbase-native_git.bb @@ -34,6 +34,7 @@ SRC_URI += "\ file://0009-Add-OE-specific-specs-for-clang-compiler.patch \ file://0010-linux-clang-Invert-conditional-for-defining-QT_SOCKL.patch \ file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \ + file://0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \ " # common for qtbase-native and nativesdk-qtbase diff --git a/recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch b/recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch new file mode 100644 index 0000000..44e9009 --- /dev/null +++ b/recipes-qt/qt5/qtbase/0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch @@ -0,0 +1,36 @@ +From 61c858474804fd772d612e6c5b4bb6df261d521a Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 14 Feb 2018 17:08:43 -0800 +Subject: [PATCH] mkspecs/common/gcc-base.conf: Use -I instead of -isystem + +-isystem fails to build when code uses include_next on certain files e.g. + +qtbase/5.10.0+gitAUTOINC+50117d738a-r0/recipe-sysroot/usr/include/c++/7.3.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory + #include_next + ^~~~~~~~~~ +compilation terminated. +make[2]: *** [Makefile:11592: .obj/qgenericpluginfactory.o] Error 1 + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + mkspecs/common/gcc-base.conf | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/mkspecs/common/gcc-base.conf b/mkspecs/common/gcc-base.conf +index 234f71d495..ee3da023e6 100644 +--- a/mkspecs/common/gcc-base.conf ++++ b/mkspecs/common/gcc-base.conf +@@ -46,7 +46,7 @@ QMAKE_CFLAGS_DEBUG += -g + QMAKE_CFLAGS_SHLIB += $$QMAKE_CFLAGS_PIC + QMAKE_CFLAGS_STATIC_LIB += $$QMAKE_CFLAGS_PIC + QMAKE_CFLAGS_APP += $$QMAKE_CFLAGS_PIC +-QMAKE_CFLAGS_ISYSTEM = -isystem ++QMAKE_CFLAGS_ISYSTEM = -I + QMAKE_CFLAGS_YACC += -Wno-unused -Wno-parentheses + QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden + QMAKE_CFLAGS_EXCEPTIONS_OFF += -fno-exceptions +-- +2.16.1 + diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb index 522e261..e495b8c 100644 --- a/recipes-qt/qt5/qtbase_git.bb +++ b/recipes-qt/qt5/qtbase_git.bb @@ -30,6 +30,7 @@ SRC_URI += "\ file://0009-Add-OE-specific-specs-for-clang-compiler.patch \ file://0010-linux-clang-Invert-conditional-for-defining-QT_SOCKL.patch \ file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \ + file://0014-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \ " # LGPL-3.0 is used only in src/plugins/platforms/android/extract.cpp From patchwork Thu Feb 22 04:29:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 129143 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp185335lja; Wed, 21 Feb 2018 20:30:20 -0800 (PST) X-Google-Smtp-Source: AH8x226O6WphY2JXNZyWQB6Cl+sJId55CEYdUWwa5Y0XzUdzobTra3TKfeVZiPuOiPsNfR3aQJBM X-Received: by 10.98.89.85 with SMTP id n82mr5491305pfb.233.1519273819940; Wed, 21 Feb 2018 20:30:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519273819; cv=none; d=google.com; s=arc-20160816; b=r1qQbl8GtwSXWhtSR7h3BOdRoIx9HHtpZYPOVeOhvg41RcJ5CKXN70OFn26jtIF8YA g9/13/eCwMJhMpBKBDgloqdsP8DuFDS8xvkj3C8sDaOqfAtnBFxHLZkkX4QOi7GXI1Bj JFw8bTvM99PdKVEcQoA3YYtJA41olyC0uB2Hl8LM7VOe//fcrqvCNCNtCrYHAvaC7UQB l5tqjCXOskoOsgPT8Kt2bLXC9FSYGISdeZ9B0+rmMpTpYkvGgcivhZx/FrVDKVQbzo0O 28gXdXwfvr/IKWZKvW+igWFWNdHNvLPVNRR82ZyhyHpzzg5C7P82fe+DUrRhIR9l0ZKZ nEHw== 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=N1D5tj7nMRPAtLZ3+uCDT0GIpa20G3CV4MmDV8gfBJM=; b=ktnQAftdOKKdakdzrSForaLh54HOM8dKyZ9KWM6a863bDrq7Xq79oyJ53xDR7u0AAP 8b2LGZeeOPomqsoNqOtRPyKq+F54FOOqiC+US299SPFGGRuCf773h0WfYmdQKAxAQmom Vm9xg6Br0iTHu7YOaRIQwZqYrDGGQfzBKHKagjRmWQR6fYyORcUpmuj1MH3CzHWekQNu vFbPxtoxidfNIpnMs6kRy4AwnPGZ/k2ePWGgliwg1Fd7URitlEaF4+zNjGV11aaSuZ0B xg6vkxsccpHR1ujdOVdh4ZzgdArkvMDMrzMUNeEnSI9c932N3lRAhf+ji/wrutCNEPb9 UGGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Rgcy4NR3; 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=QUARANTINE 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 o6-v6si163129pls.589.2018.02.21.20.30.19; Wed, 21 Feb 2018 20:30:19 -0800 (PST) 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=Rgcy4NR3; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 7835E7873C; Thu, 22 Feb 2018 04:30:16 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl0-f68.google.com (mail-pl0-f68.google.com [209.85.160.68]) by mail.openembedded.org (Postfix) with ESMTP id 80C3C786F4 for ; Thu, 22 Feb 2018 04:29:50 +0000 (UTC) Received: by mail-pl0-f68.google.com with SMTP id x18so2265376pln.0 for ; Wed, 21 Feb 2018 20:29:52 -0800 (PST) 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=JxO2N20v331bJC9RrBj1oWOFN9OlncqaiSM0VNb6YAM=; b=Rgcy4NR3QRIBsew0Nt5+JcpFj1OticjSKe45D4L6d3fswq47IZFrC6RZfsazuv+4Te fXp0fGPD9hkhrTFoAF09kbIcwgtkwpe+XDAUYEu0Be3ofgv5L7Aq8lcsSdwn4r8pKOyG 5KgRuw7yhUpxrTJgyKR/Es/BTcHq4egrqRtR+fpoecQbLasF2/jdgiA5STfzCi2weqNW ha5aXK+IYWdcTfVScORkwtSteW6tgu9TfI91tf+mRAcoBO6MFftqoVxNDqMz2/ibcrYW TlDonkjckagWLjDlSV6Z9DU0bVq+kN7TU9NuTFZ4z7ubzfNkK+T906r56SYYsEVU4QFd 5bSQ== 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=JxO2N20v331bJC9RrBj1oWOFN9OlncqaiSM0VNb6YAM=; b=h/HIK36alcAW2NVLCHwHGBY/F8U9vORkvDGlhseNQSuG4TzByp9tXyFqvmyNs2FBhR xIdSpX4w9Pc9b7HgaVjpSOcdKe/MmGSoJc1IK2j65M/EE0kpEkOKTwJeULdvPH+I8bIt b0B+fqjxrwAUm8M50l8tn+vG7ikeFInk2dNOjDmyc9+kcdVh/MR8CiSbEE9r/UPttwuY 77U30y/Pg9e/dOIlIEG5H1n0/+qstKNeix+M34E84B/PUvdOe4Pfr1e/Jpu4fBIwNYbF 56X0UMKttp7aSvUUhxwFJmMTiAoOZkAJ4DjnnUFkAMh6ki6yihfCqpXgUFTzZqxsyiX1 Y06g== X-Gm-Message-State: APf1xPBg480KCu/woUP1IZ+QLvv5WHR4q4PO/GVnR/xqNwh/QTgYMTdU /mpAc2Ee8nn3leetMYclhuDE5g== X-Received: by 2002:a17:902:7f0b:: with SMTP id d11-v6mr5485565plm.350.1519273791569; Wed, 21 Feb 2018 20:29:51 -0800 (PST) Received: from localhost.localdomain ([2601:646:8880:466c::436d]) by smtp.gmail.com with ESMTPSA id q14sm57548265pgt.53.2018.02.21.20.29.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Feb 2018 20:29:49 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Wed, 21 Feb 2018 20:29:40 -0800 Message-Id: <20180222042940.3770-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180222042940.3770-1-raj.khem@gmail.com> References: <20180222042940.3770-1-raj.khem@gmail.com> Subject: [oe] [meta-qt5][PATCH 2/2] qtbase: Add packageconfigs for renameat2 and getentropy use 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 These features depend on underlying syscall support in kernel and if older kernels are in use, then we can have a knob to turn them off. Signed-off-by: Khem Raj --- recipes-qt/qt5/qtbase_git.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.16.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb index e495b8c..843648f 100644 --- a/recipes-qt/qt5/qtbase_git.bb +++ b/recipes-qt/qt5/qtbase_git.bb @@ -71,7 +71,7 @@ PACKAGECONFIG_DISTRO ?= "" PACKAGECONFIG_RELEASE ?= "release" # This is in qt5.inc, because qtwebkit-examples are using it to enable ca-certificates dependency # PACKAGECONFIG_OPENSSL ?= "openssl" -PACKAGECONFIG_DEFAULT ?= "dbus udev evdev widgets tools libs freetype tests" +PACKAGECONFIG_DEFAULT ?= "dbus udev evdev widgets tools libs freetype tests renameat2 getentropy" PACKAGECONFIG ?= " \ ${PACKAGECONFIG_RELEASE} \ @@ -146,6 +146,10 @@ PACKAGECONFIG[widgets] = "-widgets,-no-widgets" PACKAGECONFIG[libproxy] = "-libproxy,-no-libproxy,libproxy" PACKAGECONFIG[libinput] = "-libinput,-no-libinput,libinput" PACKAGECONFIG[journald] = "-journald,-no-journald,systemd" +# needs kernel 3.16+ +PACKAGECONFIG[renameat2] = "-feature-renameat2,-no-feature-renameat2," +# needs kernel 3.17+ +PACKAGECONFIG[getentropy] = "-feature-getentropy,-no-feature-getentropy," QT_CONFIG_FLAGS_GOLD = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '-use-gold-linker', '-no-use-gold-linker', d)}" QT_CONFIG_FLAGS += " \