From fb443e4863de6d82a897eaea7ced16bcd837eda5600d3123900285bc86e5527f Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Fri, 27 Jul 2012 09:26:26 +0000 Subject: [PATCH] Accepting request 129055 from home:k0da:ppc - don't stutter static on BigEndian OBS-URL: https://build.opensuse.org/request/show/129055 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-distorm3?expand=0&rev=5 --- 0001-don-t-stutter-static-on-BigEndian.patch | 39 ++++++++++++++++++++ python-distorm3.changes | 5 +++ python-distorm3.spec | 4 +- 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 0001-don-t-stutter-static-on-BigEndian.patch diff --git a/0001-don-t-stutter-static-on-BigEndian.patch b/0001-don-t-stutter-static-on-BigEndian.patch new file mode 100644 index 0000000..c5ce956 --- /dev/null +++ b/0001-don-t-stutter-static-on-BigEndian.patch @@ -0,0 +1,39 @@ +From 9d4942f5fae759d2eb3c1d2e4a68236ede60a843 Mon Sep 17 00:00:00 2001 +From: Dinar Valeev +Date: Fri, 27 Jul 2012 10:35:19 +0200 +Subject: [PATCH] don't stutter static on BigEndian + +--- + src/config.h | 2 +- + src/prefix.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/config.h b/src/config.h +index 7727168..3184cd4 100644 +--- a/src/config.h ++++ b/src/config.h +@@ -58,7 +58,7 @@ along with this program. If not, see + + #define _DLLEXPORT_ + #define _FASTCALL_ +-#define _INLINE_ static ++#define _INLINE_ + /* GCC ignores this directive... */ + /*#define _FASTCALL_ __attribute__((__fastcall__))*/ + +diff --git a/src/prefix.c b/src/prefix.c +index 12bfb11..fff5d76 100644 +--- a/src/prefix.c ++++ b/src/prefix.c +@@ -128,7 +128,7 @@ uint16_t prefixes_set_unused_mask(_PrefixState* ps) + * Mark a prefix as unused, and bookkeep where we last saw this same type, + * because in the future we might want to disable it too. + */ +-_INLINE_ void prefixes_track_unused(_PrefixState* ps, int index, _PrefixIndexer pi) ++static void prefixes_track_unused(_PrefixState* ps, int index, _PrefixIndexer pi) + { + prefixes_ignore(ps, pi); + /* Book-keep the current index for this type. */ +-- +1.6.0.2 + diff --git a/python-distorm3.changes b/python-distorm3.changes index 4c46ec3..001f866 100644 --- a/python-distorm3.changes +++ b/python-distorm3.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jul 27 08:40:20 UTC 2012 - dvaleev@suse.com + +- don't stutter static on BigEndian + ------------------------------------------------------------------- Mon Feb 27 08:34:56 UTC 2012 - saschpe@suse.de diff --git a/python-distorm3.spec b/python-distorm3.spec index 2ac166f..7d30932 100644 --- a/python-distorm3.spec +++ b/python-distorm3.spec @@ -23,6 +23,7 @@ Summary: Powerful Disassembler Library For x86/AMD64 Url: http://code.google.com/p/distorm/ Group: Development/Libraries/Python Source: distorm3-1.0.zip +Patch0: 0001-don-t-stutter-static-on-BigEndian.patch BuildRequires: pkg-config BuildRequires: python-devel > 2.5 BuildRequires: unzip @@ -37,13 +38,14 @@ No more parsing strings! - diStorm3 is really a decomposer, which means it takes %prep %setup -q -n distorm3-1.0 +%patch0 -p1 %build CFLAGS="%{optflags}" python setup.py build %install python setup.py install --root=%{buildroot} --prefix=%{_prefix} -%ifarch x86_64 +%ifarch x86_64 ppc64 install -d %{buildroot}%{python_sitearch} mv %{buildroot}%{python_sitelib}/* %{buildroot}%{python_sitearch} %endif