diff -Nru libu2f-host-1.1.10/debian/changelog libu2f-host-1.1.10/debian/changelog --- libu2f-host-1.1.10/debian/changelog 2019-07-13 11:35:42.000000000 +0000 +++ libu2f-host-1.1.10/debian/changelog 2020-08-02 01:32:44.000000000 +0000 @@ -1,3 +1,9 @@ +libu2f-host (1.1.10-1+rpi1) bullseye-staging; urgency=medium + + * Apply patch from bts for new json-c (Closes: 986602) + + -- Peter Michael Green Sun, 02 Aug 2020 01:32:44 +0000 + libu2f-host (1.1.10-1) unstable; urgency=high (security fix) [ Nicolas Braud-Santoni ] diff -Nru libu2f-host-1.1.10/debian/patches/new-jsonc.patch libu2f-host-1.1.10/debian/patches/new-jsonc.patch --- libu2f-host-1.1.10/debian/patches/new-jsonc.patch 1970-01-01 00:00:00.000000000 +0000 +++ libu2f-host-1.1.10/debian/patches/new-jsonc.patch 2020-08-02 01:31:55.000000000 +0000 @@ -0,0 +1,22 @@ +Description: Patch to make it build with newer json-c deprecated TRUE/FALSE defines + +Author: Gianfranco Costamagna +Last-Update: 2020-07-31 + +--- libu2f-host-1.1.10.orig/u2f-host/u2fmisc.c ++++ libu2f-host-1.1.10/u2f-host/u2fmisc.c +@@ -26,6 +26,14 @@ + #define HID_TIMEOUT 2 + #define HID_MAX_TIMEOUT 4096 + ++// 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 u2fh_json_object_object_get(obj, key, value) json_object_object_get_ex(obj, key, &value) + #else diff -Nru libu2f-host-1.1.10/debian/patches/series libu2f-host-1.1.10/debian/patches/series --- libu2f-host-1.1.10/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ libu2f-host-1.1.10/debian/patches/series 2020-08-02 01:32:24.000000000 +0000 @@ -0,0 +1 @@ +new-jsonc.patch