summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2019-12-12 19:14:19 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-16 23:25:49 +0000
commit03b8eb9fe1fc118efd5d64d79933341d22fb3437 (patch)
treeb6daa2e0bf4e169555c98018f4fb7781bb10835b /meta/recipes-sato
parent2bb1f5362ba675e0b07b2bae2ce0c0b8ba6ed5d9 (diff)
downloadpoky-03b8eb9fe1fc118efd5d64d79933341d22fb3437.tar.gz
puzzles: update to latest revision
Remove 0001-Use-labs-instead-of-abs.patch as problem is fixed upstream. (From OE-Core rev: 6ecc17f83d57d08bbeb6366cb586993a8844c8a6) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-sato')
-rw-r--r--meta/recipes-sato/puzzles/files/0001-Use-labs-instead-of-abs.patch46
-rw-r--r--meta/recipes-sato/puzzles/files/0001-palisade-Fix-warnings-with-clang-on-arm.patch24
-rw-r--r--meta/recipes-sato/puzzles/files/0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch23
-rw-r--r--meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch23
-rw-r--r--meta/recipes-sato/puzzles/puzzles_git.bb3
5 files changed, 35 insertions, 84 deletions
diff --git a/meta/recipes-sato/puzzles/files/0001-Use-labs-instead-of-abs.patch b/meta/recipes-sato/puzzles/files/0001-Use-labs-instead-of-abs.patch
deleted file mode 100644
index f43d1df6cc..0000000000
--- a/meta/recipes-sato/puzzles/files/0001-Use-labs-instead-of-abs.patch
+++ /dev/null
@@ -1,46 +0,0 @@
1From 9808dc09e08937c9bffd858d3ded428225a4312a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 7 Sep 2015 09:02:38 +0000
4Subject: [PATCH] Use labs instead of abs
5
6cluevals is array of longs so we have to use labs() instead of abs()
7since abs() returns int
8
9Fixes
10
11keen.c:1458:17: error: absolute value function 'abs' given an argument
12of type 'long' but has parameter of type 'int' which may cause
13truncation of value
14
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17Upstream-Status: Pending
18
19 keen.c | 4 ++--
20 1 file changed, 2 insertions(+), 2 deletions(-)
21
22diff --git a/keen.c b/keen.c
23index a6a7238..1631992 100644
24--- a/keen.c
25+++ b/keen.c
26@@ -1043,7 +1043,7 @@ done
27 cluevals[j] *= grid[i];
28 break;
29 case C_SUB:
30- cluevals[j] = abs(cluevals[j] - grid[i]);
31+ cluevals[j] = labs(cluevals[j] - grid[i]);
32 break;
33 case C_DIV:
34 {
35@@ -1455,7 +1455,7 @@ static int check_errors(const game_state *state, long *errors)
36 cluevals[j] *= state->grid[i];
37 break;
38 case C_SUB:
39- cluevals[j] = abs(cluevals[j] - state->grid[i]);
40+ cluevals[j] = labs(cluevals[j] - state->grid[i]);
41 break;
42 case C_DIV:
43 {
44--
452.5.1
46
diff --git a/meta/recipes-sato/puzzles/files/0001-palisade-Fix-warnings-with-clang-on-arm.patch b/meta/recipes-sato/puzzles/files/0001-palisade-Fix-warnings-with-clang-on-arm.patch
index 5351f8eb4e..143e898a51 100644
--- a/meta/recipes-sato/puzzles/files/0001-palisade-Fix-warnings-with-clang-on-arm.patch
+++ b/meta/recipes-sato/puzzles/files/0001-palisade-Fix-warnings-with-clang-on-arm.patch
@@ -1,7 +1,7 @@
1From 6d8326275802a2e6e61d3e99460af6891ae8362f Mon Sep 17 00:00:00 2001 1From 453587d714473b806473b309727f865b673cbc06 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 13 Jan 2016 23:10:19 -0800 3Date: Wed, 13 Jan 2016 23:10:19 -0800
4Subject: [puzzles][PATCH] palisade: Fix warnings with clang on arm 4Subject: [PATCH] palisade: Fix warnings with clang on arm
5 5
6ARM treats 'char' as unsigned char when 'char' is not qualified with 6ARM treats 'char' as unsigned char when 'char' is not qualified with
7'signed' or 'unsigned' explicitly. 7'signed' or 'unsigned' explicitly.
@@ -16,17 +16,16 @@ type 'clue' (aka 'char') is always false
16Therefore, typcast the contant to char in such places to be explicit 16Therefore, typcast the contant to char in such places to be explicit
17 17
18Signed-off-by: Khem Raj <raj.khem@gmail.com> 18Signed-off-by: Khem Raj <raj.khem@gmail.com>
19---
20Upstream-Status: Submitted 19Upstream-Status: Submitted
21 20---
22 palisade.c | 10 +++++----- 21 palisade.c | 10 +++++-----
23 1 file changed, 5 insertions(+), 5 deletions(-) 22 1 file changed, 5 insertions(+), 5 deletions(-)
24 23
25diff --git a/palisade.c b/palisade.c 24diff --git a/palisade.c b/palisade.c
26index 984e616..2b9c25c 100644 25index 6ffbf2d..8b54d42 100644
27--- a/palisade.c 26--- a/palisade.c
28+++ b/palisade.c 27+++ b/palisade.c
29@@ -295,11 +295,11 @@ static void solver_connected_clues_versus_region_size(solver_ctx *ctx) 28@@ -304,11 +304,11 @@ static void solver_connected_clues_versus_region_size(solver_ctx *ctx)
30 * If p = q = 3 then the region has size exactly 2. */ 29 * If p = q = 3 then the region has size exactly 2. */
31 30
32 for (i = 0; i < wh; ++i) { 31 for (i = 0; i < wh; ++i) {
@@ -40,8 +39,8 @@ index 984e616..2b9c25c 100644
40 if ((8 - ctx->clues[i] - ctx->clues[j] > ctx->params->k) || 39 if ((8 - ctx->clues[i] - ctx->clues[j] > ctx->params->k) ||
41 (ctx->clues[i] == 3 && ctx->clues[j] == 3 && 40 (ctx->clues[i] == 3 && ctx->clues[j] == 3 &&
42 ctx->params->k != 2)) 41 ctx->params->k != 2))
43@@ -317,7 +317,7 @@ static int solver_number_exhausted(solver_ctx *ctx) 42@@ -326,7 +326,7 @@ static bool solver_number_exhausted(solver_ctx *ctx)
44 int changed = FALSE; 43 bool changed = false;
45 44
46 for (i = 0; i < wh; ++i) { 45 for (i = 0; i < wh; ++i) {
47- if (ctx->clues[i] == EMPTY) continue; 46- if (ctx->clues[i] == EMPTY) continue;
@@ -49,16 +48,16 @@ index 984e616..2b9c25c 100644
49 48
50 if (bitcount[(ctx->borders[i] & BORDER_MASK)] == ctx->clues[i]) { 49 if (bitcount[(ctx->borders[i] & BORDER_MASK)] == ctx->clues[i]) {
51 for (dir = 0; dir < 4; ++dir) { 50 for (dir = 0; dir < 4; ++dir) {
52@@ -528,7 +528,7 @@ static int is_solved(const game_params *params, clue *clues, 51@@ -538,7 +538,7 @@ static bool is_solved(const game_params *params, clue *clues,
53 for (i = 0; i < wh; ++i) { 52 for (i = 0; i < wh; ++i) {
54 if (dsf[i] == UNVISITED) dfs_dsf(i, params->w, border, dsf, TRUE); 53 if (dsf[i] == UNVISITED) dfs_dsf(i, params->w, border, dsf, true);
55 if (dsf_size(dsf, i) != k) goto error; 54 if (dsf_size(dsf, i) != k) goto error;
56- if (clues[i] == EMPTY) continue; 55- if (clues[i] == EMPTY) continue;
57+ if (clues[i] == (char)EMPTY) continue; 56+ if (clues[i] == (char)EMPTY) continue;
58 if (clues[i] != bitcount[border[i] & BORDER_MASK]) goto error; 57 if (clues[i] != bitcount[border[i] & BORDER_MASK]) goto error;
59 } 58 }
60 59
61@@ -674,7 +674,7 @@ static char *new_game_desc(const game_params *params, random_state *rs, 60@@ -685,7 +685,7 @@ static char *new_game_desc(const game_params *params, random_state *rs,
62 p = numbers; 61 p = numbers;
63 r = 0; 62 r = 0;
64 for (i = 0; i < wh; ++i) { 63 for (i = 0; i < wh; ++i) {
@@ -67,6 +66,3 @@ index 984e616..2b9c25c 100644
67 while (r) { 66 while (r) {
68 while (r > 26) { 67 while (r > 26) {
69 *p++ = 'z'; 68 *p++ = 'z';
70--
712.7.0
72
diff --git a/meta/recipes-sato/puzzles/files/0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch b/meta/recipes-sato/puzzles/files/0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch
index 9ac62015d8..7ca582fe5d 100644
--- a/meta/recipes-sato/puzzles/files/0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch
+++ b/meta/recipes-sato/puzzles/files/0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch
@@ -1,4 +1,4 @@
1From 035467aa0abfbc0de7e5d24543d4aab37301593c Mon Sep 17 00:00:00 2001 1From 3af5a1e579e3324a13ba1f892c7befb3ab32d899 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 7 Mar 2019 21:56:57 -0800 3Date: Thu, 7 Mar 2019 21:56:57 -0800
4Subject: [PATCH] pattern.c: Change string lenght parameter to be size_t in 4Subject: [PATCH] pattern.c: Change string lenght parameter to be size_t in
@@ -11,23 +11,24 @@ pattern.c:455:9: error: 'memset' specified size between 18446744071562067968 and
11Upstream-Status: Pending 11Upstream-Status: Pending
12 12
13Signed-off-by: Khem Raj <raj.khem@gmail.com> 13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14
14--- 15---
15 pattern.c | 2 +- 16 pattern.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-) 17 1 file changed, 1 insertion(+), 1 deletion(-)
17 18
18diff --git a/pattern.c b/pattern.c 19diff --git a/pattern.c b/pattern.c
19index 45b1b0c..f73a4c2 100644 20index ffadd3f..4e5f187 100644
20--- a/pattern.c 21--- a/pattern.c
21+++ b/pattern.c 22+++ b/pattern.c
22@@ -428,7 +428,7 @@ static int do_row(unsigned char *known, unsigned char *deduced, 23@@ -428,7 +428,7 @@ static bool do_row(unsigned char *known, unsigned char *deduced,
23 unsigned char *row, 24 unsigned char *row,
24 unsigned char *minpos_done, unsigned char *maxpos_done, 25 unsigned char *minpos_done, unsigned char *maxpos_done,
25 unsigned char *minpos_ok, unsigned char *maxpos_ok, 26 unsigned char *minpos_ok, unsigned char *maxpos_ok,
26- unsigned char *start, int len, int step, int *data, 27- unsigned char *start, int len, int step, int *data,
27+ unsigned char *start, size_t len, int step, int *data, 28+ unsigned char *start, size_t len, int step, int *data,
28 unsigned int *changed 29 unsigned int *changed
29 #ifdef STANDALONE_SOLVER 30 #ifdef STANDALONE_SOLVER
30 , const char *rowcol, int index, int cluewid 31 , const char *rowcol, int index, int cluewid
31-- 32--
322.21.0 332.17.1
33 34
diff --git a/meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch b/meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch
index c134acde2f..28040523d4 100644
--- a/meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch
+++ b/meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch
@@ -1,4 +1,7 @@
1gtk.c: fix compiling failure with option -g -O 1From 876c6ff1e20f51b0921acda99861f476b6423f26 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Mon, 11 Aug 2014 12:39:53 +0800
4Subject: [PATCH] gtk.c: fix compiling failure with option -g -O
2 5
3There were compiling failure with option -g -O 6There were compiling failure with option -g -O
4... 7...
@@ -21,23 +24,21 @@ Initialized pointer 'cr' and 'error' with NULL
21Upstream-Status: Pending 24Upstream-Status: Pending
22 25
23Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 26Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
27
24--- 28---
25 gtk.c | 4 ++-- 29 gtk.c | 2 +-
26 1 file changed, 2 insertions(+), 2 deletions(-) 30 1 file changed, 1 insertion(+), 1 deletion(-)
27 31
28diff --git a/gtk.c b/gtk.c 32diff --git a/gtk.c b/gtk.c
29index a2eba2c..c54bf63 100644 33index 4565836..5e83b48 100644
30--- a/gtk.c 34--- a/gtk.c
31+++ b/gtk.c 35+++ b/gtk.c
32@@ -2481,7 +2481,7 @@ char *fgetline(FILE *fp) 36@@ -2944,7 +2944,7 @@ static void list_presets_from_menu(struct preset_menu *menu)
33 int main(int argc, char **argv) 37 int main(int argc, char **argv)
34 { 38 {
35 char *pname = argv[0]; 39 char *pname = argv[0];
36- char *error; 40- char *error;
37+ char *error = NULL; 41+ char *error = NULL;
38 int ngenerate = 0, print = FALSE, px = 1, py = 1; 42 int ngenerate = 0, px = 1, py = 1;
39 int time_generation = FALSE, test_solve = FALSE, list_presets = FALSE; 43 bool print = false;
40 int soln = FALSE, colour = FALSE; 44 bool time_generation = false, test_solve = false, list_presets = false;
41--
421.9.1
43
diff --git a/meta/recipes-sato/puzzles/puzzles_git.bb b/meta/recipes-sato/puzzles/puzzles_git.bb
index 5ee9164b85..57f2af48eb 100644
--- a/meta/recipes-sato/puzzles/puzzles_git.bb
+++ b/meta/recipes-sato/puzzles/puzzles_git.bb
@@ -10,7 +10,6 @@ REQUIRED_DISTRO_FEATURES = "x11"
10 10
11SRC_URI = "git://git.tartarus.org/simon/puzzles.git \ 11SRC_URI = "git://git.tartarus.org/simon/puzzles.git \
12 file://fix-compiling-failure-with-option-g-O.patch \ 12 file://fix-compiling-failure-with-option-g-O.patch \
13 file://0001-Use-labs-instead-of-abs.patch \
14 file://0001-palisade-Fix-warnings-with-clang-on-arm.patch \ 13 file://0001-palisade-Fix-warnings-with-clang-on-arm.patch \
15 file://0001-Use-Wno-error-format-overflow-if-the-compiler-suppor.patch \ 14 file://0001-Use-Wno-error-format-overflow-if-the-compiler-suppor.patch \
16 file://0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch \ 15 file://0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch \
@@ -18,7 +17,7 @@ SRC_URI = "git://git.tartarus.org/simon/puzzles.git \
18 " 17 "
19 18
20UPSTREAM_CHECK_COMMITS = "1" 19UPSTREAM_CHECK_COMMITS = "1"
21SRCREV = "c6e0161dd475415316ed66dc82794d68e52f0025" 20SRCREV = "1c0c49dd5cd8df6ae87f7be5371be84589fa2662"
22PE = "2" 21PE = "2"
23PV = "0.0+git${SRCPV}" 22PV = "0.0+git${SRCPV}"
24 23