]> git.pld-linux.org Git - packages/libu2f-host.git/commitdiff
- updated to 1.1.10 auto/th/libu2f-host-1.1.10-1
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 1 May 2020 19:17:34 +0000 (21:17 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Fri, 1 May 2020 19:17:34 +0000 (21:17 +0200)
- added json-c patch (fixes build with json-c 0.14)

libu2f-host-json-c.patch [new file with mode: 0644]
libu2f-host.spec

diff --git a/libu2f-host-json-c.patch b/libu2f-host-json-c.patch
new file mode 100644 (file)
index 0000000..91f0e2a
--- /dev/null
@@ -0,0 +1,29 @@
+--- libu2f-host-1.1.10/u2f-host/u2fmisc.c.orig 2019-02-22 12:31:45.000000000 +0100
++++ libu2f-host-1.1.10/u2f-host/u2fmisc.c      2020-05-01 20:57:50.617146077 +0200
+@@ -30,7 +30,7 @@
+ #define u2fh_json_object_object_get(obj, key, value) json_object_object_get_ex(obj, key, &value)
+ #else
+ typedef int json_bool;
+-#define u2fh_json_object_object_get(obj, key, value) (value = json_object_object_get(obj, key)) == NULL ? (json_bool)FALSE : (json_bool)TRUE
++#define u2fh_json_object_object_get(obj, key, value) (value = json_object_object_get(obj, key)) == NULL ? (json_bool)0 : (json_bool)1
+ #endif
+ static void
+@@ -114,7 +114,7 @@
+   if (debug)
+     fprintf (stderr, "JSON: %s\n", json_object_to_json_string (jo));
+-  if (u2fh_json_object_object_get (jo, "appId", k) == FALSE)
++  if (u2fh_json_object_object_get (jo, "appId", k) == 0)
+     return U2FH_JSON_ERROR;
+   app_id = json_object_get_string (k);
+@@ -390,7 +390,7 @@
+   if (debug)
+     fprintf (stderr, "JSON: %s\n", json_object_to_json_string (jo));
+-  if (u2fh_json_object_object_get (jo, key, k) == FALSE)
++  if (u2fh_json_object_object_get (jo, key, k) == 0)
+     return U2FH_JSON_ERROR;
+   urlb64 = json_object_get_string (k);
index 927c464a8dea56bd3bbcc62fdb4ccea6e1092098..7a0e6cf36b2370d3bf8b2757ee8e2a021967a383 100644 (file)
@@ -6,12 +6,13 @@
 Summary:       Yubico Universal 2nd Factor (U2F) Host C Library
 Summary(pl.UTF-8):     Biblioteka C hosta Universal 2nd Factor (U2F) Yubico
 Name:          libu2f-host
-Version:       1.1.6
+Version:       1.1.10
 Release:       1
 License:       LGPL v2.1+ (library and tool), GPL v3+ (tests)
 Group:         Libraries
 Source0:       https://developers.yubico.com/libu2f-host/Releases/%{name}-%{version}.tar.xz
-# Source0-md5: 2af0c9df26e290bb35b7f154b835ce8c
+# Source0-md5: 7664b0d5c9940bdefc934dce15db1baf
+Patch0:                %{name}-json-c.patch
 URL:           https://developers.yubico.com/libu2f-host/
 BuildRequires: gtk-doc >= 1.1
 BuildRequires: help2man
@@ -65,7 +66,7 @@ Summary:      API documentation for libu2f-host library
 Summary(pl.UTF-8):     Dokumentacja API biblioteki libu2f-host
 License:       LGPL v2.1+
 Group:         Documentation
-%if "%{_rpmversion}" >= "5"
+%if "%{_rpmversion}" >= "4.6"
 BuildArch:     noarch
 %endif
 
@@ -77,6 +78,7 @@ Dokumentacja API biblioteki libu2f-host.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure \
This page took 0.087579 seconds and 4 git commands to generate.