Source: perdition
Version: 2.2-3
Severity: important
Tags: upstream patch

Hello, for some reasons the package is not FTBFS yet in Debian, but I suspect 
it will become shortly, because
SIZE_MAX used without stdint.h being included.

Patch following:


--- perdition-2.2/debian/patches/fix-build.patch        1970-01-01 
00:00:00.000000000 +0000
+++ perdition-2.2/debian/patches/fix-build.patch        2018-02-02 
16:35:30.000000000 +0000
@@ -0,0 +1,23 @@
+Description: Fix build because of missing stdint, leading to build error
+ gcc -DHAVE_CONFIG_H -I. -I.. -DPERDITION_LIBDIR=\"/usr/lib\" 
-DPERDITION_SYSCONFDIR=\"/etc/perdition\" -DPERDITION_LOCALSTATEDIR=\"/var\" 
-I/usr/include   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 
-fdebug-prefix-map=/build/perdition-2.2=. -fstack-protector-strong -Wformat 
-Werror=format-security -MT acap_token.o -MD -MP -MF .deps/acap_token.Tpo -c -o 
acap_token.o acap_token.c
+ acap_token.c: In function 'acap_token_status':
+ acap_token.c:186:12: error: 'SIZE_MAX' undeclared (first use in this 
function); did you mean 'SSIZE_MAX'?
+  if (len > SIZE_MAX || len > ACAP_LITERAL_MAX)
+            ^~~~~~~~
+            SSIZE_MAX
+ acap_token.c:186:12: note: each undeclared identifier is reported only once 
for each function it appears in
+
+Author: Gianfranco Costamagna <locutusofb...@debian.org>
+
+Last-Update: 2018-02-02
+
+--- perdition-2.2.orig/perdition/acap_token.c
++++ perdition-2.2/perdition/acap_token.c
+@@ -5,6 +5,7 @@
+ #include <vanessa_adt.h>
+ #include <ctype.h>
+ #include <limits.h>
++#include <stdint.h>
+ 
+ struct acap_token_status {
+       enum acap_type type;
diff -Nru perdition-2.2/debian/patches/series 
perdition-2.2/debian/patches/series
--- perdition-2.2/debian/patches/series 1970-01-01 00:00:00.000000000 +0000
+++ perdition-2.2/debian/patches/series 2018-02-02 16:34:20.000000000 +0000
@@ -0,0 +1 @@
+fix-build.patch

thanks for considering it!

Gianfranco

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to