summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-04-23 22:58:07 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-05-15 10:56:49 +0100
commitd3081fc0a237c10478ff95709fab03590811dd81 (patch)
tree0e4c65a69267dfb83827a9067c7bb5f8fd8643bb /meta
parent20b0c638bac24a749ad7f87057a51e643cc7e5ec (diff)
downloadpoky-d3081fc0a237c10478ff95709fab03590811dd81.tar.gz
pbzip2: Fix C++11 warnings found with clang
(From OE-Core rev: ccc7a422b7b43f68a10ee6ec9aea7e6074a69630) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/pbzip2/pbzip2/0001-pbzip2-Fix-invalid-suffix-on-literal-C-11-warning.patch73
-rw-r--r--meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb4
2 files changed, 76 insertions, 1 deletions
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 @@
1From de4a948d356c9befb88c796168e97eb05b9a3385 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 23 Apr 2018 22:54:42 -0700
4Subject: [PATCH] pbzip2: Fix invalid suffix on literal C++11 warning
5
6Fixes -Wreserved-user-defined-literal] errors.
7Also reported in launchpad here https://bugs.launchpad.net/pbzip2/+bug/1746369
8
9Upstream-Status: Submitted [https://launchpadlibrarian.net/355230152/pbzip2.patch]
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 pbzip2.cpp | 12 ++++++------
14 1 file changed, 6 insertions(+), 6 deletions(-)
15
16diff --git a/pbzip2.cpp b/pbzip2.cpp
17index 66ca978..4287ea7 100644
18--- a/pbzip2.cpp
19+++ b/pbzip2.cpp
20@@ -1220,7 +1220,7 @@ int producer_decompress(int hInfile, OFF_T fileSize, queue *fifo)
21 // give warning to user if block is larger than 250 million bytes
22 if (fileData->bufSize > 250000000)
23 {
24- fprintf(stderr, "pbzip2: *WARNING: Compressed block size is large [%"PRIuMAX" bytes].\n",
25+ fprintf(stderr, "pbzip2: *WARNING: Compressed block size is large [%" PRIuMAX " bytes].\n",
26 (uintmax_t) fileData->bufSize);
27 fprintf(stderr, " If program aborts, use regular BZIP2 to decompress.\n");
28 }
29@@ -1829,7 +1829,7 @@ void *fileWriter(void *outname)
30
31 if (QuietMode != 1)
32 {
33- fprintf(stderr, " Output Size: %"PRIuMAX" bytes\n", (uintmax_t)CompressedSize);
34+ fprintf(stderr, " Output Size: %" PRIuMAX " bytes\n", (uintmax_t)CompressedSize);
35 }
36
37 #ifdef PBZIP_DEBUG
38@@ -2072,7 +2072,7 @@ int directcompress(int hInfile, OFF_T fileSize, int blockSize, const char *OutFi
39 close(hOutfile);
40 if (QuietMode != 1)
41 {
42- fprintf(stderr, " Output Size: %"PRIuMAX" bytes\n", (uintmax_t)CompressedSize);
43+ fprintf(stderr, " Output Size: %" PRIuMAX " bytes\n", (uintmax_t)CompressedSize);
44 }
45
46 syncSetProducerDone(1); // Not really needed for direct version
47@@ -2794,7 +2794,7 @@ void outputBufferInit(size_t size)
48 // unlikely to get here since more likely exception will be thrown
49 if (OutputBuffer.size() != size)
50 {
51- fprintf(stderr, "pbzip2: *ERROR: Could not initialize (OutputBuffer); size=%"PRIuMAX"! Aborting...\n", (uintmax_t)size);
52+ fprintf(stderr, "pbzip2: *ERROR: Could not initialize (OutputBuffer); size=%" PRIuMAX "! Aborting...\n", (uintmax_t)size);
53 safe_mutex_unlock(OutMutex);
54 exit(1);
55 }
56@@ -4102,7 +4102,7 @@ int main(int argc, char* argv[])
57 if (decompress == 1)
58 fprintf(stderr, " BWT Block Size: %c00k\n", BWTblockSizeChar);
59 if (hasInFile)
60- fprintf(stderr, " Input Size: %"PRIuMAX" bytes\n", (uintmax_t)InFileSize);
61+ fprintf(stderr, " Input Size: %" PRIuMAX " bytes\n", (uintmax_t)InFileSize);
62 }
63
64 if (decompress == 1)
65@@ -4224,7 +4224,7 @@ int main(int argc, char* argv[])
66 {
67 NumBufferedBlocksMax = numCPU;
68 if (QuietMode != 1)
69- fprintf(stderr, "*Warning* Max memory limit increased to %"PRIuMAX" MB to support %d CPUs\n", (uintmax_t)((NumBufferedBlocksMax + (numCPU * 2)) * blockSize)/1000000, numCPU);
70+ fprintf(stderr, "*Warning* Max memory limit increased to %" PRIuMAX " MB to support %d CPUs\n", (uintmax_t)((NumBufferedBlocksMax + (numCPU * 2)) * blockSize)/1000000, numCPU);
71 }
72 else
73 {
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"
11DEPENDS = "bzip2" 11DEPENDS = "bzip2"
12DEPENDS_append_class-native = " bzip2-replacement-native" 12DEPENDS_append_class-native = " bzip2-replacement-native"
13 13
14SRC_URI = "https://launchpad.net/${BPN}/1.1/${PV}/+download/${BP}.tar.gz" 14SRC_URI = "https://launchpad.net/${BPN}/1.1/${PV}/+download/${BP}.tar.gz \
15 file://0001-pbzip2-Fix-invalid-suffix-on-literal-C-11-warning.patch \
16 "
15 17
16SRC_URI[md5sum] = "4cb87da2dba05540afce162f34b3a9a6" 18SRC_URI[md5sum] = "4cb87da2dba05540afce162f34b3a9a6"
17SRC_URI[sha256sum] = "8fd13eaaa266f7ee91f85c1ea97c86d9c9cc985969db9059cdebcb1e1b7bdbe6" 19SRC_URI[sha256sum] = "8fd13eaaa266f7ee91f85c1ea97c86d9c9cc985969db9059cdebcb1e1b7bdbe6"