From b7d6e97665e9daa8c501ccfa02b7eaff383ca36a Mon Sep 17 00:00:00 2001 From: JinWang An Date: Wed, 23 Mar 2022 16:26:27 +0900 Subject: Fix swig source to resolve build error Change-Id: I5ad4b53844c9ecedab4f52a1bdc26c9b04e63031 Signed-off-by: JinWang An --- packaging/Fix_Swig_Source.patch | 9 +++++++++ packaging/libzypp-bindings.spec | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 packaging/Fix_Swig_Source.patch diff --git a/packaging/Fix_Swig_Source.patch b/packaging/Fix_Swig_Source.patch new file mode 100644 index 0000000..91430e3 --- /dev/null +++ b/packaging/Fix_Swig_Source.patch @@ -0,0 +1,9 @@ +diff --git a/swig/ResTraits.i b/swig/ResTraits.i +index cbcefad..638fded 100644 +--- a/swig/ResTraits.i ++++ b/swig/ResTraits.i +@@ -1,3 +1,4 @@ ++%include + + /** Base of ResTraits. Defines the Resolvable::Kind type. */ + /*struct ResolvableTraits diff --git a/packaging/libzypp-bindings.spec b/packaging/libzypp-bindings.spec index 8c1ca95..652af93 100644 --- a/packaging/libzypp-bindings.spec +++ b/packaging/libzypp-bindings.spec @@ -15,6 +15,7 @@ Summary: Bindings for libzypp Group: Development/Sources Source: %{name}-%{version}.tar.gz Source1001: libzypp-bindings.manifest +Source1002: Fix_Swig_Source.patch BuildRequires: cmake gcc-c++ python-devel BuildRequires: swig @@ -27,6 +28,7 @@ This package provides bindings for libzypp, the library for package management. %prep %setup -q cp %{SOURCE1001} . +%{__patch} -p1 < %{SOURCE1002} %build mkdir build -- cgit v1.2.3