[packages/bin86] - fix building on x86_64

hawk hawk at pld-linux.org
Sat Sep 29 15:55:15 CEST 2012


commit be23f2e5b8e490bcf0875587b4dd2a9ba4b2cb89
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Sat Sep 29 14:02:34 2012 +0000

    - fix building on x86_64

 bin86-x64.patch | 14 ++++++++++++++
 bin86.spec      |  6 +++++-
 2 files changed, 19 insertions(+), 1 deletion(-)
---
diff --git a/bin86.spec b/bin86.spec
index b00b666..b4f0172 100644
--- a/bin86.spec
+++ b/bin86.spec
@@ -7,11 +7,12 @@ Summary(pt_BR.UTF-8):	Assembler e Linker para modo real 80x86
 Summary(tr.UTF-8):	Gerçek kip 80x86 çeviricisi ve bağlayıcısı
 Name:		bin86
 Version:	0.16.18
-Release:	1
+Release:	2
 License:	GPL
 Group:		Development/Languages
 Source0:	http://www.debath.co.uk/dev86/%{name}-%{version}.tar.gz
 # Source0-md5:	914068fb649b93642d1cf21857b75699
+Patch0:		%{name}-x64.patch
 URL:		http://www.debath.co.uk/
 Obsoletes:	dev86
 ExclusiveArch:	%{ix86} %{x8664}
@@ -60,6 +61,9 @@ programlar, bu pakete gereksinim duyarlar.
 
 %prep
 %setup -q
+%ifarch %{x8664}
+%patch0 -p1
+%endif
 
 %build
 %{__make} \
diff --git a/bin86-x64.patch b/bin86-x64.patch
new file mode 100644
index 0000000..571dfd9
--- /dev/null
+++ b/bin86-x64.patch
@@ -0,0 +1,14 @@
+diff -ur bin86-0.16.18.orig/ld/x86_aout.h bin86-0.16.18/ld/x86_aout.h
+--- bin86-0.16.18.orig/ld/x86_aout.h	2003-01-28 22:17:14.000000000 +0000
++++ bin86-0.16.18/ld/x86_aout.h	2012-09-29 14:00:55.188509488 +0000
+@@ -13,7 +13,9 @@
+ typedef long Long;
+ #define __OUT_OK 1
+ #else
+-typedef char Long[4];
++#define __OUT_OK 1
++#include <sys/types.h>
++typedef int32_t Long;
+ #endif
+ 
+ struct	exec {			/* a.out header */
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bin86.git/commitdiff/be23f2e5b8e490bcf0875587b4dd2a9ba4b2cb89



More information about the pld-cvs-commit mailing list