ports/119348: Patch to make sysutils/cpuburn build on AMD64

Geoffrey Giesemann geoffwa at idkfa.ath.cx
Sat Jan 5 01:30:03 UTC 2008


>Number:         119348
>Category:       ports
>Synopsis:       Patch to make sysutils/cpuburn build on AMD64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 05 01:30:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Geoffrey Giesemann
>Release:        FreeBSD 7.0-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD idkfa.local 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Sun Dec 23 14:34:56 UTC 2007 geoffwa at idkfa.local:/usr/obj/usr/src/sys/GENERIC amd64

>Description:
sysutils/cpuburn only builds on i386 a the moment.  A small modification to the port allows it to work on amd64 as well.

>How-To-Repeat:

>Fix:

Building cpuburn explicitly for a 32bit environment using -m32 works.

All of the burn programs run successfully on my (amd64) box.

--- cpuburn.patch begins here ---
--- Makefile.orig	2008-01-05 00:52:17.000000000 +0000
+++ Makefile	2008-01-05 00:54:45.000000000 +0000
@@ -16,7 +16,7 @@
 COMMENT=	CPU/memory stress testing utilities
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
-ONLY_FOR_ARCHS=	i386
+ONLY_FOR_ARCHS=	i386 amd64
 
 PORTDOCS=	README Design
 CPUS=		BX K6 K7 MMX P5 P6
@@ -24,7 +24,7 @@
 
 do-build:
 .for CPU in ${CPUS}
-	${CC} -s -nostdlib -o ${WRKSRC}/burn${CPU} ${WRKSRC}/burn${CPU}.S
+	${CC} -m32 -s -nostdlib -o ${WRKSRC}/burn${CPU} ${WRKSRC}/burn${CPU}.S
 .endfor
 
 do-install:
--- cpuburn.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list