]> git.pld-linux.org Git - packages/bin86.git/commitdiff
- fix building on x86_64 auto/ti/bin86-0.16.18-2
authorMarcin Krol <hawk@tld-linux.org>
Sat, 29 Sep 2012 14:02:34 +0000 (14:02 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Sat, 29 Sep 2012 14:02:34 +0000 (14:02 +0000)
bin86-x64.patch [new file with mode: 0644]
bin86.spec

diff --git a/bin86-x64.patch b/bin86-x64.patch
new file mode 100644 (file)
index 0000000..571dfd9
--- /dev/null
@@ -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 */
index b00b66692148cc0c543612fd78812b3f5cda4c19..b4f0172289597b04aea8739ebc2cf967d7bfd3e7 100644 (file)
@@ -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} \
This page took 0.053363 seconds and 4 git commands to generate.