Control: tags -1 patch thanks On Mon, Feb 17, 2025 at 05:07:49PM +0000, Matthias Klose wrote: > [...] > The package fails to build in a test rebuild on at least amd64 with > gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The > severity of this report will be raised before the forky release. > [...] > jsvc.h:33:5: error: cannot use keyword ‘false’ as enumeration constant > 33 | false, > | ^~~~~ > In file included from jsvc-unix.c:18: > jsvc.h:33:5: error: cannot use keyword ‘false’ as enumeration constant > 33 | false, > | ^~~~~ > jsvc.h:33:5: note: ‘false’ is a keyword with ‘-std=c23’ onwards > jsvc.h:33:5: note: ‘false’ is a keyword with ‘-std=c23’ onwards > jsvc.h:35:3: error: expected ‘;’, identifier or ‘(’ before ‘bool’ > 35 | } bool; > | ^~~~ > jsvc.h:35:3: error: expected ‘;’, identifier or ‘(’ before ‘bool’ > 35 | } bool; > | ^~~~ > [...]
The attached patch (valid since C99) resolves the FTBFS. HTH, Flo
Index: commons-daemon-1.0.15/src/native/unix/native/jsvc.h
===================================================================
--- commons-daemon-1.0.15.orig/src/native/unix/native/jsvc.h
+++ commons-daemon-1.0.15/src/native/unix/native/jsvc.h
@@ -26,14 +26,7 @@
#include <sys/stat.h>
/* Definitions for booleans */
-#ifdef OS_DARWIN
#include <stdbool.h>
-#else
-typedef enum {
- false,
- true
-} bool;
-#endif
#include "version.h"
#include "debug.h"
signature.asc
Description: PGP signature
__ This is the maintainer address of Debian's Java team <https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-maintainers>. Please use [email protected] for discussions and questions.
