commit:     b68b79a1a751dec9be9b1e292a137c0c0acf9cd0
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 13 20:51:15 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Apr 13 20:51:15 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b68b79a1

sys-auth/ykpers: Fix building with -fno-common

Closes: https://bugs.gentoo.org/706848
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../ykpers/files/ykpers-1.20.0-fix-gcc10-fno-common.patch   | 13 +++++++++++++
 sys-auth/ykpers/ykpers-1.20.0.ebuild                        |  3 ++-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/sys-auth/ykpers/files/ykpers-1.20.0-fix-gcc10-fno-common.patch 
b/sys-auth/ykpers/files/ykpers-1.20.0-fix-gcc10-fno-common.patch
new file mode 100644
index 00000000000..dcff56ad086
--- /dev/null
+++ b/sys-auth/ykpers/files/ykpers-1.20.0-fix-gcc10-fno-common.patch
@@ -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,

diff --git a/sys-auth/ykpers/ykpers-1.20.0.ebuild 
b/sys-auth/ykpers/ykpers-1.20.0.ebuild
index 4db6dbd05bb..37d5abec3c5 100644
--- a/sys-auth/ykpers/ykpers-1.20.0.ebuild
+++ b/sys-auth/ykpers/ykpers-1.20.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -26,6 +26,7 @@ RDEPEND="${DEPEND}
 "
 
 S="${WORKDIR}/yubikey-personalization-${PV}"
+PATCHES=( "${FILESDIR}"/${PN}-1.20.0-fix-gcc10-fno-common.patch )
 
 DOCS=( doc/. AUTHORS NEWS README )
 

Reply via email to