Fixing build error

Updating to release 5 and including a patch to 'extern' the definitions
of usage and optstring in ykpers-args.h to fix a build error on gcc10
epel9
Maxim Burgerhout 5 years ago
parent b567c6463c
commit f21f4e9169

@ -0,0 +1,13 @@
--- ykpers-args.h 2019-02-19 13:29:54.000000000 +0100
+++ ykpers-args.h.patch 2020-02-14 13:27:53.624129087 +0100
@@ -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,

@ -1,11 +1,12 @@
Name: ykpers
Version: 1.20.0
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Yubikey personalization program
License: BSD
URL: http://opensource.yubico.com/yubikey-personalization/
Source0: http://opensource.yubico.com/yubikey-personalization/releases/%{name}-%{version}.tar.gz
Patch0: ykpers-args-extern.patch
%ifnarch s390 s390x
BuildRequires: libusb1-devel
@ -30,6 +31,7 @@ use ykpers.
%prep
%setup -q
%patch0 -p0
%build
%configure --enable-static=no --disable-rpath \
@ -73,6 +75,9 @@ make check
%exclude %{_libdir}/libykpers-1.la
%changelog
* Fri Feb 14 2020 Maxim Burgerhout <wzzrd@fedoraproject.org> - 1.20.0-5
- Fix build error for Fedora 32 / gcc10
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.20.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

Loading…
Cancel
Save