From patchwork Sat May 5 00:14:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 135042 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp658040lji; Fri, 4 May 2018 17:15:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp567Skp5HeLfWYe8c0rhBzNahoNHkCJvsN0GxM5fVRn4U2oqblpK4yIIK4NHYriBXQhVvL X-Received: by 2002:a63:6fce:: with SMTP id k197-v6mr23702505pgc.125.1525479321858; Fri, 04 May 2018 17:15:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525479321; cv=none; d=google.com; s=arc-20160816; b=LJmnH+m/XV9STomAXmBiaw/UqTEdZbH8MjJAnI4UfPj+/9sRIDkznT0Mw9HPzgdNwR VWOOgyd/Qf/20z4vF+yt7MyMjG7gw1/+0vlyUBB4ca98BQKzcsAvwDls41DAaIEyWbo0 Wz+PWCeolzrx81ZuqmKtaNe8RD2NG7sNjTpNtgGippJwVSbFSD/ZFwu9Sn6zAXwwcvwD BT4YAkg7TdvfctxPqzscVlrwRE9ITTQ9qrYY/TGKzolGOk/CfU0WfzIWeyhyrYyDnfYu 88HfQN2QR4iYzhklP2TY97mm5lSXeW2NIJaWPfPBexAwglLsLOhVeVIwsO9XRS8H97Kn HUhw== 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=KGATNvjwwl0h3GHQ0p3tDibeJcO5neR3Fo+AXSnPlA8=; b=nrVf8WbkGVOb7dhF94ccOyyt86xr36p78ZqwfHMurCEdTlzAgy9paDqrBzNVrx0XKZ M9OFAXo/R52ormfZxPFRCq303Awjl8V/wS9vFwaLkjPhXbtnMuUc+/TvmSQHiYPZ7n7X tIdFynD6lpj6e4Q9QsNAqisI/2Av+G4D7u+8Vs9OALJwDwl8o5TG0tqQidtUVE0gu6ay SixVgLK6KNXHrYtiH08WougQKSu0MDBPnz+0XOyKLS9O3Qbz9DH9gHoIqcSCNUbE4NA/ x8EgMTxkquJ7EMKJ6/a0Nx/zQ6Tg7lIT+cDS9r/KNRpHoETVllfRBZXOua2ZclTUVqat uK/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=o4SWxwcq; 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 z13si13142595pfg.140.2018.05.04.17.15.21; Fri, 04 May 2018 17:15:21 -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=o4SWxwcq; 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 568C274DE0; Sat, 5 May 2018 00:14:48 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by mail.openembedded.org (Postfix) with ESMTP id F239E74D59 for ; Sat, 5 May 2018 00:14:28 +0000 (UTC) Received: by mail-pg0-f65.google.com with SMTP id e1-v6so5105705pga.6 for ; Fri, 04 May 2018 17:14:30 -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=/QfBBneGn71npxKpBC8dFk7/MldPV31lAoDx1mt9gxQ=; b=o4SWxwcqCsspEX6fdhGwk9N3ooXOcN5EfxNaxaMh3n8BGt7ObxbXS9sTQR0I0Q26zn 8XgkxSWIMNsdS0aV4kePwppZDbGV8pDNdvwHmKlTGE1miHiIZRA5W57ZLCp53pO+AqbQ 0oyPxNxRM11ac86bpdHqxCfXN7UPVjOqu7v5uYFkNxr2bZnFI617MmyRu3DnRuL6k6e6 Q6tVy/xW3DR4z8YyyH2ykiS0CLLANGW0z5pHErnFwKrvnup++06gv89a+xfTTPaQNlnM Sbsnclu2NsUXOUipeFVcxRME8kfUj+0TfwSHlyjCIL6e08OXfzUreGQviGKZLHkStiEz JD4Q== 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=/QfBBneGn71npxKpBC8dFk7/MldPV31lAoDx1mt9gxQ=; b=iGNgYtIYDP7/rJpOzgJUHfnJJDWPey0Gp2h/95Jx6vZL5FiPEsM/l/igTXPgGsWADX FOeJKPMfFcPJuwj2p5BJnpdGjKD44h1ZpUrMJUJw+0CEcUxtvFKQf1R9H+gDNnvmoX8u pdA7G3YIPQa4okiGsb2/IUOPsLwozD5nonn5Gn4TUzsxzKXRdB7/1sMXTtNXlkip9ish xTZjEf1riyOrjNx3VRSLSPhC7e+yqnpNjqtORygmFwKl3DAnwoZYBConf1VN7uCCtvpP +hKbeLg3ZGE/jJ9fNsBhSWfzBAiy8NHvwnruR3aSWL/XOnNHdeiAjLloup6AghD7Cqd5 O00g== X-Gm-Message-State: ALQs6tALgJDV7NwLcs7AeegCOTlDnr7PRoQ9l6k7HtGH3pAFD5Iilgs3 L6AQBbwmHs7ubAV760o9Jz773Q== X-Received: by 10.167.131.134 with SMTP id u6mr11153918pfm.253.1525479269967; Fri, 04 May 2018 17:14:29 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::c68]) by smtp.gmail.com with ESMTPSA id o88sm36468559pfa.29.2018.05.04.17.14.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 May 2018 17:14:29 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 4 May 2018 17:14:00 -0700 Message-Id: X-Mailer: git-send-email 2.17.0 In-Reply-To: References: Subject: [OE-core] [PATCH 06/27] pbzip2: Fix C++11 warnings found with clang 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 Signed-off-by: Khem Raj --- ...valid-suffix-on-literal-C-11-warning.patch | 73 +++++++++++++++++++ meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb | 4 +- 2 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-extended/pbzip2/pbzip2/0001-pbzip2-Fix-invalid-suffix-on-literal-C-11-warning.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-extended/pbzip2/pbzip2/0001-pbzip2-Fix-invalid-suffix-on-literal-C-11-warning.patch b/meta/recipes-extended/pbzip2/pbzip2/0001-pbzip2-Fix-invalid-suffix-on-literal-C-11-warning.patch new file mode 100644 index 0000000000..8fc377c31b --- /dev/null +++ b/meta/recipes-extended/pbzip2/pbzip2/0001-pbzip2-Fix-invalid-suffix-on-literal-C-11-warning.patch @@ -0,0 +1,73 @@ +From de4a948d356c9befb88c796168e97eb05b9a3385 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 23 Apr 2018 22:54:42 -0700 +Subject: [PATCH] pbzip2: Fix invalid suffix on literal C++11 warning + +Fixes -Wreserved-user-defined-literal] errors. +Also reported in launchpad here https://bugs.launchpad.net/pbzip2/+bug/1746369 + +Upstream-Status: Submitted [https://launchpadlibrarian.net/355230152/pbzip2.patch] + +Signed-off-by: Khem Raj +--- + pbzip2.cpp | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/pbzip2.cpp b/pbzip2.cpp +index 66ca978..4287ea7 100644 +--- a/pbzip2.cpp ++++ b/pbzip2.cpp +@@ -1220,7 +1220,7 @@ int producer_decompress(int hInfile, OFF_T fileSize, queue *fifo) + // give warning to user if block is larger than 250 million bytes + if (fileData->bufSize > 250000000) + { +- fprintf(stderr, "pbzip2: *WARNING: Compressed block size is large [%"PRIuMAX" bytes].\n", ++ fprintf(stderr, "pbzip2: *WARNING: Compressed block size is large [%" PRIuMAX " bytes].\n", + (uintmax_t) fileData->bufSize); + fprintf(stderr, " If program aborts, use regular BZIP2 to decompress.\n"); + } +@@ -1829,7 +1829,7 @@ void *fileWriter(void *outname) + + if (QuietMode != 1) + { +- fprintf(stderr, " Output Size: %"PRIuMAX" bytes\n", (uintmax_t)CompressedSize); ++ fprintf(stderr, " Output Size: %" PRIuMAX " bytes\n", (uintmax_t)CompressedSize); + } + + #ifdef PBZIP_DEBUG +@@ -2072,7 +2072,7 @@ int directcompress(int hInfile, OFF_T fileSize, int blockSize, const char *OutFi + close(hOutfile); + if (QuietMode != 1) + { +- fprintf(stderr, " Output Size: %"PRIuMAX" bytes\n", (uintmax_t)CompressedSize); ++ fprintf(stderr, " Output Size: %" PRIuMAX " bytes\n", (uintmax_t)CompressedSize); + } + + syncSetProducerDone(1); // Not really needed for direct version +@@ -2794,7 +2794,7 @@ void outputBufferInit(size_t size) + // unlikely to get here since more likely exception will be thrown + if (OutputBuffer.size() != size) + { +- fprintf(stderr, "pbzip2: *ERROR: Could not initialize (OutputBuffer); size=%"PRIuMAX"! Aborting...\n", (uintmax_t)size); ++ fprintf(stderr, "pbzip2: *ERROR: Could not initialize (OutputBuffer); size=%" PRIuMAX "! Aborting...\n", (uintmax_t)size); + safe_mutex_unlock(OutMutex); + exit(1); + } +@@ -4102,7 +4102,7 @@ int main(int argc, char* argv[]) + if (decompress == 1) + fprintf(stderr, " BWT Block Size: %c00k\n", BWTblockSizeChar); + if (hasInFile) +- fprintf(stderr, " Input Size: %"PRIuMAX" bytes\n", (uintmax_t)InFileSize); ++ fprintf(stderr, " Input Size: %" PRIuMAX " bytes\n", (uintmax_t)InFileSize); + } + + if (decompress == 1) +@@ -4224,7 +4224,7 @@ int main(int argc, char* argv[]) + { + NumBufferedBlocksMax = numCPU; + if (QuietMode != 1) +- fprintf(stderr, "*Warning* Max memory limit increased to %"PRIuMAX" MB to support %d CPUs\n", (uintmax_t)((NumBufferedBlocksMax + (numCPU * 2)) * blockSize)/1000000, numCPU); ++ fprintf(stderr, "*Warning* Max memory limit increased to %" PRIuMAX " MB to support %d CPUs\n", (uintmax_t)((NumBufferedBlocksMax + (numCPU * 2)) * blockSize)/1000000, numCPU); + } + else + { diff --git a/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb b/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb index 06d37adc36..4e96de2ed3 100644 --- a/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb +++ b/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb @@ -11,7 +11,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=398b8832c6f840cfebd20ab2be6a3743" DEPENDS = "bzip2" DEPENDS_append_class-native = " bzip2-replacement-native" -SRC_URI = "https://launchpad.net/${BPN}/1.1/${PV}/+download/${BP}.tar.gz" +SRC_URI = "https://launchpad.net/${BPN}/1.1/${PV}/+download/${BP}.tar.gz \ + file://0001-pbzip2-Fix-invalid-suffix-on-literal-C-11-warning.patch \ + " SRC_URI[md5sum] = "4cb87da2dba05540afce162f34b3a9a6" SRC_URI[sha256sum] = "8fd13eaaa266f7ee91f85c1ea97c86d9c9cc985969db9059cdebcb1e1b7bdbe6"