FYI upstream did something like sed s/FALSE/0 and sed s/TRUE/1 on the code, 
instead of defining them.

G.


On Fri, 31 Jul 2020 12:56:16 +0200 Gianfranco Costamagna 
<locutusofb...@debian.org> wrote:
> Source: yubikey-personalization
> Version: 1.20.0-2
> Severity: serious
> tags: patch
>  
> Hello, this is the trivial patch that makes the package build with newer 
> jsonc.
> 
> Description: Patch to make it build with newer json-c deprecated TRUE/FALSE 
> defines
> 
> Author: Gianfranco Costamagna <locutusofb...@debian.org>
> Last-Update: 2020-07-31
> 
> Index: yubikey-personalization-1.20.0/ykpers-json.c
> ===================================================================
> --- yubikey-personalization-1.20.0.orig/ykpers-json.c
> +++ yubikey-personalization-1.20.0/ykpers-json.c
> @@ -36,6 +36,14 @@
>  #include <json.h>
>  #include <string.h>
> 
> +// not exported anymore by new json-c
> +#ifndef TRUE
> +#define TRUE 1
> +#endif
> +#ifndef FALSE
> +#define FALSE 0
> +#endif
> +
>  #ifdef HAVE_JSON_OBJECT_OBJECT_GET_EX
>  #define yk_json_object_object_get(obj, key, value) 
> json_object_object_get_ex(obj, key, &value)
>  #else
> 
> 
> G. 
> 
> 
> 

Reply via email to