!3 rpmbuild构建kabi-dw过程出现multiple definition
From: @arick_liu Reviewed-by: @xiexiuqi Signed-off-by: @xiexiuqi
This commit is contained in:
commit
880e4ab1a9
8
kabi-dw-multiple-definition-yyin.patch
Normal file
8
kabi-dw-multiple-definition-yyin.patch
Normal file
@ -0,0 +1,8 @@
|
||||
--- ./parser.h.xiugai 2021-08-03 20:48:31.260494920 +0800
|
||||
+++ ./parser.h 2021-08-03 20:48:45.900664125 +0800
|
||||
@@ -30,4 +30,4 @@
|
||||
|
||||
int yylex();
|
||||
int yyerror(obj_t **root, char *s);
|
||||
-FILE *yyin;
|
||||
+extern FILE *yyin;
|
||||
@ -3,11 +3,12 @@
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
Name: kabi-dw
|
||||
Version: 0
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Detect changes in the ABI between kernel builds
|
||||
License: GPLv3+
|
||||
URL: https://github.com/skozina/%{name}
|
||||
Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
||||
Patch0: kabi-dw-multiple-definition-yyin.patch
|
||||
BuildRequires: elfutils-devel gcc bison flex glib2-devel openEuler-rpm-config
|
||||
%description
|
||||
The aim of kabi-dw is to detect any changes in the ABI between the successive
|
||||
@ -17,7 +18,7 @@ later comparing the text files.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{commit}
|
||||
|
||||
%patch0 -p1
|
||||
%build
|
||||
%set_build_flags
|
||||
%make_build
|
||||
@ -32,5 +33,8 @@ install -m 0755 %{name} %{buildroot}%{_bindir}/
|
||||
%license COPYING
|
||||
|
||||
%changelog
|
||||
* Mon Aug 2 2021 liushaofei <liushaofei5@huawei.com>
|
||||
- fix multiple definition
|
||||
|
||||
* Wed Aug 12 2020 tuShenmei <tushenmei@huawei.com> - 0-1
|
||||
- package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user