From patchwork Wed Sep 6 16:09:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Jansa X-Patchwork-Id: 111802 Delivered-To: patch@linaro.org Received: by 10.140.94.166 with SMTP id g35csp1114860qge; Wed, 6 Sep 2017 09:07:25 -0700 (PDT) X-Received: by 10.98.212.25 with SMTP id a25mr7882764pfh.123.1504714044962; Wed, 06 Sep 2017 09:07:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504714044; cv=none; d=google.com; s=arc-20160816; b=JkfLkAkMTlcQX64SbYzYbP/cpykq7keo8KW6g/4p591YXJOk9Jaoq0fPz+8vu2jMTJ N5e0ENg3bZ/PTy70l6CqLAvvQeFZWZE2bH9AYikP7SglKdzhuwaZtxdHSKUOOyfveI0c hQQOOh2lTfFnmM2WoW380Z3/vylTbpTUsY9mTj96+2hhqqwbbcx23zJYDpV5u8Hdc3OB OvtvXTZ4ONrxpNXEQkonMMQsMgUxVS4NA6dqZf6EwzaGyTRE7Zj14XByfSMwG+SRIIBi YuI4AJdU2MgJ34RIcB62RwxINw8TXmjEKIBJ1KG7LgTsE39HEUQz3S4wApHXBUs20m/c uOfg== 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=S8KZi774gVv8DUF8crS3lJFVNzCxMssGlfcH0pXj9Fg=; b=Zs4/hYC0S2pmDQQRutE0F9Cormd2ef6e6EnopjI2/pqebzt+FZxb3NmawbA71Ugm9Y RGhEIHb4fgLsCTkbPhYgB640x+YHslicHxSQtDnKkeHD5tBDggez1dP/GuexI0s+A3mL LQu8yHvr50J+p02blo3HcyBU6sRRu0UQlxiv2lSNTPT0la51G5EXHKzNEBVoCWBQlH/I hRSBp5ZjcPzvfKYZoMUVIDD8nh8ghCmqlEnyX0qUVnVp6ARZ0l5ROr3pTBsx/e8Cr6Ay O4nB3sRSinbcrSnZZLkc4Opp93GWZHDohenntLUi2yaWhO7OG3Xnt/1/uaKDswlKUFu/ O8xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=OCAPNr3u; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-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 t63si102380pfa.579.2017.09.06.09.07.24; Wed, 06 Sep 2017 09:07:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-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=OCAPNr3u; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-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 485A877DCA; Wed, 6 Sep 2017 16:07:22 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by mail.openembedded.org (Postfix) with ESMTP id 7FA0E77CE0 for ; Wed, 6 Sep 2017 16:07:04 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id l19so2659218wmi.1 for ; Wed, 06 Sep 2017 09:07:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=A/2adR0knE7n+X3X+u4MXBXgLYUPDr9NLYnh7Iy8JQA=; b=OCAPNr3uhZbYrGn4zZ8YK+msWR+qYa+KBSvEpIur4viqYYT6jAsOecrMDOu20mGPsn /yTjvh5j4J64cbeeLxJUW7xyNPw6CwbsDCew4DhhGZnmiZIXrBkGzPw4y06uMK9iedmp BFtz4EeK0C/q61c9XlHc6VI+QBOi6+hD92gNHKUKhu0exnwatyIuYrsfDPgZJlPaxWA2 ZzVm83+6WMv5CIxo5teVcnrkaUcYuV9OZHKaQqbajfNfXNlNmDu5D0xDSFgafR0S19AR e5i1qx9Mvr+ompzOv7lE+XdepcsZ7Z2skbUnvVb8t41uJG5b/Hul54U3uOXGkds/iXMj ++rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=A/2adR0knE7n+X3X+u4MXBXgLYUPDr9NLYnh7Iy8JQA=; b=rngXAutpdZrtr6djh8OnnqAGX2U2pUIJ5NEUiH8QtiT3UZ+VL0CecPucY9PNDBX0zC zcdCBpRYRj9WIZL01QUEMreur+vJ7jC6bTPRnwH9RsEzobmHFWmW+7jkWYqd7xcd4toq gHK/PyRVsJ5GwD/39P5RSgprC6dC5Uwi5hK1PLlcaJRk0boFOG7lcFzX00oQVFL03INA iurfadnuV/fKLeOlEmMLUk47aVu+S15r86u6nFW/5zQUDRiY2JsgVUF2Jj9WOX2lIakC mOOXwBdHZ2nb8YZz9ecbirr20ZMfO44lxcwt7EUyDW2lJW7nPVlQdj+f8PxckVYUaknW WfBg== X-Gm-Message-State: AHPjjUhCCXoGfSMZFCnlF4fUx2jidNz9sVbJ4YCXNTmH88eTH3UglSpu kYp5bzSYmbmFKDlj X-Google-Smtp-Source: ADKCNb7G4uPz7putsl1IQn8BwHPq97mOxQsYPoOTvd4vOxHL8LkqcblF7wf8pdQSBQaxQ6J0KQ9vgg== X-Received: by 10.28.27.195 with SMTP id b186mr187650wmb.96.1504714024873; Wed, 06 Sep 2017 09:07:04 -0700 (PDT) Received: from localhost ([217.30.68.212]) by smtp.gmail.com with ESMTPSA id m19sm1411565wmd.16.2017.09.06.09.07.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Sep 2017 09:07:04 -0700 (PDT) From: Martin Jansa X-Google-Original-From: Martin Jansa To: openembedded-core@lists.openembedded.org Date: Wed, 6 Sep 2017 18:09:05 +0200 Message-Id: X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Subject: [OE-core] [pyro][PATCH 1/3] icu: Fix build with glibc 2.26 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Khem Raj Signed-off-by: Khem Raj Signed-off-by: Ross Burton --- .../icu/icu/0001-i18n-Drop-include-xlocale.h.patch | 31 ++++++++++++++++++++++ meta/recipes-support/icu/icu_58.2.bb | 3 ++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-support/icu/icu/0001-i18n-Drop-include-xlocale.h.patch -- 2.14.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-support/icu/icu/0001-i18n-Drop-include-xlocale.h.patch b/meta/recipes-support/icu/icu/0001-i18n-Drop-include-xlocale.h.patch new file mode 100644 index 0000000000..add0d765b7 --- /dev/null +++ b/meta/recipes-support/icu/icu/0001-i18n-Drop-include-xlocale.h.patch @@ -0,0 +1,31 @@ +From c4254fd8ff1888ca285e3242b812010357ce2b3e Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 24 Jun 2017 22:52:40 -0700 +Subject: [PATCH] i18n: Drop include + +glibc 2.26 drops this header + +Signed-off-by: Khem Raj +--- +Upstream-Status: Pending + + i18n/digitlst.cpp | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) + +Index: source/i18n/digitlst.cpp +=================================================================== +--- source.orig/i18n/digitlst.cpp ++++ source/i18n/digitlst.cpp +@@ -61,11 +61,7 @@ + #endif + + #if U_USE_STRTOD_L +-# if U_PLATFORM_USES_ONLY_WIN32_API || U_PLATFORM == U_PF_CYGWIN +-# include +-# else +-# include +-# endif ++# include + #endif + + // *************************************************************************** diff --git a/meta/recipes-support/icu/icu_58.2.bb b/meta/recipes-support/icu/icu_58.2.bb index 4d062ebf94..47684a6c8b 100644 --- a/meta/recipes-support/icu/icu_58.2.bb +++ b/meta/recipes-support/icu/icu_58.2.bb @@ -16,7 +16,8 @@ BASE_SRC_URI = "http://download.icu-project.org/files/icu4c/${PV}/icu4c-${ICU_PV SRC_URI = "${BASE_SRC_URI} \ file://icu-pkgdata-large-cmd.patch \ file://fix-install-manx.patch \ - " + file://0001-i18n-Drop-include-xlocale.h.patch \ + " SRC_URI_append_class-target = "\ file://0001-Disable-LDFLAGSICUDT-for-Linux.patch \ From patchwork Wed Sep 6 16:09:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Jansa X-Patchwork-Id: 111803 Delivered-To: patch@linaro.org Received: by 10.140.94.166 with SMTP id g35csp1115021qge; Wed, 6 Sep 2017 09:07:30 -0700 (PDT) X-Received: by 10.98.57.129 with SMTP id u1mr7722364pfj.197.1504714050601; Wed, 06 Sep 2017 09:07:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504714050; cv=none; d=google.com; s=arc-20160816; b=sn4yF29qZbJW2PwUfvazY0dr1qLm4/W2wzYJGuzx/Zm/cc5H6RjYj7Qv9nWQx+dh56 h5H0YEXbdhbiALhBHY4scshaJogNTQdG+rG/YKB5RdFN2TgJDOOeKoP5sIyLwOVkiZ6z nHssoM0UATt8qDdk6a+bPmcbzID5W3p/FqKjQqWlUcJghhbN+Dy555dvGIfmIaQec0Qb WsgfMI+P/oTnX/UlxhWvitgTb5TRi5cMAKRYrdzi7+khJxJzSi63CAsrOwCOUqp8dQZo WnPu3qHFEQIzQ+QC7hp0flKRxm6trfEKzin6rBzzcE77IlLK2lQtKB9Nx1JA/Sh0R12z uRoQ== 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=9TdBdFbqn7+nlkqbWm3VnCjVjs09CjdhKfRNWpTH2Hk=; b=rufE6sHngn7qlGCkKZROixcM34A/i/ufTqVU9hqzt2opBpKQiILYwTe+mi8iESlQTu IrwqFWT5GwONmqnUWEYLQYkXFqmzLHdpCx77CS3REXx00v4d/3jEQxsmM/OtV3zMfIYU qhfCjVDtHjHCRWPlhj3H77c+h5KaqnltVaCYw1QghpcHfUw/iiz4ej311mnacR4QmUwI mHw5/SIL/1m4XAyVkqyQEOMm3KVeAwoqnsedzWvL6tdBiYt1e8QJy/lisnuhaULY5/zn UzyRKq7vikauB/10m4w7nyBMvxqaWilAcvy1g4tnO8EAjRmxi/mSZKes0yLaXuNEBCA4 h4Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=CCLd9Q2f; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-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 l15si149146plk.246.2017.09.06.09.07.30; Wed, 06 Sep 2017 09:07:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-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=CCLd9Q2f; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-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 3DAEB77E0D; Wed, 6 Sep 2017 16:07:23 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by mail.openembedded.org (Postfix) with ESMTP id AE1AF77CF9 for ; Wed, 6 Sep 2017 16:07:05 +0000 (UTC) Received: by mail-wr0-f193.google.com with SMTP id b9so3289146wra.0 for ; Wed, 06 Sep 2017 09:07:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=vtkVNbOK3OC42NmatcBWxK5/dnPtZkLQzSv3qjuhHko=; b=CCLd9Q2fHCY8NzCUXmgYeThWy6PdfG4xescldsQ8Degjw6ibL7LQPwmWDc2o1nZsL9 T2YOwB1r8PudayyKFP/4CdGl80zjw3i5XNfnNSsgTRoIXj9mEngaNKbIOQEzk837D4un NQk0KBMKc8fXgtKbjYQDG+MY29Ly7EFmRo/H+9zUJdWroLovT4K8CIgIKS9vQFJu8YV4 lJxfMR315J1v98GifOziTAG5CgmrMjl30wRU9AtQu7NHQpufSdl/YQCy8XRagHrICB76 +Bibkhgs7fVvwL3yosizxeVgl8Y9V+EPk4Z1yt8jWqYhUPCEDZ0ur68upfrB/KUw5XUC qRyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=vtkVNbOK3OC42NmatcBWxK5/dnPtZkLQzSv3qjuhHko=; b=DPgSa+WYEp7H6sSj6aXm8z7LtlgnuvtCZnpA3avDPO0Qud7CUAc6pVqnr/k8cpaW07 FMR5my8rIZIcF+E6whJu0xtour9T6HiHutX6FHtqQYSHQJOP071P+h9eNs+LbThJCJ4l USjHHHJFZWOfEZt1LPH3oZxfKnLXlqqxAPnyzVy1UtwQG2J1EHXIZvFuzZ2jYSCvq6Fu 2EsqLeC4sV5g5r0mrw9AdmW0xeP3IdeoQZ1BOyQZDlmiWPdXefh8gjQ/EoMM/AAErfch kX3HaW73nvcx/YpSRyfxH+pcgcWyS4mv6+WpfFBD3icGMiFcBMmVjJfk7NIENco9ywfE 0gNw== X-Gm-Message-State: AHPjjUiFWjdikVjg7/USzlu1rkAASDt+NeeEWlbdAIZT1LZXiXekzo3F uUM2+MjU2HpOQdUQ X-Google-Smtp-Source: ADKCNb7KzTgHwY3SxDpwUqO/EW/wHXu+3auYgGX+v/P0RkeNOvldeRNbYktxnELZEF1R0yqQjJERTw== X-Received: by 10.223.144.229 with SMTP id i92mr2333270wri.283.1504714026016; Wed, 06 Sep 2017 09:07:06 -0700 (PDT) Received: from localhost ([217.30.68.212]) by smtp.gmail.com with ESMTPSA id 193sm2273590wmh.47.2017.09.06.09.07.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Sep 2017 09:07:05 -0700 (PDT) From: Martin Jansa X-Google-Original-From: Martin Jansa To: openembedded-core@lists.openembedded.org Date: Wed, 6 Sep 2017 18:09:06 +0200 Message-Id: X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Subject: [OE-core] [pyro][PATCH 2/3] qemu: Replace use of struct ucontext with ucontext_t X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Khem Raj Signed-off-by: Khem Raj Signed-off-by: Ross Burton Signed-off-by: Martin Jansa --- ...lace-struct-ucontext-with-ucontext_t-type.patch | 265 +++++++++++++++++++++ meta/recipes-devtools/qemu/qemu_2.8.0.bb | 1 + 2 files changed, 266 insertions(+) create mode 100644 meta/recipes-devtools/qemu/qemu/0001-replace-struct-ucontext-with-ucontext_t-type.patch -- 2.14.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/qemu/qemu/0001-replace-struct-ucontext-with-ucontext_t-type.patch b/meta/recipes-devtools/qemu/qemu/0001-replace-struct-ucontext-with-ucontext_t-type.patch new file mode 100644 index 0000000000..c3eb543ec0 --- /dev/null +++ b/meta/recipes-devtools/qemu/qemu/0001-replace-struct-ucontext-with-ucontext_t-type.patch @@ -0,0 +1,265 @@ +From 80954c03163fdbf8b905595a69008093096ee2f6 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 28 Jun 2017 13:28:37 -0700 +Subject: [PATCH] replace struct ucontext with ucontext_t type + +The ucontext_t type had a tag struct ucontext until now +but newer glibc will drop it so we need to adjust and use +the exposed type instead + +Signed-off-by: Khem Raj +Cc: Kamil Rytarowski +Cc: Riku Voipio +Cc: Laurent Vivier +Cc: Paolo Bonzini + +Upstream-Status: Submitted +--- + linux-user/host/aarch64/hostdep.h | 2 +- + linux-user/host/arm/hostdep.h | 2 +- + linux-user/host/i386/hostdep.h | 2 +- + linux-user/host/ppc64/hostdep.h | 2 +- + linux-user/host/s390x/hostdep.h | 2 +- + linux-user/host/x86_64/hostdep.h | 2 +- + linux-user/signal.c | 10 +++++----- + tests/tcg/test-i386.c | 4 ++-- + user-exec.c | 18 +++++++++--------- + 9 files changed, 22 insertions(+), 22 deletions(-) + +diff --git a/linux-user/host/aarch64/hostdep.h b/linux-user/host/aarch64/hostdep.h +index 64f75cef49..a8d41a21ad 100644 +--- a/linux-user/host/aarch64/hostdep.h ++++ b/linux-user/host/aarch64/hostdep.h +@@ -24,7 +24,7 @@ extern char safe_syscall_end[]; + /* Adjust the signal context to rewind out of safe-syscall if we're in it */ + static inline void rewind_if_in_safe_syscall(void *puc) + { +- struct ucontext *uc = puc; ++ ucontext_t *uc = puc; + __u64 *pcreg = &uc->uc_mcontext.pc; + + if (*pcreg > (uintptr_t)safe_syscall_start +diff --git a/linux-user/host/arm/hostdep.h b/linux-user/host/arm/hostdep.h +index 5c1ae60120..9276fe6ceb 100644 +--- a/linux-user/host/arm/hostdep.h ++++ b/linux-user/host/arm/hostdep.h +@@ -24,7 +24,7 @@ extern char safe_syscall_end[]; + /* Adjust the signal context to rewind out of safe-syscall if we're in it */ + static inline void rewind_if_in_safe_syscall(void *puc) + { +- struct ucontext *uc = puc; ++ ucontext_t *uc = puc; + unsigned long *pcreg = &uc->uc_mcontext.arm_pc; + + if (*pcreg > (uintptr_t)safe_syscall_start +diff --git a/linux-user/host/i386/hostdep.h b/linux-user/host/i386/hostdep.h +index d834bd80ea..073be74d87 100644 +--- a/linux-user/host/i386/hostdep.h ++++ b/linux-user/host/i386/hostdep.h +@@ -24,7 +24,7 @@ extern char safe_syscall_end[]; + /* Adjust the signal context to rewind out of safe-syscall if we're in it */ + static inline void rewind_if_in_safe_syscall(void *puc) + { +- struct ucontext *uc = puc; ++ ucontext_t *uc = puc; + greg_t *pcreg = &uc->uc_mcontext.gregs[REG_EIP]; + + if (*pcreg > (uintptr_t)safe_syscall_start +diff --git a/linux-user/host/ppc64/hostdep.h b/linux-user/host/ppc64/hostdep.h +index 0b0f5f7821..98979ad917 100644 +--- a/linux-user/host/ppc64/hostdep.h ++++ b/linux-user/host/ppc64/hostdep.h +@@ -24,7 +24,7 @@ extern char safe_syscall_end[]; + /* Adjust the signal context to rewind out of safe-syscall if we're in it */ + static inline void rewind_if_in_safe_syscall(void *puc) + { +- struct ucontext *uc = puc; ++ ucontext_t *uc = puc; + unsigned long *pcreg = &uc->uc_mcontext.gp_regs[PT_NIP]; + + if (*pcreg > (uintptr_t)safe_syscall_start +diff --git a/linux-user/host/s390x/hostdep.h b/linux-user/host/s390x/hostdep.h +index 6f9da9c608..4f0171f36f 100644 +--- a/linux-user/host/s390x/hostdep.h ++++ b/linux-user/host/s390x/hostdep.h +@@ -24,7 +24,7 @@ extern char safe_syscall_end[]; + /* Adjust the signal context to rewind out of safe-syscall if we're in it */ + static inline void rewind_if_in_safe_syscall(void *puc) + { +- struct ucontext *uc = puc; ++ ucontext_t *uc = puc; + unsigned long *pcreg = &uc->uc_mcontext.psw.addr; + + if (*pcreg > (uintptr_t)safe_syscall_start +diff --git a/linux-user/host/x86_64/hostdep.h b/linux-user/host/x86_64/hostdep.h +index 3b4259633e..a4fefb5114 100644 +--- a/linux-user/host/x86_64/hostdep.h ++++ b/linux-user/host/x86_64/hostdep.h +@@ -24,7 +24,7 @@ extern char safe_syscall_end[]; + /* Adjust the signal context to rewind out of safe-syscall if we're in it */ + static inline void rewind_if_in_safe_syscall(void *puc) + { +- struct ucontext *uc = puc; ++ ucontext_t *uc = puc; + greg_t *pcreg = &uc->uc_mcontext.gregs[REG_RIP]; + + if (*pcreg > (uintptr_t)safe_syscall_start +diff --git a/linux-user/signal.c b/linux-user/signal.c +index c750053edd..4638123dd8 100644 +--- a/linux-user/signal.c ++++ b/linux-user/signal.c +@@ -3170,7 +3170,7 @@ static void setup_rt_frame(int sig, struct target_sigaction *ka, + * + * a0 = signal number + * a1 = pointer to siginfo_t +- * a2 = pointer to struct ucontext ++ * a2 = pointer to ucontext_t + * + * $25 and PC point to the signal handler, $29 points to the + * struct sigframe. +@@ -3557,7 +3557,7 @@ struct target_signal_frame { + + struct rt_signal_frame { + siginfo_t info; +- struct ucontext uc; ++ ucontext_t uc; + uint32_t tramp[2]; + }; + +@@ -3773,7 +3773,7 @@ struct rt_signal_frame { + siginfo_t *pinfo; + void *puc; + siginfo_t info; +- struct ucontext uc; ++ ucontext_t uc; + uint16_t retcode[4]; /* Trampoline code. */ + }; + +@@ -4074,7 +4074,7 @@ static void setup_rt_frame(int sig, struct target_sigaction *ka, + tswap_siginfo(&frame->info, info); + } + +- /*err |= __clear_user(&frame->uc, offsetof(struct ucontext, uc_mcontext));*/ ++ /*err |= __clear_user(&frame->uc, offsetof(ucontext_t, uc_mcontext));*/ + __put_user(0, &frame->uc.tuc_flags); + __put_user(0, &frame->uc.tuc_link); + __put_user(target_sigaltstack_used.ss_sp, +@@ -4565,7 +4565,7 @@ enum { + + struct target_ucontext { + target_ulong tuc_flags; +- target_ulong tuc_link; /* struct ucontext __user * */ ++ target_ulong tuc_link; /* ucontext_t __user * */ + struct target_sigaltstack tuc_stack; + #if !defined(TARGET_PPC64) + int32_t tuc_pad[7]; +diff --git a/tests/tcg/test-i386.c b/tests/tcg/test-i386.c +index 0f7b943b0c..9599204895 100644 +--- a/tests/tcg/test-i386.c ++++ b/tests/tcg/test-i386.c +@@ -1720,7 +1720,7 @@ int tab[2]; + + void sig_handler(int sig, siginfo_t *info, void *puc) + { +- struct ucontext *uc = puc; ++ ucontext_t *uc = puc; + + printf("si_signo=%d si_errno=%d si_code=%d", + info->si_signo, info->si_errno, info->si_code); +@@ -1912,7 +1912,7 @@ void test_exceptions(void) + /* specific precise single step test */ + void sig_trap_handler(int sig, siginfo_t *info, void *puc) + { +- struct ucontext *uc = puc; ++ ucontext_t *uc = puc; + printf("EIP=" FMTLX "\n", (long)uc->uc_mcontext.gregs[REG_EIP]); + } + +diff --git a/user-exec.c b/user-exec.c +index 6db075884d..3f1b899e3d 100644 +--- a/user-exec.c ++++ b/user-exec.c +@@ -155,7 +155,7 @@ int cpu_signal_handler(int host_signum, void *pinfo, + #elif defined(__OpenBSD__) + struct sigcontext *uc = puc; + #else +- struct ucontext *uc = puc; ++ ucontext_t *uc = puc; + #endif + unsigned long pc; + int trapno; +@@ -210,7 +210,7 @@ int cpu_signal_handler(int host_signum, void *pinfo, + #elif defined(__OpenBSD__) + struct sigcontext *uc = puc; + #else +- struct ucontext *uc = puc; ++ ucontext_t *uc = puc; + #endif + + pc = PC_sig(uc); +@@ -277,7 +277,7 @@ int cpu_signal_handler(int host_signum, void *pinfo, + #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) + ucontext_t *uc = puc; + #else +- struct ucontext *uc = puc; ++ ucontext_t *uc = puc; + #endif + unsigned long pc; + int is_write; +@@ -304,7 +304,7 @@ int cpu_signal_handler(int host_signum, void *pinfo, + void *puc) + { + siginfo_t *info = pinfo; +- struct ucontext *uc = puc; ++ ucontext_t *uc = puc; + uint32_t *pc = uc->uc_mcontext.sc_pc; + uint32_t insn = *pc; + int is_write = 0; +@@ -402,7 +402,7 @@ int cpu_signal_handler(int host_signum, void *pinfo, + #if defined(__NetBSD__) + ucontext_t *uc = puc; + #else +- struct ucontext *uc = puc; ++ ucontext_t *uc = puc; + #endif + unsigned long pc; + int is_write; +@@ -429,7 +429,7 @@ int cpu_signal_handler(int host_signum, void *pinfo, + int cpu_signal_handler(int host_signum, void *pinfo, void *puc) + { + siginfo_t *info = pinfo; +- struct ucontext *uc = puc; ++ ucontext_t *uc = puc; + uintptr_t pc = uc->uc_mcontext.pc; + uint32_t insn = *(uint32_t *)pc; + bool is_write; +@@ -462,7 +462,7 @@ int cpu_signal_handler(int host_signum, void *pinfo, void *puc) + int cpu_signal_handler(int host_signum, void *pinfo, void *puc) + { + siginfo_t *info = pinfo; +- struct ucontext *uc = puc; ++ ucontext_t *uc = puc; + unsigned long ip; + int is_write = 0; + +@@ -493,7 +493,7 @@ int cpu_signal_handler(int host_signum, void *pinfo, + void *puc) + { + siginfo_t *info = pinfo; +- struct ucontext *uc = puc; ++ ucontext_t *uc = puc; + unsigned long pc; + uint16_t *pinsn; + int is_write = 0; +@@ -546,7 +546,7 @@ int cpu_signal_handler(int host_signum, void *pinfo, + void *puc) + { + siginfo_t *info = pinfo; +- struct ucontext *uc = puc; ++ ucontext_t *uc = puc; + greg_t pc = uc->uc_mcontext.pc; + int is_write; + +-- +2.13.2 + diff --git a/meta/recipes-devtools/qemu/qemu_2.8.0.bb b/meta/recipes-devtools/qemu/qemu_2.8.0.bb index 19d7e8f658..59a731addc 100644 --- a/meta/recipes-devtools/qemu/qemu_2.8.0.bb +++ b/meta/recipes-devtools/qemu/qemu_2.8.0.bb @@ -21,6 +21,7 @@ SRC_URI += " \ file://qemu-2.5.0-cflags.patch \ file://target-ppc-fix-user-mode.patch \ file://glibc-2.25.patch \ + file://0001-replace-struct-ucontext-with-ucontext_t-type.patch \ " SRC_URI += " \ From patchwork Wed Sep 6 16:09:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Jansa X-Patchwork-Id: 111804 Delivered-To: patch@linaro.org Received: by 10.140.94.166 with SMTP id g35csp1115227qge; Wed, 6 Sep 2017 09:07:37 -0700 (PDT) X-Received: by 10.98.105.8 with SMTP id e8mr7822383pfc.253.1504714057756; Wed, 06 Sep 2017 09:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504714057; cv=none; d=google.com; s=arc-20160816; b=mQHc2iDFrqPlkmYvpZ2R1nCIsHb7oa/ZNutDbaV2SpV7YDRQutjhIXcuG7eyOiWxTf WwyPC9Byg502FvGRdeINTtYfIFFL/1Sf8VfriJN0J1yVNNvgIT1tNlL38yk1FWNMe4b3 yWsF5cXml0ZLW94O+7Fw9uD1hf0JGyRtQXitv5CCMWVGVkwrLWGaQoxflb4OJ57ln9eW p2ExlaOpChk9laJo83ZaO5QiCxXT/I/OPuR7nW8ms6hXdCFpO1STMpUlon334GXG9Mps miE848VJZThgLRDv29GwtdbSzob3h5ppqjhnF50/G3sI2bvW7F2EtmZCpUdHI6rYFcIb INSQ== 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=hN0izA9awCY2iXiZA3BEEcwLX+ZjyWbmueV8++tcf7k=; b=jFnnx5XQWEznJYtFZks1wE3+hBnuIcSczLQRAKUrKYJ66iM5P9PAClCMvCyn/ijfe7 7gamnNoz93O0cIZQLMrris6/xLRRItcNMBj0Ns5wI2bRgo8UCihO6ynOPiEJCGT4/AFH uax0srGqSQTQ6i6Ovou3tMMCnjTUEhAg5xsPacj2QiPK8XcTTP4r3cksZXGsfxZI/2Uh 6lxl1wx5g1s/cAGGK+dcQ5koQfOIao6tzYC3hmugL5ABpjL1DOLLh6ykwVhipRPBJNzC 1baAr79q73SsEVRGgT+v61crETDkjIGdCU109ZfmCqS/MFbLsDj7TfdgS8J0nhrevmXu tOyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Jct0CcTq; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-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 z85si130657pfa.157.2017.09.06.09.07.37; Wed, 06 Sep 2017 09:07:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-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=Jct0CcTq; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-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 626F577DB5; Wed, 6 Sep 2017 16:07:27 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by mail.openembedded.org (Postfix) with ESMTP id E264477D0A for ; Wed, 6 Sep 2017 16:07:06 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id p17so5649860wmd.3 for ; Wed, 06 Sep 2017 09:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=IHoSGwev2ZrnCM4KPZLeQvosrhFYDumxIrbP5anplbw=; b=Jct0CcTqi2fgzN7u+gMcUD05O96ByjPDVun91ber4u5yqD98dm6KuVpvofESM/c2R8 SNMA1tnCpNi7aaCPjmeCjgNKtZcvEf9K9aCgqZHxGpG27CV23llZ5lrHOXsk0zLVhDEv HnKV/U648w5gk5o3GCwnKDXSmnMBt0/4mmVSInTW4ppAa1Y+NTYItSGaAe73gPt4t3Kv QpWce7S0rL9WTx/9SH8x+Sbr9u792rpuohm3Wfp22Zagh1HUQ7mTdCA+uzzV+HLWRrdO nVh54UbkpuuM6xQL+g5F2AdSnpOLQTE370dpqR1RIpIKOdgkvhNnSg+0S0ontvdOwU5s lcqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=IHoSGwev2ZrnCM4KPZLeQvosrhFYDumxIrbP5anplbw=; b=pfzei2/TG8M8VgWbf+NqTiTtwu6F4jBfk0qzzaXOgLt8h0cCV/04/giZF0jP/ycnrQ HOBSPGZbrY1GM/WPO8srr+IGXuOlYKJSs7nTLMPch1DOtbuCLezDWE8cJ8hZuZd21izw CvGxXmkYKaR8XJkJVtLE7PkzeX1eAOD5rBd8u5aPCfabYg1NIzQ25cQKAtefSuXckoiI XeV7DhPH4BxREd5TkkwUssE88VgZ86bDFUjVzKNEjgTBPkN+ZsDuqzxWwbxuJbft6G2q H+scbkHIJhSkOfMyXWhBhwkdThXKdBZ2dnxShUNBTyuFfa5g9HTeo4R68WPwyDv8I+HQ F4uw== X-Gm-Message-State: AHPjjUjgTPXlqeHaIonfnlyi9YTnoHuTfWqRK/yH9GMKNJH4HhsJuD3v 3AOP/f71cysGS9U7 X-Google-Smtp-Source: ADKCNb5Z9TASNxeM8FayH8a0CtMB9H6j7CnsBdyd114iTT4AvCKpRC49NJr4E25dZ40X+BlggWGoEw== X-Received: by 10.28.55.203 with SMTP id e194mr182178wma.142.1504714027246; Wed, 06 Sep 2017 09:07:07 -0700 (PDT) Received: from localhost ([217.30.68.212]) by smtp.gmail.com with ESMTPSA id w82sm3163833wme.5.2017.09.06.09.07.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Sep 2017 09:07:06 -0700 (PDT) From: Martin Jansa X-Google-Original-From: Martin Jansa To: openembedded-core@lists.openembedded.org Date: Wed, 6 Sep 2017 18:09:07 +0200 Message-Id: <2a340682c73a95658fda5e5e0b781dffdabb4f07.1504713837.git.Martin.Jansa@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: Subject: [OE-core] [pyro][PATCH 3/3] nspr: Fix build error due to missing stdint.h> include X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Khem Raj Signed-off-by: Khem Raj Signed-off-by: Ross Burton Signed-off-by: Martin Jansa --- ...int.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch | 30 ++++++++++++++++++++++ meta/recipes-support/nspr/nspr_4.13.1.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta/recipes-support/nspr/nspr/0001-include-stdint.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch -- 2.14.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-support/nspr/nspr/0001-include-stdint.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch b/meta/recipes-support/nspr/nspr/0001-include-stdint.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch new file mode 100644 index 0000000000..b3bdd8e08d --- /dev/null +++ b/meta/recipes-support/nspr/nspr/0001-include-stdint.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch @@ -0,0 +1,30 @@ +From f7551ec58e2f0a892295e0c2a650083101e12c54 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 20 May 2017 13:24:26 -0700 +Subject: [PATCH] include stdint.h for SSIZE_MAX and SIZE_MAX definitions + +Signed-off-by: Khem Raj +--- +Upstream-Status: Pending + + pr/tests/prfz.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/pr/tests/prfz.c b/pr/tests/prfz.c +index 0c5a432..9c17590 100644 +--- a/pr/tests/prfz.c ++++ b/pr/tests/prfz.c +@@ -10,7 +10,9 @@ + #include + #include + #include +- ++#ifdef XP_UNIX ++#include ++#endif + int + main(int argc, char **argv) + { +-- +2.13.0 + diff --git a/meta/recipes-support/nspr/nspr_4.13.1.bb b/meta/recipes-support/nspr/nspr_4.13.1.bb index 27c22379f6..63ebecf729 100644 --- a/meta/recipes-support/nspr/nspr_4.13.1.bb +++ b/meta/recipes-support/nspr/nspr_4.13.1.bb @@ -10,6 +10,7 @@ SRC_URI = "http://ftp.mozilla.org/pub/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz file://fix-build-on-x86_64.patch \ file://remove-srcdir-from-configure-in.patch \ file://0002-Add-nios2-support.patch \ + file://0001-include-stdint.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch \ file://nspr.pc.in \ "