diff options
author | JinWang An <jinwang.an@samsung.com> | 2022-03-23 16:26:27 +0900 |
---|---|---|
committer | JinWang An <jinwang.an@samsung.com> | 2022-03-23 16:26:58 +0900 |
commit | b7d6e97665e9daa8c501ccfa02b7eaff383ca36a (patch) | |
tree | 16bc6afedefc8746fc6054a17bb7aea8a283d0de | |
parent | f2f1a310c855e9a9d19b1e3d1e7737784dc6ce7b (diff) | |
download | libzypp-bindings-accepted/tizen_7.0_unified.tar.gz libzypp-bindings-accepted/tizen_7.0_unified.tar.bz2 libzypp-bindings-accepted/tizen_7.0_unified.zip |
Fix swig source to resolve build errortizen_9.0_m2_releasetizen_8.0_m2_releasetizen_7.0_m2_releasesubmit/tizen/20220323.033330accepted/tizen/unified/20220324.134422accepted/tizen/9.0/unified/20241030.232521accepted/tizen/8.0/unified/20231005.095152accepted/tizen/7.0/unified/hotfix/20221116.111104accepted/tizen/7.0/unified/20221110.060745tizen_9.0tizen_8.0tizen_7.0_hotfixtizen_7.0accepted/tizen_unifiedaccepted/tizen_9.0_unifiedaccepted/tizen_8.0_unifiedaccepted/tizen_7.0_unified_hotfixaccepted/tizen_7.0_unified
Change-Id: I5ad4b53844c9ecedab4f52a1bdc26c9b04e63031
Signed-off-by: JinWang An <jinwang.an@samsung.com>
-rw-r--r-- | packaging/Fix_Swig_Source.patch | 9 | ||||
-rw-r--r-- | packaging/libzypp-bindings.spec | 2 |
2 files changed, 11 insertions, 0 deletions
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 <zypp/ResObject.h> + + /** 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 |