From patchwork Sun Jun 17 07:54:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 138834 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp2689924lji; Sun, 17 Jun 2018 00:55:10 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLgyAZfFlg5ng3Qpb6+xhx2SRBg0MJmgEDe/LIvvH5g6weZ7wi/3gtvEND7kmN3Ow0pVVKQ X-Received: by 2002:a17:902:1121:: with SMTP id d30-v6mr9384431pla.247.1529222110376; Sun, 17 Jun 2018 00:55:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529222110; cv=none; d=google.com; s=arc-20160816; b=iYESSHxmlxVEQeL2v7J64TEFdCSG2ryKsgUDuAUdLqkuihjqg6eFFCGVHqTLu68PRa 4dBq1IznvDBH0vy0Izi5X4tsQGEEmK9gHvi5t0Op0NS3ZV1/k6AVKQ2qTcaiPY30ItBi ZqB89Ht0lCmtdMAzOJ6o9mvH5hb+2D79v1I91g2aDelinG67Cao+us2EW3RcavxAsLPm veRHskwFzgsr0TgtGQCNwvimrb33qyIjtxIJ0goMOrsKnjiz181p4CPFtF27iBw66zIj keggjN7j9pq7lbPIzqSUGBZAYc38kEsgok8Ogy8rkEqcm7jKQc5oGS4vcBsmQb60Ntl9 nYaA== 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=1706B7oT0f9qBxuWDrvti2kwWgdpjBHxra5gjcFaCaA=; b=WLR3OA3lwvLMNOlJSepyD+Qo3P85/TPLztiiI6ygth9T6BWkQA9abQ25H/pLN3X8SX GND5L/S6HimzOpglZ/FG+Tb5/QbvSpy40ydDntCnJGN/7mp3Oy5fq3tm2WzqCL/TD7z1 EVbdaVlhYEXGgihDjBx4BUE2vyZ0K/1WNwlGVRifVb4Gzkvr5SwLVhs7+LBQE8Qp68je i9FEiDHYGJobSTcJPnjuRKLhtbaOKwq1f4/UcrhgFvNuOikFEIMdkoCqaqr8zq2iD6Hj zURp5GIP7q3enDPIB6D8VHANQmSy6OUWmrdfl2KYDhqZKJbFduys+DygqKDkY4t42DiN ehBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=pxr8beWr; 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 r5-v6si9964980pgr.491.2018.06.17.00.55.10; Sun, 17 Jun 2018 00:55:10 -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=pxr8beWr; 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 22A8E7543A; Sun, 17 Jun 2018 07:55:07 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl0-f51.google.com (mail-pl0-f51.google.com [209.85.160.51]) by mail.openembedded.org (Postfix) with ESMTP id 4C27075438 for ; Sun, 17 Jun 2018 07:54:54 +0000 (UTC) Received: by mail-pl0-f51.google.com with SMTP id z9-v6so7426642plk.11 for ; Sun, 17 Jun 2018 00:54:55 -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=iGUjNU31XQ6JMDA/0/Iih3GZV9VKMYuTBhwCqoOlzQU=; b=pxr8beWr0aQDjd91svoi0KfIlBW1P/EPenUFl0y/JsPk0hHMoJ88vJiKIfgseS1Whj PPJc/miHZrsafHgS7YUEVFJm/wz/xIGWfALL6FCl3ARTPpVPYKIdRtaUjdXXebZQqPz6 yk6bPmjDqTg+kNwrRxF+p4xbY0bwp957TAqxmZkIiNHN+Z39IHE9wwwercxVv7WXLuMx z5JOZxH3mSrUVwxJerqTQ6MxckA6RDA2N+VcZCu76WI2WIns5J1T8Vaw8PrMfWCoQ4F5 0fdlUxK7cbQ83cIRR05P5A676FrS3/ctlearHjZZnbjcMImRhP2KRaCVsOQ957++bxhU HV/A== 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=iGUjNU31XQ6JMDA/0/Iih3GZV9VKMYuTBhwCqoOlzQU=; b=hEiS5ekB/CYHKDXqfpL1PcLseDxfLmMakbOtflckFftFnMu9XT4ubKKstGR5XPBmTj TlSbF5R5Uh4w/eZ7UKh9srrRSNWx0DYBH6u1V4Bb4HU8IJNL3069kbOxXrteCAEFIoaK EHFJ+oHkanvGS4uG+3A6Dbtoux/7x2KghlItc++p2HrO5OOnn7hT4BCV5vHo/XPVUlnJ KEb5QI/gQt8YQWEPGc519z/PmCCZLPXO0qDeGjjEKi85jIENWSuhDayjbgwwegU2AZeA P6G/sMxn03xfZEaPxUuUSOyrx9jIf4Nk/vqXS5rIQYUfq4lV7KszlF2Qb0o9/KV98EG0 EubQ== X-Gm-Message-State: APt69E2x3vY5unCjcZrQdGFYnRx6xduZyMMko3Urrc+zvEyu7PSUnQWy DZg184fLYq5GhFVCMkO/hic38w== X-Received: by 2002:a17:902:2006:: with SMTP id n6-v6mr9154884pla.125.1529222094889; Sun, 17 Jun 2018 00:54:54 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::91a0]) by smtp.gmail.com with ESMTPSA id p3-v6sm14538587pga.72.2018.06.17.00.54.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Jun 2018 00:54:53 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 17 Jun 2018 00:54:54 -0700 Message-Id: <20180617075454.17209-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180617075454.17209-1-raj.khem@gmail.com> References: <20180617075454.17209-1-raj.khem@gmail.com> Subject: [oe] [meta-networking][PATCH 2/2] spice: Fix build with musl 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 --- ...0001-Convert-pthread_t-to-be-numeric.patch | 66 +++++++++++++++++++ .../recipes-support/spice/spice_git.bb | 1 + 2 files changed, 67 insertions(+) create mode 100644 meta-networking/recipes-support/spice/spice/0001-Convert-pthread_t-to-be-numeric.patch -- 2.17.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-support/spice/spice/0001-Convert-pthread_t-to-be-numeric.patch b/meta-networking/recipes-support/spice/spice/0001-Convert-pthread_t-to-be-numeric.patch new file mode 100644 index 0000000000..505b7c890b --- /dev/null +++ b/meta-networking/recipes-support/spice/spice/0001-Convert-pthread_t-to-be-numeric.patch @@ -0,0 +1,66 @@ +From 0726ce6d6f52e135e28f15ca8392568c84909b1d Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 16 Jun 2018 16:21:39 -0700 +Subject: [PATCH] Convert pthread_t to be numeric + +typecast pthread_t to unsigned long +pthread_t is implemented as a struct point in musl and its as per standard + +Signed-off-by: Khem Raj +--- +Upstream-Status: Pending + + server/red-channel.c | 5 +++-- + server/red-client.c | 6 +++--- + 2 files changed, 6 insertions(+), 5 deletions(-) + +diff --git a/server/red-channel.c b/server/red-channel.c +index 1b38f04d..11dc667b 100644 +--- a/server/red-channel.c ++++ b/server/red-channel.c +@@ -192,7 +192,7 @@ red_channel_constructed(GObject *object) + { + RedChannel *self = RED_CHANNEL(object); + +- red_channel_debug(self, "thread_id 0x%lx", self->priv->thread_id); ++ red_channel_debug(self, "thread_id 0x%lx", (unsigned long)self->priv->thread_id); + + RedChannelClass *klass = RED_CHANNEL_GET_CLASS(self); + +@@ -475,7 +475,8 @@ void red_channel_remove_client(RedChannel *channel, RedChannelClient *rcc) + red_channel_warning(channel, "channel->thread_id (0x%lx) != pthread_self (0x%lx)." + "If one of the threads is != io-thread && != vcpu-thread, " + "this might be a BUG", +- channel->priv->thread_id, pthread_self()); ++ (unsigned long)channel->priv->thread_id, ++ (unsigned long)pthread_self()); + } + spice_return_if_fail(channel); + link = g_list_find(channel->priv->clients, rcc); +diff --git a/server/red-client.c b/server/red-client.c +index ddfc5400..76986640 100644 +--- a/server/red-client.c ++++ b/server/red-client.c +@@ -180,7 +180,7 @@ void red_client_migrate(RedClient *client) + spice_warning("client->thread_id (0x%lx) != pthread_self (0x%lx)." + "If one of the threads is != io-thread && != vcpu-thread," + " this might be a BUG", +- client->thread_id, pthread_self()); ++ (unsigned long)client->thread_id, (unsigned long)pthread_self()); + } + FOREACH_CHANNEL_CLIENT(client, rcc) { + if (red_channel_client_is_connected(rcc)) { +@@ -199,8 +199,8 @@ void red_client_destroy(RedClient *client) + spice_warning("client->thread_id (0x%lx) != pthread_self (0x%lx)." + "If one of the threads is != io-thread && != vcpu-thread," + " this might be a BUG", +- client->thread_id, +- pthread_self()); ++ (unsigned long)client->thread_id, ++ (unsigned long)pthread_self()); + } + red_client_set_disconnecting(client); + FOREACH_CHANNEL_CLIENT(client, rcc) { +-- +2.17.1 + diff --git a/meta-networking/recipes-support/spice/spice_git.bb b/meta-networking/recipes-support/spice/spice_git.bb index 508bb36996..bf4b083461 100644 --- a/meta-networking/recipes-support/spice/spice_git.bb +++ b/meta-networking/recipes-support/spice/spice_git.bb @@ -23,6 +23,7 @@ SRCREV_FORMAT = "spice_spice-common" SRC_URI = " \ git://anongit.freedesktop.org/spice/spice;name=spice \ git://anongit.freedesktop.org/spice/spice-common;destsuffix=git/spice-common;name=spice-common \ + file://0001-Convert-pthread_t-to-be-numeric.patch \ " FOO = "\ file://0001-build-allow-separated-src-and-build-dirs.patch \