!4 解决gcc升级到gcc10后编译失败
From: @zhangtao2020 Reviewed-by: @small_leek,@yanan-rock Signed-off-by: @small_leek,@yanan-rock
This commit is contained in:
commit
412a2031be
13
ykpers-args-extern.patch
Normal file
13
ykpers-args-extern.patch
Normal file
@ -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,
|
||||
@ -2,11 +2,12 @@
|
||||
|
||||
Name: ykpers
|
||||
Version: 1.20.0
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: The YubiKey Personalization package contains a library and command line tool used to personalize
|
||||
License: BSD
|
||||
URL: https://developers.yubico.com/yubikey-personalization/
|
||||
Source0: https://developers.yubico.com/yubikey-personalization/%{name}-%{version}.tar.gz
|
||||
Patch0: ykpers-args-extern.patch
|
||||
|
||||
BuildRequires: libusb-devel gcc libyubikey-devel systemd-udev
|
||||
|
||||
@ -21,6 +22,7 @@ The YubiKey Personalization package contains a library and command line tool use
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}/
|
||||
%patch0 -p0
|
||||
|
||||
%build
|
||||
%configure --enable-static=no --with-udevrulesdir=/usr/lib/udev/rules.d
|
||||
@ -53,6 +55,9 @@ rm -rf %{buildroot}/%{_libdir}/*.la
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri 30 Jul 2021 zhangtao <zhangtao221@huawei.com> - 1.20.0-3
|
||||
-fix gcc upgrade causes compilation failure
|
||||
|
||||
* Mon May 31 2021 huanghaitao <huanghaitao8@huawei.com> - 1.20.0-2
|
||||
- Completing build dependencies to define %{_udevrulesdir} macros
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user