15
0

Accepting request 129070 from devel:languages:python

- don't stutter static on BigEndian (forwarded request 129055 from k0da)

OBS-URL: https://build.opensuse.org/request/show/129070
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-distorm3?expand=0&rev=3
This commit is contained in:
Stephan Kulow
2012-07-30 07:37:37 +00:00
committed by Git OBS Bridge
3 changed files with 47 additions and 1 deletions

View File

@@ -0,0 +1,39 @@
From 9d4942f5fae759d2eb3c1d2e4a68236ede60a843 Mon Sep 17 00:00:00 2001
From: Dinar Valeev <dvaleev@suse.com>
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 <http://www.gnu.org/licenses/>
#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

View File

@@ -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

View File

@@ -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