Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212674 - app-crypt/dieharder (new ebuild)
Summary: app-crypt/dieharder (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal enhancement with 1 vote (vote)
Assignee: Default Assignee for New Packages
URL: http://www.phy.duke.edu/~rgb/General/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-08 03:40 UTC by Andreas Källberg
Modified: 2010-12-21 15:06 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The ebuild (dieharder-2.24.7.ebuild,1.04 KB, text/plain)
2008-03-08 03:44 UTC, Andreas Källberg
Details
dieharder-2.24.7-autogen.patch (dieharder-2.24.7-autogen.patch,412 bytes, patch)
2008-03-08 03:48 UTC, Andreas Källberg
Details | Diff
dieharder-2.24.7-dieharder-Makefile.patch (dieharder-2.24.7-dieharder-Makefile.patch,808 bytes, patch)
2008-03-08 03:51 UTC, Andreas Källberg
Details | Diff
dieharder-2.24.7-libdieharder-Makefile.patch (dieharder-2.24.7-libdieharder-Makefile.patch,1.54 KB, patch)
2008-03-08 03:55 UTC, Andreas Källberg
Details | Diff
dieharder-2.24.7.ebuild (dieharder-2.24.7.ebuild,728 bytes, text/plain)
2008-03-08 11:36 UTC, Alon Bar-Lev (RETIRED)
Details
dieharder-2.24.7-build.patch (dieharder-2.24.7-build.patch,3.59 KB, patch)
2008-03-08 11:37 UTC, Alon Bar-Lev (RETIRED)
Details | Diff
dieharder-2.24.7.ebuild (dieharder-2.24.7.ebuild,772 bytes, text/plain)
2008-03-08 11:46 UTC, Alon Bar-Lev (RETIRED)
Details
dieharder-2.28.1.ebuild (dieharder-2.28.1.ebuild,2.62 KB, text/plain)
2009-07-06 16:41 UTC, Ira Casper
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Källberg 2008-03-08 03:40:48 UTC
Dieharder is an advanced suite for testing the randomness of RNGs (Random Number Generator).

It is mentioned in the gentoo-wiki article on "Generating Better Random Numbers" (http://gentoo-wiki.com/Generating_Better_Random_Numbers)

PS. This is my first ebuild ;)
Comment 1 Andreas Källberg 2008-03-08 03:44:38 UTC
Created attachment 145520 [details]
The ebuild
Comment 2 Andreas Källberg 2008-03-08 03:48:22 UTC
Created attachment 145522 [details, diff]
dieharder-2.24.7-autogen.patch
Comment 3 Andreas Källberg 2008-03-08 03:51:36 UTC
Created attachment 145523 [details, diff]
dieharder-2.24.7-dieharder-Makefile.patch
Comment 4 Andreas Källberg 2008-03-08 03:55:26 UTC
Created attachment 145525 [details, diff]
dieharder-2.24.7-libdieharder-Makefile.patch
Comment 5 Alon Bar-Lev (RETIRED) gentoo-dev 2008-03-08 11:36:47 UTC
Created attachment 145543 [details]
dieharder-2.24.7.ebuild

Updated ebuild.
Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2008-03-08 11:37:07 UTC
Created attachment 145545 [details, diff]
dieharder-2.24.7-build.patch
Comment 7 Alon Bar-Lev (RETIRED) gentoo-dev 2008-03-08 11:41:48 UTC
Hello,

The build system of this package is a mess!

If upstream is responsive, please send him the build patch and see what his reaction.

Also I fail to understand why he does not use automake to build his package properly. Using automake will make things much simpler and easier.

In the mean time you have a better ebuild :)
Comment 8 Alon Bar-Lev (RETIRED) gentoo-dev 2008-03-08 11:46:23 UTC
Created attachment 145547 [details]
dieharder-2.24.7.ebuild

Fix doc
Comment 9 Andreas Källberg 2008-03-08 17:49:44 UTC
(In reply to comment #7)
>Also I fail to understand why he does not use automake to build his package
properly.

He does; this is the contents of autogen.sh:

--Begin autogen.sh--
#! /bin/sh

# Run this to generate all the auto-generated files needed by the GNU
# configure program

# libtoolize --automake

autoheader
aclocal
rm -f Makefile Makefile.in dieharder/Makefile dieharder/Makefile.in \
   libdieharder/Makefile libdieharder/Makefile.in
automake --add-missing --gnu
autoconf

# Might as well run this
./configure --prefix=/usr
echo "./configure --prefix=/usr completed.  Rerun with different"
echo "--prefix if you want to put it someplace else.  Otherwise"
echo "you should be able to make, make install, or make rpm."
--End of autogen.sh--

Btw. I think there is a reason for using -O3 in the makefile; this is a number-crunching application after all...
I am not sure about the standard Gentoo way of recommending special cflags for  a specific ebuild.

Note2. The license is GPL-2 with an extra clause (see COPYING). The license is named "GPL-Beverage". I am not sure what to do about it.

Thanks for the help :)

Comment 10 Alon Bar-Lev (RETIRED) gentoo-dev 2008-03-09 06:50:16 UTC
The fact you have a tool in the dependency does not mean that it is used (correctly), Look at these for example how automake makes build simpler:
http://ntfs-3g.cvs.sourceforge.net/ntfs-3g/ntfs-3g/libntfs-3g/Makefile.am?revision=1.4&view=markup
http://ntfs-3g.cvs.sourceforge.net/ntfs-3g/ntfs-3g/src/Makefile.am?revision=1.9&view=markup

Gentoo sets CFLAGS as per /etc/make.conf.
Comment 11 Ira Casper 2009-07-06 16:41:17 UTC
Created attachment 196922 [details]
dieharder-2.28.1.ebuild

This is my first ebuild as well. No patch required for it as far as I can tell. It compiles on my system, with only a few minor changes from it being a completely minimalist build.

The ebuild uses -j1 for the emake, as if it compiles in parallel it will have problems involving compiling it's own libraries which it may try to link. eautoreconf is also needed as it used an older version of automake.
Comment 12 Dane Smith (RETIRED) gentoo-dev 2010-07-25 21:42:55 UTC
Should show up in Sunrise in the very near future.
Comment 13 Dane Smith (RETIRED) gentoo-dev 2010-12-21 15:06:33 UTC
I have picked up maintainership for this in Portage.

*dieharder-2.28.1 (21 Dec 2010)

  21 Dec 2010; Dane Smith <c1pher@gentoo.org> +dieharder-2.28.1.ebuild,
  +files/dieharder-2.28.1-qafixes.patch, +metadata.xml:
  New ebuild for dieharder wrt bug 212674. Moved from the Sunrise overlay.
  New
  patch addresses some upstream QA warnings. Submitting upstream.

Thanks to everyone who contributed ebuilds! Will show up in the main tree shortly. Enjoy!