Skip to content

Commit

Permalink
sys-auth/ykpers: Fix building with -fno-common
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/706848
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: David Seifert <[email protected]>
  • Loading branch information
SoapGentoo committed Apr 13, 2020
1 parent ab0131b commit b68b79a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions sys-auth/ykpers/files/ykpers-1.20.0-fix-gcc10-fno-common.patch
Original file line number Diff line number Diff line change
@@ -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,
3 changes: 2 additions & 1 deletion sys-auth/ykpers/ykpers-1.20.0.ebuild
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 )

Expand Down

0 comments on commit b68b79a

Please sign in to comment.