From patchwork Sun Nov 17 03:49:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 179559 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1239270ilf; Sat, 16 Nov 2019 19:50:21 -0800 (PST) X-Google-Smtp-Source: APXvYqwFF2d7HxQsKpcYcw4yn7GXlolJFDIralOXOTzuM+R5XGuBaZa2lTL6WUnG49FBS4NblaqB X-Received: by 2002:a17:902:b60d:: with SMTP id b13mr23791731pls.145.1573962621611; Sat, 16 Nov 2019 19:50:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573962621; cv=none; d=google.com; s=arc-20160816; b=KzddUN1UykJZQZNJos/TBNevIBumkdms+4tbNrvpiXK4h/U0uM8uQuQiiNGpqWx265 sOB+60VCC73g7khQmWUYxUEyNBoQ1wf+a8Ih8mc9IwMtHMODdCv2dK0zAa2ABXKFX/di I0lDGk0BqWV4nrC0f0/TGeuPrScycvtlyIQkDSbJPd7VYJ4MltHXGqhGLNJdFLl7p38H dMfaCgNyidSm+v3v4axIDKAAVPZ2aSIt4REaBMEcq4rNCujzyvfDlcSULJLr41v243Et 9ihvFttRcMU0QM+ZkJgKIeKUupLYpJO3TQI4xKFbdC9sGrQCxSJjjN0ee9Ei2c61q2LZ Lz/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=n4nNYgouTn5uy7WMM+1M/pBoko1SdBrSA9D3M+6g0x0=; b=HbXKn532LdFSPTPhGl4TdBKSlhIsFTWcZgpAVaZKNZ5a4gHf+c2MVcYqCn3pVRFcLL O1W2cbW1cId9IuXXCdkFXt9+41vJTu/G9iyuBOQcoTgQY5Vbl9nwhyAP6MVBQ+uMlf3V uZyY6S34Qm/SUQZO4ZzBbsnFY2BVZYJ4dLwEZXEBUse/MCGZzvuCmBSBtGxykZtS8DjY aUD8M452CuD0VZUEBMKaq504Y0oxRWuPXt9D8qhFIBfMO9V4ccGR1jSR/7H0Rp8XCfA4 F1WH0Rknkf9vIIlEyDY2EwA1K2Pr2SMsEUGGfxcRx2EXjMfUkWQpMSckA8rKgDE2se+d C/bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=gd7LCgq1; 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 h7si16177734pgb.465.2019.11.16.19.50.21; Sat, 16 Nov 2019 19:50:21 -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=gd7LCgq1; 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 ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id A88097F9A2; Sun, 17 Nov 2019 03:50:18 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mail.openembedded.org (Postfix) with ESMTP id 6A90B7F96B for ; Sun, 17 Nov 2019 03:49:44 +0000 (UTC) Received: by mail-pj1-f52.google.com with SMTP id m71so538565pjb.12 for ; Sat, 16 Nov 2019 19:49:45 -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 :mime-version:content-transfer-encoding; bh=Q4YKu6yQ6u/skGhYXvXfHba+sV56bLxt3DCDtYQJzdU=; b=gd7LCgq1lRBx64w7KANkYPUhLuktgsNyJTMDeIX807q2ktHRmBD2Lo17JrRJCkNFI+ IDVPJ43qod6wF2m+uj6ZVgeTzQcncs2xXE4BAUJ4n55bLcowmaN93YDCvDoCUF6zDCJ/ 6XBArIQ6v+rpeZuISkCfbcKZ3CT5A6D8jShkyLLaAgruTNUjoHXOhBcYL0bZonI7nSA6 56H/j5ABfV4iVuM3AUVzfc3tJaqlK+1mX5bWe2BjP8e/LjeGwIlOrWK1B/AHAdasuNLe 9Cug1gWu0Ogj2RZm3aFCWeF8KBzVwOAycBsgtg6aC5gThzvnVZI5JofeRFS3rRrR+CqC iLDQ== 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:mime-version:content-transfer-encoding; bh=Q4YKu6yQ6u/skGhYXvXfHba+sV56bLxt3DCDtYQJzdU=; b=eqtmYlEkZ6iqTxfrt2QnSIGjzbWNSW/l1dR/tE1BPGgyFLz6QEkEG95rpkLIpB4qCS DudG1zpmq/n1Mfo3ZAySFqr5+6nYMY4ZjadxG2bcsrTEurEZoB+hICOcO5guRmQS0axI 19dP4M3BaMF2nbuIDrfGJqZn8qJ3QUiS8u7PPa4hNI5I2pogEq0AyIcxnfXm2xkD4bEv /wUfvAjMSi4ciN+B/O6zMzDydHLcT4GC5+Ol7yOdHGqLtmNlmFbpfsb6yRy2IjlEXpHE AxBMVVBSGgTYih9SUu5cCMtHTkTxSAWL4A7/iKBkehaR2mtfB2KoAwJ3Tlo8BXYkB9g2 Sfww== X-Gm-Message-State: APjAAAUxJqBwevJKVj1/omZ87+ME1Lu0LL33CXYzS3e8uxQjfz3WGHVK tkw1tMmmia7L8IhY85v+v4K5U90Qork= X-Received: by 2002:a17:902:8f94:: with SMTP id z20mr23166370plo.21.1573962584633; Sat, 16 Nov 2019 19:49:44 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:1c20::30e8]) by smtp.gmail.com with ESMTPSA id w15sm14881103pfn.13.2019.11.16.19.49.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Nov 2019 19:49:44 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sat, 16 Nov 2019 19:49:28 -0800 Message-Id: <20191117034929.3298760-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191117034929.3298760-1-raj.khem@gmail.com> References: <20191117034929.3298760-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 2/3] pidgin-sipe: Fix another case of struct incompatiblility due to 64bit time_t 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: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...sts-with-time_t-elements-to-8byte-bo.patch | 50 +++++++++++++++++++ .../pidgin/pidgin-sipe_1.25.0.bb | 1 + 2 files changed, 51 insertions(+) create mode 100644 meta-oe/recipes-support/pidgin/pidgin-sipe/0001-Align-structs-casts-with-time_t-elements-to-8byte-bo.patch -- 2.24.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-support/pidgin/pidgin-sipe/0001-Align-structs-casts-with-time_t-elements-to-8byte-bo.patch b/meta-oe/recipes-support/pidgin/pidgin-sipe/0001-Align-structs-casts-with-time_t-elements-to-8byte-bo.patch new file mode 100644 index 0000000000..87a6435f7e --- /dev/null +++ b/meta-oe/recipes-support/pidgin/pidgin-sipe/0001-Align-structs-casts-with-time_t-elements-to-8byte-bo.patch @@ -0,0 +1,50 @@ +From 1110d3036e73d0571f70f6758f3179e5048c0b5d Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 16 Nov 2019 11:07:42 -0800 +Subject: [PATCH] Align structs casts with time_t elements to 8byte boundary + +This helps with 64bit time_t conversion, especially where these +structures are typcasted to another struct types which have time_t +element, that now increases the natural alignment boundary of structures +to 8-bytes. + +Fixes +../../../pidgin-sipe-1.25.0/src/core/sipe-user.c:124:43: error: cast from 'struct sipe_core_public *' to 'struct sipe_core_private *' increases required alignment from 4 to 8 [-Werror,-Wcast-align] + struct sipe_core_private *sipe_private = SIPE_CORE_PRIVATE; + ^~~~~~~~~~~~~~~~~ +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/api/sipe-core.h | 2 +- + src/core/sipe-http-transport.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/api/sipe-core.h b/src/api/sipe-core.h +index cde0a9c..bd818bb 100644 +--- a/src/api/sipe-core.h ++++ b/src/api/sipe-core.h +@@ -148,7 +148,7 @@ struct sipe_core_public { + + /* server information */ + /* currently nothing */ +-}; ++} __attribute__((aligned(8))); + + /** + * Initialize & destroy functions for the SIPE core +diff --git a/src/core/sipe-http-transport.h b/src/core/sipe-http-transport.h +index d82cd1b..08eb150 100644 +--- a/src/core/sipe-http-transport.h ++++ b/src/core/sipe-http-transport.h +@@ -46,7 +46,7 @@ struct sipe_http_connection_public { + gchar *host; + guint32 port; + gboolean connected; +-}; ++} __attribute__((aligned(8))); + + /** + * Check if we're shutting down the HTTP stack +-- +2.24.0 + diff --git a/meta-oe/recipes-support/pidgin/pidgin-sipe_1.25.0.bb b/meta-oe/recipes-support/pidgin/pidgin-sipe_1.25.0.bb index 7dc63164e3..99fcf3c6d0 100644 --- a/meta-oe/recipes-support/pidgin/pidgin-sipe_1.25.0.bb +++ b/meta-oe/recipes-support/pidgin/pidgin-sipe_1.25.0.bb @@ -9,6 +9,7 @@ inherit autotools gettext pkgconfig SRC_URI = "${SOURCEFORGE_MIRROR}/sipe/pidgin-sipe-${PV}.tar.xz \ file://0001-sipe-consider-64bit-time_t-when-printing.patch \ + file://0001-Align-structs-casts-with-time_t-elements-to-8byte-bo.patch \ " SRC_URI[md5sum] = "0e742f021dc8c3f17435aea05c3e0314"