From: Julien Viard de Galbert <julien@vdg.name>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] dieharder: new package
Date: Sat, 14 Jan 2017 14:37:30 +0100 [thread overview]
Message-ID: <20170114133730.GA11642@vdg.name> (raw)
In-Reply-To: <e3682b0f-7f5c-6b00-06d7-36a72e31a8f9@gmail.com>
On Fri, Jan 13, 2017 at 07:19:21PM +0100, Romain Naour wrote:
> Hello Julien,
>
Hello Romain !
> Le 12/01/2017 ? 23:23, Julien Viard de Galbert a ?crit :
[...]
> > index 0000000..4e2dd08
> > --- /dev/null
> > +++ b/package/dieharder/0001-do-not-use-includedir-as-include-search-path-for-bui.patch
> > @@ -0,0 +1,57 @@
> > +From 691fd9bde5dce4a4da071a120b76c6eb95abb3a6 Mon Sep 17 00:00:00 2001
> > +From: Julien Viard de Galbert <julien@vdg.name>
> > +Date: Sun, 17 May 2015 15:04:54 +0200
> > +Subject: [PATCH 1/4] do not use includedir as include search path for build
>
> Please add a small patch description and your SoB line here.
>
> http://nightly.buildroot.org/manual.html#_format_and_licensing_of_the_package_patches
>
Ok, will do, sorry I missed that.
[...]
> > diff --git a/package/dieharder/Config.in b/package/dieharder/Config.in
> > new file mode 100644
> > index 0000000..0288b82
> > --- /dev/null
> > +++ b/package/dieharder/Config.in
> > @@ -0,0 +1,10 @@
> > +config BR2_PACKAGE_DIEHARDER
> > + bool "dieharder"
> > + select BR2_PACKAGE_GSL
> > + select BR2_PACKAGE_LIBTOOL
>
> This add libtool for the target.
> It seems you only need host-libtool so you can remove this line.
>
Right, thanks !
[...]
> > diff --git a/package/dieharder/dieharder.mk b/package/dieharder/dieharder.mk
> > new file mode 100644
> > index 0000000..cc1a359
> > --- /dev/null
> > +++ b/package/dieharder/dieharder.mk
> > @@ -0,0 +1,40 @@
> > +################################################################################
> > +#
> > +# dieharder
> > +#
> > +################################################################################
> > +
> > +DIEHARDER_VERSION = 3.31.1
> > +DIEHARDER_SITE = http://www.phy.duke.edu/~rgb/General/dieharder
>
> I'm a bit worried about the maintenance of this tool, this version was released
> the 14-Oct-2011. But ok since it still build with gcc6 :)
>
Well yes... but I don't think there are alternatives for the job...
> > +DIEHARDER_SOURCE = dieharder-$(DIEHARDER_VERSION).tgz
> > +DIEHARDER_STRIP_COMPONENTS = 2
> > +DIEHARDER_LICENSE = GPLv2 with beverage clause
> > +DIEHARDER_LICENSE_FILES = $(DIEHARDER_SUBDIR)/COPYING
>
> DIEHARDER_SUBDIR is not set here, I guess you wanted to use dieharder/COPYING.
> Actually there are two COPYING files, one in the root of the source directory
> and another one in dieharder/COPYING
Yes that's a leftover of switching to use
DIEHARDER_STRIP_COMPONENTS = 2
Again thanks for catching it.
I'll prepare and test a new version before submitting it.
Best Regards,
Julien
>
> Otherwise looks good.
>
> Best regards,
> Romain
>
> > +DIEHARDER_DEPENDENCIES = gsl host-libtool
> > +
> > +# Fix m4 links to points to the ones in staging (provided by libtool hence
> > +# the patch dependency).
> > +define DIEHARDER_POST_PATCH_FIXUP
> > + for m in $(@D)/m4/*; do \
> > + l=$$(readlink $$m) ;\
> > + rm $$m ;\
> > + ln -s $(HOST_DIR)$$l $$m ;\
> > + done
> > +endef
> > +DIEHARDER_POST_PATCH_HOOKS += DIEHARDER_POST_PATCH_FIXUP
> > +
> > +# Ensure the libtool version is updated,
> > +# also make _CONF_ENV works instead of _CONF_OPTS for endiannes
> > +DIEHARDER_AUTORECONF = YES
> > +
> > +# fix endiannes detection
> > +ifeq ($(BR2_ENDIAN),"BIG")
> > +DIEHARDER_CONF_ENV = ac_cv_c_endian=big
> > +else
> > +DIEHARDER_CONF_ENV = ac_cv_c_endian=little
> > +endif
> > +
> > +# parallel build fail, disable it
> > +DIEHARDER_MAKE = $(MAKE1)
> > +
> > +$(eval $(autotools-package))
> >
next prev parent reply other threads:[~2017-01-14 13:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-12 22:23 [Buildroot] [PATCH 1/1] dieharder: new package Julien Viard de Galbert
2017-01-13 18:19 ` Romain Naour
2017-01-14 13:37 ` Julien Viard de Galbert [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-05-06 21:30 julien.viarddegalbert at openwide.fr
2015-05-06 21:55 ` Thomas Petazzoni
2015-05-06 22:59 ` Romain Naour
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170114133730.GA11642@vdg.name \
--to=julien@vdg.name \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox