Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v6] dieharder: new package
Date: Tue, 24 Jan 2017 11:40:06 +1300	[thread overview]
Message-ID: <20170124114006.67ab47db@free-electrons.com> (raw)
In-Reply-To: <1485087282-26931-1-git-send-email-julien@vdg.name>

Hello,

Thanks a lot for all your iterations. It looks mostly good, but I have
a few questions, see below.

On Sun, 22 Jan 2017 13:14:42 +0100, Julien Viard de Galbert wrote:

> diff --git a/DEVELOPERS b/DEVELOPERS
> index 91e82ac..75c8e71 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -868,6 +868,9 @@ F:	package/qt5/
>  N:	Julien Floret <julien.floret@6wind.com>
>  F:	package/lldpd/
>  
> +N:	Julien Viard de Galbert <julien@vdg.name>
> +F:	package/dieharder/
> +

This should be in a separate patch, so that backporting the new package
to an older version of Buildroot doesn't cause a conflict in the
DEVELOPERS file.

> diff --git a/package/dieharder/0002-Do-not-install-includes.patch b/package/dieharder/0002-Do-not-install-includes.patch
> new file mode 100644
> index 0000000..6ece2a9
> --- /dev/null
> +++ b/package/dieharder/0002-Do-not-install-includes.patch
> @@ -0,0 +1,28 @@
> +From 9ee8200a6dec6aca7f4f37c46ca95ac1cb38306c Mon Sep 17 00:00:00 2001
> +From: Julien Viard de Galbert <julien@vdg.name>
> +Date: Sat, 14 Jan 2017 14:08:07 +0100
> +Subject: [PATCH] Do not install includes
> +
> +We don't want include files on the target
> +
> +Signed-off-by: Julien Viard de Galbert <julien@vdg.name>

Why is this patch needed?

Header files are automatically removed from the target filesystem by
the target-finalize logic in the main Buildroot Makefile. So there is
no need to add special code in packages to remove header files.

Regarding the other patches, could you submit them to the upstream
project? They all make sense for upstream I believe.

> +DIEHARDER_VERSION = 3.31.1
> +DIEHARDER_SITE = http://www.phy.duke.edu/~rgb/General/dieharder
> +DIEHARDER_SOURCE = dieharder-$(DIEHARDER_VERSION).tgz
> +DIEHARDER_STRIP_COMPONENTS = 2
> +DIEHARDER_LICENSE = GPLv2 with beverage clause

Interesting license :)

> +DIEHARDER_LICENSE_FILES = COPYING
> +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

This looks weird. I haven't looked at the package in details though.
Could you explain a bit more what's going on.

> +
> +# Ensure the libtool version is updated,

Why?

> +# also make _CONF_ENV works instead of _CONF_OPTS for endiannes

I don't see what this means. _CONF_ENV works regardless of whether
AUTORECONF is YES or NO.

> +DIEHARDER_AUTORECONF = YES
> +
> +# fix endiannes detection

endianness with two 's' at the end, see
https://en.wikipedia.org/wiki/Endianness.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

  parent reply	other threads:[~2017-01-23 22:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-22 12:14 [Buildroot] [PATCH v6] dieharder: new package Julien Viard de Galbert
2017-01-22 13:06 ` Romain Naour
2017-01-23 22:40 ` Thomas Petazzoni [this message]
2017-02-06 20:56   ` Julien Viard de Galbert

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=20170124114006.67ab47db@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --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