ports/142752: [PATCH]math/dieharder: update to 3.29.4beta

bf bf1783 at gmail.com
Tue Jan 12 19:50:02 UTC 2010


>Number:         142752
>Category:       ports
>Synopsis:       [PATCH]math/dieharder: update to 3.29.4beta
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 12 19:50:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     bf
>Release:        9-CURRENT amd64
>Organization:
-
>Environment:
>Description:

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN dieharder.orig/Makefile dieharder/Makefile
--- dieharder.orig/Makefile	2010-01-12 14:22:07.000000000 -0500
+++ dieharder/Makefile	2009-12-27 15:03:19.000000000 -0500
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	dieharder
-PORTVERSION=	2.28.1
-PORTREVISION=	1
+DISTVERSION=	3.29.4beta
 CATEGORIES=	math
 MASTER_SITES=	http://www.phy.duke.edu/~rgb/General/dieharder/
 EXTRACT_SUFX=	.tgz
@@ -18,7 +17,9 @@
 LIB_DEPENDS=	gsl:${PORTSDIR}/math/gsl
 
 USE_AUTOTOOLS=	aclocal:110 autoheader:262 libtool:22
-CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
 USE_LDCONFIG=	yes
 MAN1=		dieharder.1
 MAN3=		libdieharder.3
@@ -33,4 +34,7 @@
 		-e '/^LIBTOOL=/s^\$$(top_builddir)/libtool^${LIBTOOL}^g' \
 			${WRKSRC}/configure
 
+test: build
+	${WRKSRC}/dieharder/dieharder -a
+
 .include <bsd.port.mk>
diff -ruN dieharder.orig/distinfo dieharder/distinfo
--- dieharder.orig/distinfo	2010-01-12 14:22:07.000000000 -0500
+++ dieharder/distinfo	2009-12-27 09:17:20.000000000 -0500
@@ -1,3 +1,3 @@
-MD5 (dieharder-2.28.1.tgz) = 47819cd609648f506a40ec9110c4463c
-SHA256 (dieharder-2.28.1.tgz) = 748ec4716e64de38807e126f10335e45136fa789056e9f647a6bf73698205286
-SIZE (dieharder-2.28.1.tgz) = 766985
+MD5 (dieharder-3.29.4beta.tgz) = eba447e1918d9ef3d70da11f14149a21
+SHA256 (dieharder-3.29.4beta.tgz) = 7bdaf3f942908c5dd3063abd79d8e1ad242b59f6e6bf3f87c0d96434e3e113ff
+SIZE (dieharder-3.29.4beta.tgz) = 995969
diff -ruN dieharder.orig/files/patch-dieharder__output.c dieharder/files/patch-dieharder__output.c
--- dieharder.orig/files/patch-dieharder__output.c	1969-12-31 19:00:00.000000000 -0500
+++ dieharder/files/patch-dieharder__output.c	2009-12-27 14:32:58.000000000 -0500
@@ -0,0 +1,10 @@
+--- dieharder/output.c.orig	2009-12-27 13:32:54.000000000 -0500
++++ dieharder/output.c	2009-12-27 14:32:35.000000000 -0500
+@@ -614,6 +614,7 @@
+  printf("\n");
+  printf("#=============================================================================#\n");
+  fflush(stdout);
++ free(bin);
+ 
+ }
+ 
diff -ruN dieharder.orig/files/patch-dieharder_dieharder.1 dieharder/files/patch-dieharder_dieharder.1
--- dieharder.orig/files/patch-dieharder_dieharder.1	2010-01-12 14:22:07.000000000 -0500
+++ dieharder/files/patch-dieharder_dieharder.1	1969-12-31 19:00:00.000000000 -0500
@@ -1,54 +0,0 @@
---- dieharder/dieharder.1.orig	2008-09-08 08:37:19.000000000 -0400
-+++ dieharder/dieharder.1	2008-11-14 20:05:01.794803058 -0500
-@@ -1,6 +1,6 @@
- .\" $Id: dieharder.1 425 2008-08-19 10:01:36Z rgb $
--.TH DieHarder 1 "Copyright 2004 Robert G. Brown" "DieHarder"
-+.TH dieharder 1 "Copyright 2004 Robert G. Brown" "DieHarder"
- .SH NAME
--rand_rate \- A testing and benchmarking tool for GSL random number 
-+dieharder \- A testing and benchmarking tool for GSL random number 
- generators
- 
-@@ -13,5 +13,5 @@
-           [-v verbose flag] [-x xvalue] [-y yvalue] [-z zvalue]
- 
--.SH DieHarder OPTIONS
-+.SH OPTIONS
- 
- .TP
-@@ -40,6 +40,6 @@
- -l list all known tests.
- .TP
---n ntuple - set ntuple length for tests on short bit strings that permit
--the length to be varied (e.g. rgb bitdist).
-+-n ntuple - set ntuple length for tests on short bit strings that 
-+permit the length to be varied (e.g. rgb bitdist).
- .TP
- -p count - sets the number of p-value samples per test (default 100).
-@@ -93,5 +93,4 @@
- 
- .SH DESCRIPTION
--.B DieHarder
- This is the current snapshot of the dieharder random number
- tester.  It encapsulates all of the Gnu Scientific Library random number
-@@ -123,5 +122,5 @@
- 
- .SH P-VALUES AND THE NULL HYPOTHESIS
--.B DieHarder returns "p-values".  To understand what a p-value is and
-+dieharder returns "p-values".  To understand what a p-value is and
- how to use it, it is essential to understand the
- .I null hypothesis.
-@@ -405,5 +404,5 @@
- as prototypes, and can likely be submitted to the GSL for inclusion if
- they pass the tests as well or better than the generators that are already
--there.  Dieharder is designed to (ultimately) be a
-+there.  dieharder is designed to (ultimately) be a
- .I very convenient tool
- for testing new software RNGs.
-@@ -535,5 +534,5 @@
- 
- .SH PUBLICATION RULES
--.B DieHarder
-+dieharder
- is entirely original code and can be modified and used at will by any 
- user, provided that:
diff -ruN dieharder.orig/files/patch-libdieharder__countx.c dieharder/files/patch-libdieharder__countx.c
--- dieharder.orig/files/patch-libdieharder__countx.c	1969-12-31 19:00:00.000000000 -0500
+++ dieharder/files/patch-libdieharder__countx.c	2009-12-27 13:37:18.000000000 -0500
@@ -0,0 +1,10 @@
+--- libdieharder/countx.c.orig	2009-12-27 13:35:32.000000000 -0500
++++ libdieharder/countx.c	2009-12-27 13:36:18.000000000 -0500
+@@ -219,6 +219,7 @@
+   for (i=0; i<=MAXBITS; ++i) {
+     if (ftab[i] > BUCKETS) {
+       fprintf(stderr, "ftab[%lu]=%lu needs a bigger LOGBUCKETS\n", i, ftab[i]);
++      free(data);
+       return 1;
+     }
+   }
diff -ruN dieharder.orig/files/patch-libdieharder__histogram.c dieharder/files/patch-libdieharder__histogram.c
--- dieharder.orig/files/patch-libdieharder__histogram.c	1969-12-31 19:00:00.000000000 -0500
+++ dieharder/files/patch-libdieharder__histogram.c	2009-12-27 14:31:46.000000000 -0500
@@ -0,0 +1,10 @@
+--- libdieharder/histogram.c.orig	2009-12-27 13:37:57.000000000 -0500
++++ libdieharder/histogram.c	2009-12-27 14:31:11.000000000 -0500
+@@ -95,6 +95,7 @@
+  for(i=0;i<nbins;i++) printf("%4.1f|",(i+1)*binscale);
+  printf("\n");
+  printf("#==================================================================\n");
++ free(bin);
+ 
+ }
+ 
diff -ruN dieharder.orig/pkg-plist dieharder/pkg-plist
--- dieharder.orig/pkg-plist	2010-01-12 14:24:13.000000000 -0500
+++ dieharder/pkg-plist	2009-12-27 14:57:25.000000000 -0500
@@ -20,12 +20,15 @@
 include/dieharder/diehard_runs.h
 include/dieharder/diehard_squeeze.h
 include/dieharder/diehard_sums.h
-include/dieharder/dieharder_types.h
+include/dieharder/dieharder_rng_types.h
+include/dieharder/dieharder_test_types.h
 include/dieharder/libdieharder.h
 include/dieharder/marsaglia_tsang_gcd.h
 include/dieharder/marsaglia_tsang_gorilla.h
 include/dieharder/parse.h
 include/dieharder/rgb_bitdist.h
+include/dieharder/rgb_kstest_test.h
+include/dieharder/rgb_lagged_sums.h
 include/dieharder/rgb_lmn.h
 include/dieharder/rgb_minimum_distance.h
 include/dieharder/rgb_operm.h
@@ -41,5 +44,5 @@
 lib/libdieharder.a
 lib/libdieharder.la
 lib/libdieharder.so
-lib/libdieharder.so.2
+lib/libdieharder.so.3
 @dirrm include/dieharder


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



More information about the freebsd-ports-bugs mailing list