ykpers: fix compilation with GCC10 12652/head
authorRosen Penev <rosenp@gmail.com>
Tue, 30 Jun 2020 00:58:02 +0000 (17:58 -0700)
committerRosen Penev <rosenp@gmail.com>
Tue, 30 Jun 2020 04:00:13 +0000 (21:00 -0700)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/ykpers/Makefile
utils/ykpers/patches/010-gcc10.patch [new file with mode: 0644]

index 1c883af640373ab7925529be8540e60a1a0cf3e8..bc8b284c8d58957995da49142f6beac79418398c 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ykpers
 PKG_VERSION:=1.20.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://developers.yubico.com/yubikey-personalization/Releases
diff --git a/utils/ykpers/patches/010-gcc10.patch b/utils/ykpers/patches/010-gcc10.patch
new file mode 100644 (file)
index 0000000..dcff56a
--- /dev/null
@@ -0,0 +1,13 @@
+--- a/ykpers-args.h
++++ b/ykpers-args.h
+@@ -33,8 +33,8 @@
+ #include "ykpers.h"
+-const char *usage;
+-const char *optstring;
++extern const char *usage;
++extern const char *optstring;
+ int args_to_config(int argc, char **argv, YKP_CONFIG *cfg, char *oathid,
+                  size_t oathid_len, const char **infname,