ports/146579: [patch] Make math/dieharder compile again

Lucius Windschuh lwindschuh at gmail.com
Fri May 14 12:30:06 UTC 2010


>Number:         146579
>Category:       ports
>Synopsis:       [patch] Make math/dieharder compile again
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 14 12:30:05 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Lucius Windschuh
>Release:        9-CURRENT (i386)
>Organization:
>Environment:
FreeBSD t400 9.0-CURRENT FreeBSD 9.0-CURRENT #160 r207913P: Tue May 11 14:59:59 CEST 2010     root at t400:/usr/obj/usr/src/sys/CURRENT  i386

>Description:
math/dieharder is marked BROKEN on i386, amd64 and sparc64.
It shouldn't compile on any platform except amd64 because it uses amd64 assembler unconditionally in libdieharder/skein_block_ref.c.
The attached patch simply comments out the affected function, as it does not seem to be used at all (dieharder compiles and runs fine without it)!
This was tested on i386 by me.

Could somebody please test if dieharder compiles also on ia64 and sparc64 and, if it works, remove the BROKEN tag from the Makefile?
>How-To-Repeat:
cd /usr/ports/math/dieharder && make
(on non-amd64)
>Fix:
Put the attached file into math/dieharder/files/patch-libdieharder__skein_block_ref.c and remove the BROKEN mark from math/dieharder/Makefile

Patch attached with submission follows:

--- libdieharder/skein_block_ref.c.orig	2010-05-14 14:08:11.000000000 +0200
+++ libdieharder/skein_block_ref.c	2010-05-14 14:07:52.000000000 +0200
@@ -123,7 +123,7 @@
 
 typedef unsigned long long uint64;
 
-#if 1
+#if 0
 uint64 timingAdjust = 200;
 
 uint64 time() {


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



More information about the freebsd-ports-bugs mailing list