[packages/cpuburn] - fix build on 64bit

arekm arekm at pld-linux.org
Mon Feb 18 11:19:44 CET 2013


commit c0763ab262f6abe0dbabcddaf1f90774bba68486
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Feb 18 11:19:42 2013 +0100

    - fix build on 64bit

 cpuburn-makefile.patch |  2 +-
 cpuburn-vars.patch     | 40 ++++++++++++++++++++++++++++++++++++++++
 cpuburn.spec           |  2 ++
 3 files changed, 43 insertions(+), 1 deletion(-)
---
diff --git a/cpuburn.spec b/cpuburn.spec
index 4cefa3c..1f4887d 100644
--- a/cpuburn.spec
+++ b/cpuburn.spec
@@ -8,6 +8,7 @@ Group:		Applications
 Source0:	http://pages.sbcglobal.net/redelm/%{name}_1_4_tar.gz
 # Source0-md5:	f9bb5ff68afb6ccfca11718c90bcab68
 Patch0:		%{name}-makefile.patch
+Patch1:		%{name}-vars.patch
 URL:		http://pages.sbcglobal.net/redelm/
 ExclusiveArch:	i486 i586 i686 athlon %{x8664}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -38,6 +39,7 @@ także trwałe uszkodzenia sprzętu. Używasz na własne ryzyko!!
 %prep
 %setup  -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__make} \
diff --git a/cpuburn-makefile.patch b/cpuburn-makefile.patch
index 7580d77..691d5cf 100644
--- a/cpuburn-makefile.patch
+++ b/cpuburn-makefile.patch
@@ -7,4 +7,4 @@
  all : burnP5 burnP6 burnK6 burnK7 burnBX burnMMX
  .S:
 -	gcc -s -nostdlib -o $@ $<
-+	$(CC) $(CFLAGS) -s -nostdlib -o $@ $<
++	$(CC) $(CFLAGS) -s -m32 -nostdlib -o $@ $<
diff --git a/cpuburn-vars.patch b/cpuburn-vars.patch
new file mode 100644
index 0000000..3e8b666
--- /dev/null
+++ b/cpuburn-vars.patch
@@ -0,0 +1,40 @@
+--- cpuburn-1.4a.orig/burnK7.S
++++ cpuburn-1.4a/burnK7.S
+@@ -74,6 +74,7 @@ int_exit:
+ 	push	%eax
+ 	int	$0x80
+ #endif
++.data				# Data allocation
+ .align 32,0
+ 	.fill 64
+ half:	.long 0x7fffffff,0
+--- cpuburn-1.4a.orig/burnP5.S
++++ cpuburn-1.4a/burnP5.S
+@@ -77,6 +77,7 @@ crunch:
+ #else
+ 	int	$0x80
+ #endif
++.data				# Data allocation
+ .align 32,0
+ half:	.long 0xffffffff,0x3fdfffff
+ one:	.long 0xffffffff,0x3fefffff
+--- cpuburn-1.4a.orig/burnP6.S
++++ cpuburn-1.4a/burnP6.S
+@@ -69,6 +69,7 @@ int_exit:			# error abort
+ 	push	%eax		# *BSD syscall
+ 	int	$0x80
+ #endif
++.data				# Data allocation
+ .align 32,0
+ half:	.long 0x7fffffff,0
+ e:	.long 0xffffffff,0x3fdfffff
+--- cpuburn-1.4a.orig/burnK6.S
++++ cpuburn-1.4a/burnK6.S
+@@ -68,6 +68,7 @@ int_exit:
+ 	push	%eax
+ 	int	$0x80
+ #endif
++.data				# Data allocation
+ .align 32,0
+ half:	.long 0x7fffffff,0
+ e:	.long 0xffffffff,0x3fdfffff
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cpuburn.git/commitdiff/c0763ab262f6abe0dbabcddaf1f90774bba68486



More information about the pld-cvs-commit mailing list