package/gdbm: drop patch
PATCH 1/1 package/gdbm: drop patch
Patch 0001-C23-compatibility-fix.patch was added by commit bbec805717167714ee6b22b8c8b2ddddcce47ea4, then removed by commit 2dd20212f2edb3a763d9251dce157956245bec09 that bumped to version 1.26, but for some reason 25918f455c61b487cc29e3cfb8ece0e35db96aa1 re-added it, probably due to some issues in the next -> master merge.
Let's drop the patch to fix build issues.
Fixes:
https://autobuild.buildroot.net/results/0341d8284d9a069533b55103c1666b90467306d4/
--- package/gdbm/0001-C23-compatibility-fix.patch | 158 ------------------ 1 file changed, 158 deletions(-) delete mode 100644 package/gdbm/0001-C23-compatibility-fix.patch
package/gdbm/0001-C23-compatibility-fix.patch deleted +0 -158
@@ -1,158 +0,0 @@ -From 238315e9f4f547dff4f5b9dff2f903385a8048cb Mon Sep 17 00:00:00 2001 -From: Sergey Poznyakoff <[email protected]> -Date: Sun, 17 Nov 2024 22:58:54 +0200 -Subject: [PATCH] C23 compatibility fix - -This fixes https://puszcza.gnu.org.ua/bugs/?642 - -* tools/var.c (union value): Rename bool to b. - -Upstream: 734f69451392ffb6280d8a3aef51e2673c9b8554 -[Thomas: needed a few backporting adjustements] -Signed-off-by: Thomas Petazzoni <[email protected]> ---- - tools/var.c | 32 ++++++++++++++++---------------- - 1 file changed, 16 insertions(+), 16 deletions(-) - -diff --git a/tools/var.c b/tools/var.c -index 0f285f1..c553ae5 100644 ---- a/tools/var.c -+++ b/tools/var.c -@@ -27,7 +27,7 @@ - union value - { - char *string; -- int bool; -+ int b; - int num; - }; - -@@ -90,7 +90,7 @@ static struct variable vartab[] = { - .name = "confirm", - .type = VART_BOOL, - .flags = VARF_INIT, -- .init = { .bool = 1 } -+ .init = { .b = 1 } - }, - { - .name = "cachesize", -@@ -114,32 +114,32 @@ static struct variable vartab[] = { - .name = "lock", - .type = VART_BOOL, - .flags = VARF_INIT, -- .init = { .bool = 1 } -+ .init = { .b = 1 } - }, - { - .name = "mmap", - .type = VART_BOOL, - .flags = VARF_INIT, -- .init = { .bool = 1 } -+ .init = { .b = 1 } - }, - { - .name = "sync", - .type = VART_BOOL, - .flags = VARF_INIT, -- .init = { .bool = 0 } -+ .init = { .b = 0 } - }, - { - .name = "coalesce", - .type = VART_BOOL, - .flags = VARF_INIT, -- .init = { .bool = 0 }, -+ .init = { .b = 0 }, - .sethook = coalesce_sethook - }, - { - .name = "centfree", - .type = VART_BOOL, - .flags = VARF_INIT, -- .init = { .bool = 0 }, -+ .init = { .b = 0 }, - .sethook = centfree_sethook - }, - { -@@ -252,21 +252,21 @@ s2b (union value *vp, void *val, int flags) - for (i = 0; trueval[i]; i++) - if (strcasecmp (trueval[i], val) == 0) - { -- vp->bool = 1; -+ vp->b = 1; - return VAR_OK; - } - - for (i = 0; falseval[i]; i++) - if (strcasecmp (falseval[i], val) == 0) - { -- vp->bool = 0; -+ vp->b = 0; - return VAR_OK; - } - - n = strtoul (val, &p, 0); - if (*p) - return VAR_ERR_BADTYPE; -- vp->bool = !!n; -+ vp->b = !!n; - return VAR_OK; - } - -@@ -286,7 +286,7 @@ s2i (union value *vp, void *val, int flags) - static int - b2b (union value *vp, void *val, int flags) - { -- vp->bool = !!*(int*)val; -+ vp->b = !!*(int*)val; - return VAR_OK; - } - -@@ -307,7 +307,7 @@ i2i (union value *vp, void *val, int flags) - static int - i2b (union value *vp, void *val, int flags) - { -- vp->bool = *(int*)val; -+ vp->b = *(int*)val; - return VAR_OK; - } - -@@ -414,7 +414,7 @@ variable_get (const char *name, int type, void **val) - break; - - case VART_BOOL: -- *(int*)val = vp->v.bool; -+ *(int*)val = vp->v.b; - break; - - case VART_INT: -@@ -461,7 +461,7 @@ variable_print_all (FILE *fp) - break; - - case VART_BOOL: -- fprintf (fp, "%s%s", vp->v.bool ? "" : "no", vp->name); -+ fprintf (fp, "%s%s", vp->v.b ? "" : "no", vp->name); - break; - - case VART_STRING: -@@ -647,7 +647,7 @@ centfree_sethook (struct variable *var, union value *v) - { - if (!v) - return VAR_OK; -- return gdbmshell_setopt ("GDBM_SETCENTFREE", GDBM_SETCENTFREE, v->bool) == 0 -+ return gdbmshell_setopt ("GDBM_SETCENTFREE", GDBM_SETCENTFREE, v->b) == 0 - ? VAR_OK : VAR_ERR_GDBM; - } - -@@ -656,7 +656,7 @@ coalesce_sethook (struct variable *var, union value *v) - { - if (!v) - return VAR_OK; -- return gdbmshell_setopt ("GDBM_SETCOALESCEBLKS", GDBM_SETCOALESCEBLKS, v->bool) == 0 -+ return gdbmshell_setopt ("GDBM_SETCOALESCEBLKS", GDBM_SETCOALESCEBLKS, v->b) == 0 - ? VAR_OK : VAR_ERR_GDBM; - } - --- -2.50.1 -
Signature · 6 lines
2.51.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Romain Naour via buildroot
AppliedHello Thomas, All,
Le 10/09/2025 à 23:38, Thomas Petazzoni via buildroot a écrit :
Quoted 6 lines
Patch 0001-C23-compatibility-fix.patch was added by commit
bbec805717167714ee6b22b8c8b2ddddcce47ea4, then removed by commit2dd20212f2edb3a763d9251dce157956245bec09that bumped to version 1.26, but for some reason25918f455c61b487cc29e3cfb8ece0e35db96aa1re-added it, probably due to some issues in the next -> master merge.
Quoted 7 lines
Let's drop the patch to fix build issues.
Fixes:
https://autobuild.buildroot.net/results/0341d8284d9a069533b55103c1666b90467306d4/
Signed-off-by Thomas Petazzoni <[email protected]>
Applied to master, thanks.
Best regards,
Romain
Quoted 159 lines
--- package/gdbm/0001-C23-compatibility-fix.patch | 158 ------------------ 1 file changed, 158 deletions(-) delete mode 100644 package/gdbm/0001-C23-compatibility-fix.patchpackage/gdbm/0001-C23-compatibility-fix.patch deleted +0
-148@@ -1,158 +0,0 @@ -From 238315e9f4f547dff4f5b9dff2f903385a8048cb Mon Sep 17 00:00:00 2001 -From: Sergey Poznyakoff <[email protected]> -Date: Sun, 17 Nov 2024 22:58:54 +0200 -Subject: [PATCH] C23 compatibility fix - -This fixes https://puszcza.gnu.org.ua/bugs/?642 - -* tools/var.c (union value): Rename bool to b. - -Upstream: 734f69451392ffb6280d8a3aef51e2673c9b8554 -[Thomas: needed a few backporting adjustements] -Signed-off-by: Thomas Petazzoni <[email protected]> ---- - tools/var.c | 32 ++++++++++++++++---------------- - 1 file changed, 16 insertions(+), 16 deletions(-) - -diff --git a/tools/var.c b/tools/var.c -index 0f285f1..c553ae5 100644 ---- a/tools/var.c -+++ b/tools/var.c -@@ -27,7 +27,7 @@ - union value - { - char *string; -- int bool; -+ int b; - int num; - }; - -@@ -90,7 +90,7 @@ static struct variable vartab[] = { - .name = "confirm", - .type = VART_BOOL, - .flags = VARF_INIT, -- .init = { .bool = 1 } -+ .init = { .b = 1 } - }, - { - .name = "cachesize", -@@ -114,32 +114,32 @@ static struct variable vartab[] = { - .name = "lock", - .type = VART_BOOL, - .flags = VARF_INIT, -- .init = { .bool = 1 } -+ .init = { .b = 1 } - }, - { - .name = "mmap", - .type = VART_BOOL, - .flags = VARF_INIT, -- .init = { .bool = 1 } -+ .init = { .b = 1 } - }, - { - .name = "sync", - .type = VART_BOOL, - .flags = VARF_INIT, -- .init = { .bool = 0 } -+ .init = { .b = 0 } - }, - { - .name = "coalesce", - .type = VART_BOOL, - .flags = VARF_INIT, -- .init = { .bool = 0 }, -+ .init = { .b = 0 }, - .sethook = coalesce_sethook - }, - { - .name = "centfree", - .type = VART_BOOL, - .flags = VARF_INIT, -- .init = { .bool = 0 }, -+ .init = { .b = 0 }, - .sethook = centfree_sethook - }, - { -@@ -252,21 +252,21 @@ s2b (union value *vp, void *val, int flags) - for (i = 0; trueval[i]; i++) - if (strcasecmp (trueval[i], val) == 0) - { -- vp->bool = 1; -+ vp->b = 1; - return VAR_OK; - } - - for (i = 0; falseval[i]; i++) - if (strcasecmp (falseval[i], val) == 0) - { -- vp->bool = 0; -+ vp->b = 0; - return VAR_OK; - } - - n = strtoul (val, &p, 0); - if (*p) - return VAR_ERR_BADTYPE; -- vp->bool = !!n; -+ vp->b = !!n; - return VAR_OK; - } - -@@ -286,7 +286,7 @@ s2i (union value *vp, void *val, int flags) - static int - b2b (union value *vp, void *val, int flags) - { -- vp->bool = !!*(int*)val; -+ vp->b = !!*(int*)val; - return VAR_OK; - } - -@@ -307,7 +307,7 @@ i2i (union value *vp, void *val, int flags) - static int - i2b (union value *vp, void *val, int flags) - { -- vp->bool = *(int*)val; -+ vp->b = *(int*)val; - return VAR_OK; - } - -@@ -414,7 +414,7 @@ variable_get (const char *name, int type, void **val) - break; - - case VART_BOOL: -- *(int*)val = vp->v.bool; -+ *(int*)val = vp->v.b; - break; - - case VART_INT: -@@ -461,7 +461,7 @@ variable_print_all (FILE *fp) - break; - - case VART_BOOL: -- fprintf (fp, "%s%s", vp->v.bool ? "" : "no", vp->name); -+ fprintf (fp, "%s%s", vp->v.b ? "" : "no", vp->name); - break; - - case VART_STRING: -@@ -647,7 +647,7 @@ centfree_sethook (struct variable *var, union value *v) - { - if (!v) - return VAR_OK; -- return gdbmshell_setopt ("GDBM_SETCENTFREE", GDBM_SETCENTFREE, v->bool) == 0 -+ return gdbmshell_setopt ("GDBM_SETCENTFREE", GDBM_SETCENTFREE, v->b) == 0 - ? VAR_OK : VAR_ERR_GDBM; - } - -@@ -656,7 +656,7 @@ coalesce_sethook (struct variable *var, union value *v) - {
package/gdbm/0001-C23-compatibility-fix.patch line 158
Quoted 10 lines
package/gdbm/0001-C23-compatibility-fix.patch deleted +0
-10- if (!v) - return VAR_OK; -- return gdbmshell_setopt ("GDBM_SETCOALESCEBLKS", GDBM_SETCOALESCEBLKS, v->bool) == 0 -+ return gdbmshell_setopt ("GDBM_SETCOALESCEBLKS", GDBM_SETCOALESCEBLKS, v->b) == 0 - ? VAR_OK : VAR_ERR_GDBM; - } - --- -2.50.1 -
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot