From patchwork Fri May 11 06:52:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 135508 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp499536lji; Thu, 10 May 2018 23:53:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZplbr6bT9ecb+wVR2yzviPxGOuZFvEtAEQxyA9MhvEOVKZ1G68IDNw5vYMRgeZu69p+52KP X-Received: by 2002:aa7:8084:: with SMTP id v4-v6mr4266884pff.105.1526021580114; Thu, 10 May 2018 23:53:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526021580; cv=none; d=google.com; s=arc-20160816; b=kwUjcUH8KB0+akHz1SU2rNRquO2wXb/GwXNjAltNFfJuGge3t3xfOWmHJhr73nV/Qq AMAjUH3/UIzFsK5Q4L3+zOk6oZxIQyZZmscpyXborWA+Fyj20VRoWXQKpILBQNBVnrdi GOaS6nyNv4gf3PbB93jpbMayJ073Ls1/sC+OwGJxLnT/ZzF9vzHLWc/dckmS2PG/uMM7 b7fLQoq3i6jO3Aof8cowG9lVr+Buh8GtqW7R9unPfEbdGpwPtT2k515/yKT1yTKZlDX/ Cb9F8SkixmrMJy4VS0UqVCDX6uC+KV4TphnB6S9Fae1Au/LxOnIcZVZuygBkVPWh6R01 0QmA== 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=/aE+wQgIbkH3+lGGX1zweC0Ebf2tKfjXvMr8VGQ+LfE=; b=ze6ZOyYG6isj8CFL/+Ld2QaTf4yl904rhs3TZMjcEF4VniUY7vgzhAtAPdSufpnitI LFzCb0sgr4DhM0Xgb+s6qYbWN9/vjghajzOEPgl34Cpg4oygvzH7k+PQqDJ9HQMNfMOy rqifgP+1ZHRGITvtfMY63TiEZBUbQDwwstd+TjzgXMAg9vI4VgPxsbN+CaBL7A4ar4w4 QNomVxDHgItz6lwjWrisgR1d0JPFGZDxh90hU5vfrWssYPCeNU/ONB5mGMsJnzP/+fKb kZRwX9mFJhGOcVNYYW8zwygzoPbpX6PMJusvxN8cfJxO3HcS/QQFed0iJxE0RwO358R2 s9Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=BUR/NPpG; 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=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 f35-v6si2522199plh.193.2018.05.10.23.52.59; Thu, 10 May 2018 23:53:00 -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=BUR/NPpG; 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=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 81273754D2; Fri, 11 May 2018 06:52:56 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pl0-f65.google.com (mail-pl0-f65.google.com [209.85.160.65]) by mail.openembedded.org (Postfix) with ESMTP id 5A5B97547D for ; Fri, 11 May 2018 06:52:52 +0000 (UTC) Received: by mail-pl0-f65.google.com with SMTP id bi12-v6so2740977plb.12 for ; Thu, 10 May 2018 23:52:53 -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=uuyzbLwsN82jPmrAR0LydpV9/V9/1dcWDzfhEF1LU1M=; b=BUR/NPpGl6dbje9EEjvE9lQU61e63PU5cRmw6pE98l6JF18CTDVuIDaFu3QpF/HH8o 4zKO79yXaNGG3ZsgV0gTFEvtc9T3NGKgOMtk1GyB8Kyo8fjiqSYRej7DPJK4x8pbWmQi KH07Y0Yx179rik993kndcnylQh7Wye7uab2n+IX3NAB0zVq7T/TFFv6klGZpAdryG7Jm 5WRG0ibZ3/DsenLM6BFVBXIK/eixa4LA2XYZTHtBFp1wzItSYepZuwbzDLu/nOuUcceG TfQjbgGQxyPjTFxd8Gcf0kfKjGryj0ipS3MVaI+IG+ZSZEQ+CxyayAaKrt8JdRm9tzzx xQbw== 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=uuyzbLwsN82jPmrAR0LydpV9/V9/1dcWDzfhEF1LU1M=; b=CP8Qp+RnI5hoTHxxeH1PEpkI3JLQKV1BWRNb6wwWcykuEqliZg8IJRSdII8w9c1wDG Xf1IqBLljjWLLVQ8DuXX34Tttq4LE6sO/9d7KEr2yNDSxna0avyZ3y1AjKoWZpAzQdJI 0rO23xQI4E3fAuynq3tduOnWGQW1Jvh5LF7EhxyFBCP8PTkDji/4Kh3ncRSP3uNE53KI 4o/xO/LfKqp8XCFc2xHZ0f5njOFBw8BryAxARlBOAhMbLq6RQ/39L04O89b8S7NaUWX8 HK/5WiPz3fds74goPurO6nNjW/IjoDHnzh/YrvsUDMN6xyxWk4fzKMXhjrDX04+EGfi2 3Pjg== X-Gm-Message-State: ALKqPwctI8yvJkW1MgbKX8apFz7onTEs0baMSdwh8aLGjHKhRD/tTRgc 80I5tAFn7reTSiQbk5OG7YDurQ== X-Received: by 2002:a17:902:28a7:: with SMTP id f36-v6mr3489985plb.155.1526021573199; Thu, 10 May 2018 23:52:53 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::c68]) by smtp.gmail.com with ESMTPSA id q126-v6sm4583116pga.79.2018.05.10.23.52.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 May 2018 23:52:52 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Thu, 10 May 2018 23:52:48 -0700 Message-Id: <20180511065249.40069-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180511065249.40069-1-raj.khem@gmail.com> References: <20180511065249.40069-1-raj.khem@gmail.com> Subject: [OE-core] [PATCH 2/3] libxcrypt: Fix build with gcc8 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 Reported-by: Martin Jansa Signed-off-by: Khem Raj --- ...format-truncation-warning-with-gcc-8.patch | 36 +++++++++++++++++++ .../recipes-core/libxcrypt/libxcrypt_4.0.0.bb | 4 ++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-core/libxcrypt/libxcrypt/0001-disable-format-truncation-warning-with-gcc-8.patch -- 2.17.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-core/libxcrypt/libxcrypt/0001-disable-format-truncation-warning-with-gcc-8.patch b/meta/recipes-core/libxcrypt/libxcrypt/0001-disable-format-truncation-warning-with-gcc-8.patch new file mode 100644 index 0000000000..654eae6c6a --- /dev/null +++ b/meta/recipes-core/libxcrypt/libxcrypt/0001-disable-format-truncation-warning-with-gcc-8.patch @@ -0,0 +1,36 @@ +From c8c5908611e44a649489e8d217528fedc4864e14 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 10 May 2018 13:32:20 -0700 +Subject: [PATCH] disable format-truncation warning with gcc-8 + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + crypt-sunmd5.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/crypt-sunmd5.c b/crypt-sunmd5.c +index 4c85b7f..3e838cd 100644 +--- a/crypt-sunmd5.c ++++ b/crypt-sunmd5.c +@@ -151,6 +151,11 @@ getrounds (const char *s) + return ((uint32_t)val); + } + ++#pragma GCC diagnostic push ++#if defined(__GNUC__) && (__GNUC__ >= 8) ++#pragma GCC diagnostic ignored "-Wformat-truncation" ++#endif ++ + void + gensalt_sunmd5_rn (unsigned long count, + const uint8_t *rbytes, size_t nrbytes, +@@ -189,6 +194,7 @@ gensalt_sunmd5_rn (unsigned long count, + "$" CRYPT_ALGNAME "," ROUNDS "%u$%s$", + (unsigned int)count, rndstr); + } ++#pragma GCC diagnostic pop + + void + crypt_sunmd5_rn (const char *phrase, const char *setting, diff --git a/meta/recipes-core/libxcrypt/libxcrypt_4.0.0.bb b/meta/recipes-core/libxcrypt/libxcrypt_4.0.0.bb index a1be4be7ef..8cc5edac49 100644 --- a/meta/recipes-core/libxcrypt/libxcrypt_4.0.0.bb +++ b/meta/recipes-core/libxcrypt/libxcrypt_4.0.0.bb @@ -12,7 +12,9 @@ inherit autotools SRCREV ?= "215b32aa4e0b255c3356a96bd6d257661bad73ca" SRCBRANCH ?= "master" -SRC_URI = "git://github.com/besser82/libxcrypt.git;branch=${SRCBRANCH}" +SRC_URI = "git://github.com/besser82/libxcrypt.git;branch=${SRCBRANCH} \ + file://0001-disable-format-truncation-warning-with-gcc-8.patch \ + " PROVIDES = "virtual/crypt"