puzzles: Upgrade to latest git with patches merged
PATCH 1/1 puzzles: Upgrade to latest git with patches merged
This upgrades to the latest upstream version where several of our fixes have equivalent fixes merged upstream. The remaining patch should be fixed soon to.
Signed-off-by Richard Purdie <[email protected]>
--- ...Check-for-excessive-values-to-malloc.patch | 45 ------------ ...01-map-Fix-stringop-overflow-warning.patch | 34 --------- ...isade-Fix-warnings-with-clang-on-arm.patch | 72 ------------------- ...ix-compiling-failure-with-option-g-O.patch | 33 --------- .../puzzles/files/fix-ki-uninitialized.patch | 32 --------- meta/recipes-sato/puzzles/puzzles_git.bb | 7 +- 6 files changed, 1 insertion(+), 222 deletions(-) delete mode 100644 meta/recipes-sato/puzzles/files/0001-malloc-Check-for-excessive-values-to-malloc.patch delete mode 100644 meta/recipes-sato/puzzles/files/0001-map-Fix-stringop-overflow-warning.patch delete mode 100644 meta/recipes-sato/puzzles/files/0001-palisade-Fix-warnings-with-clang-on-arm.patch delete mode 100644 meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch delete mode 100644 meta/recipes-sato/puzzles/files/fix-ki-uninitialized.patch
meta/recipes-sato/puzzles/files/0001-malloc-Check-for-excessive-values-to-malloc.patch deleted +0 -45
@@ -1,45 +0,0 @@ -tree234: Avoid excessive values to malloc - -with whole program optimizers like lto, smalloc() is inlined the excessive -constant argument is propagated to malloc() and ultimately triggers the warning. - -| tmp/work/core2-64-poky-linux/puzzles/2_0.0+gitAUTOINC+640f9235c7-r0/git/tree234.c: In function 'disptree': -| tmp/work/core2-64-poky-linux/puzzles/2_0.0+gitAUTOINC+640f9235c7-r0/git/tree234.c:46:17: error: argument 1 value '18446744073709551612' exceeds maximum object size 9223372036854775807 [-Werror=alloc-size-larger-than=] -| 46 | #define smalloc malloc -| | ^ -| tmp/work/core2-64-poky-linux/puzzles/2_0.0+gitAUTOINC+640f9235c7-r0/git/tree234.c:1631:17: note: in expansion of macro 'smalloc' -| 1631 | leveldata = smalloc(ht * (width+2)); -| | ^~~~~~~ -| In file included from tmp/work/core2-64-poky-linux/puzzles/2_0.0+gitAUTOINC+640f9235c7-r0/git/tree234.c:29: -| tmp/work/core2-64-poky-linux/puzzles/2_0.0+gitAUTOINC+640f9235c7-r0/recipe-sysroot/usr/include/stdlib.h:539:14: note: in a call to allocation function 'malloc' declared here -| 539 | extern void *malloc (size_t __size) __THROW __attribute_malloc__ -| | ^~~~~~ -| tmp/work/core2-64-poky-linux/puzzles/2_0.0+gitAUTOINC+640f9235c7-r0/git/tree234.c:46:17: error: argument 1 value '18446744073709551600' exceeds maximum object size 9223372036854775807 [-Werror=alloc-size-larger-than=] -| 46 | #define smalloc malloc -| | ^ -| tmp/work/core2-64-poky-linux/puzzles/2_0.0+gitAUTOINC+640f9235c7-r0/git/tree234.c:1632:18: note: in expansion of macro 'smalloc' -| 1632 | ctx.levels = smalloc(ht * sizeof(char *)); -| | ^~~~~~~ -| In file included from tmp/work/core2-64-poky-linux/puzzles/2_0.0+gitAUTOINC+640f9235c7-r0/git/tree234.c:29: -| tmp/work/core2-64-poky-linux/puzzles/2_0.0+gitAUTOINC+640f9235c7-r0/recipe-sysroot/usr/include/stdlib.h:539:14: note: in a call to allocation function 'malloc' declared here -| 539 | extern void *malloc (size_t __size) __THROW __attribute_malloc__ -| | ^~~~~~ -| cc1: some warnings being treated as errors - -Upstream-Status: Submitted [email discussion with upstream] - -Signed-off-by: Richard Purdie <[email protected]> - -Index: git/tree234.c -=================================================================== ---- git.orig/tree234.c -+++ git/tree234.c -@@ -1621,7 +1621,7 @@ void disptree(tree234 *t) { - dispctx ctx; - char *leveldata; - int width = count234(t); -- int ht = height234(t) * 3 - 2; -+ unsigned int ht = height234(t) * 3 - 2; - int i; - - if (!t->root) {
meta/recipes-sato/puzzles/files/0001-map-Fix-stringop-overflow-warning.patch deleted +0 -34
@@ -1,34 +0,0 @@ -From: Khem Raj <[email protected]> -map: Fix stringop-overflow warning - -Fixes - -../git/map.c: In function 'new_game_desc': -../git/map.c:1663:23: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] - 1663 | ret[retlen++] = ','; - | ~~~~~~~~~~~~~~^~~~~ -../git/./map.c: In function 'new_game_desc': -../git/./map.c:1663:23: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] - 1663 | ret[retlen++] = ','; - | ~~~~~~~~~~~~~~^~~~~ - -Upstream-Status: Submitted [email discussion with upstream] - -Signed-off-by: Richard Purdie <[email protected]> -Signed-off-by: Khem Raj <[email protected]> - -Index: git/map.c -=================================================================== ---- git.orig/map.c -+++ git/map.c -@@ -1659,6 +1659,10 @@ static char *new_game_desc(const game_pa - } - } - -+ if (retlen + 10 >= retsize) { -+ retsize = retlen + 256; -+ ret = sresize(ret, retsize, char); -+ } - ret[retlen++] = 'a'-1 + run; - ret[retlen++] = ','; -
meta/recipes-sato/puzzles/files/0001-palisade-Fix-warnings-with-clang-on-arm.patch deleted +0 -72
72 lines not on this page · raw message
meta/recipes-sato/puzzles/files/fix-compiling-failure-with-option-g-O.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From: Hongxu Jia <[email protected]> - -gtk.c: fix compiling failure with option -g -O - -There was a compile failure with option -g -O -... -././gtk.c: In function 'main': -././gtk.c:2911:6: error: 'error' may be used uninitialized in this function [-Werror=maybe-uninitialized] - fprintf(stderr, "%s: %s\n", pname, error); - ^ -cc1: all warnings being treated as errors -... - -Fix by initializing pointer 'error' with NULL - -Upstream-Status: Submitted [email discussion with upstream] - -Signed-off-by: Richard Purdie <[email protected]> -Signed-off-by: Hongxu Jia <[email protected]> - -Index: git/gtk.c -=================================================================== ---- git.orig/gtk.c -+++ git/gtk.c -@@ -3578,7 +3578,7 @@ static void list_presets_from_menu(struc - int main(int argc, char **argv) - { - char *pname = argv[0]; -- char *error; -+ char *error = NULL; - int ngenerate = 0, px = 1, py = 1; - bool print = false; - bool time_generation = false, test_solve = false, list_presets = false;
meta/recipes-sato/puzzles/files/fix-ki-uninitialized.patch deleted +0 -32
@@ -1,32 +0,0 @@ -tree123: avoid compiler unitialized variable error - -The compiler does not realize that we must go through the while() -loop at least once, so we replace it with a for() loop. - -Upstream-Status: Submitted [email discussion with upstream] - -Signed-off-by: Richard Purdie <[email protected]> -Signed-off-by: Joe Slater <[email protected]> - -Index: git/tree234.c -=================================================================== ---- git.orig/tree234.c -+++ git/tree234.c -@@ -335,7 +335,7 @@ static void *add234_internal(tree234 *t, - } - - n = t->root; -- while (n) { -+ do { - LOG((" node %p: %p/%d \"%s\" %p/%d \"%s\" %p/%d \"%s\" %p/%d\n", - n, - n->kids[0], n->counts[0], n->elems[0], -@@ -388,7 +388,7 @@ static void *add234_internal(tree234 *t, - if (!n->kids[ki]) - break; - n = n->kids[ki]; -- } -+ } while (n); - - add234_insert(NULL, e, NULL, &t->root, n, ki); -
meta/recipes-sato/puzzles/puzzles_git.bb +1 -6
@@ -8,16 +8,11 @@ LIC_FILES_CHKSUM = "file://LICENCE;md5=6e7d24cf1c949887ee9447a1e2a4a24c" REQUIRED_DISTRO_FEATURES = "x11" SRC_URI = "git://git.tartarus.org/simon/puzzles.git;branch=main \ - file://fix-compiling-failure-with-option-g-O.patch \ - file://0001-palisade-Fix-warnings-with-clang-on-arm.patch \ file://0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch \ - file://fix-ki-uninitialized.patch \ - file://0001-malloc-Check-for-excessive-values-to-malloc.patch \ - file://0001-map-Fix-stringop-overflow-warning.patch \ " UPSTREAM_CHECK_COMMITS = "1" -SRCREV = "640f9235c79cdb1a924b0148cb312b0f02253364" +SRCREV = "d399a6b23051335ce3107f11822ae352816fcd50" PE = "2" PV = "0.0+git${SRCPV}"
Signature · 1 line
2.32.0