All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/3] atf: new package
Date: Thu, 04 Jun 2015 16:29:56 -0400	[thread overview]
Message-ID: <5570B544.2060502@savoirfairelinux.com> (raw)
In-Reply-To: <556F7747.4060408@mind.be>

Hi Arnout.

On 06/03/2015 05:53 PM, Arnout Vandecappelle wrote:
> On 06/03/15 20:47, Sebastien Bourdelin wrote:
>> ATF, or Automated Testing Framework, is a collection of libraries to
>> write test programs in C, C++ and POSIX shell.
>>
>> https://github.com/jmmv/atf
>>
>> Signed-off-by: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com>
>> ---
>>  package/Config.in     |  1 +
>>  package/atf/Config.in | 11 +++++++++++
>>  package/atf/atf.hash  |  2 ++
>>  package/atf/atf.mk    | 21 +++++++++++++++++++++
>>  4 files changed, 35 insertions(+)
>>  create mode 100644 package/atf/Config.in
>>  create mode 100644 package/atf/atf.hash
>>  create mode 100644 package/atf/atf.mk
>>
>> diff --git a/package/Config.in b/package/Config.in
>> index e0c2e2a..78ed223 100644
>> --- a/package/Config.in
>> +++ b/package/Config.in
>> @@ -57,6 +57,7 @@ endif
>>  endmenu
>>  
>>  menu "Debugging, profiling and benchmark"
>> +	source "package/atf/Config.in"
>>  	source "package/blktrace/Config.in"
>>  	source "package/bonnie/Config.in"
>>  	source "package/cache-calibrator/Config.in"
>> diff --git a/package/atf/Config.in b/package/atf/Config.in
>> new file mode 100644
>> index 0000000..59712ab
>> --- /dev/null
>> +++ b/package/atf/Config.in
>> @@ -0,0 +1,11 @@
>> +config BR2_PACKAGE_ATF
>> +	bool "atf"
>> +	depends on BR2_INSTALL_LIBSTDCPP
>> +	help
>> +	  ATF, or Automated Testing Framework, is a collection of
>> +	  libraries to write test programs in C, C++ and POSIX shell.
>> +
>> +	  https://github.com/jmmv/atf
>> +
>> +comment "atf needs a toolchain w/ C++"
>> +	depends on !BR2_INSTALL_LIBSTDCPP
>> diff --git a/package/atf/atf.hash b/package/atf/atf.hash
>> new file mode 100644
>> index 0000000..cd929b8
>> --- /dev/null
>> +++ b/package/atf/atf.hash
>> @@ -0,0 +1,2 @@
>> +# Locally computed
>> +sha256 3677cf957d7f574835b8bdd385984ba928d5695b3ff28f958e4227f810483ab7 atf-0.20.tar.gz
>> diff --git a/package/atf/atf.mk b/package/atf/atf.mk
>> new file mode 100644
>> index 0000000..af691f5
>> --- /dev/null
>> +++ b/package/atf/atf.mk
>> @@ -0,0 +1,21 @@
>> +################################################################################
>> +#
>> +# atf
>> +#
>> +################################################################################
>> +
>> +ATF_VERSION = 0.20
>  Why not use 0.21? Seems to be bugfixes only.
You are right, thanks!

>> +ATF_SOURCE = atf-$(ATF_VERSION).tar.gz
>> +ATF_SITE = https://github.com/jmmv/atf/archive
>  There's an uploaded archive at
> https://github.com/jmmv/atf/releases/download/atf-0.21/atf-0.21.tar.gz
> (same for 0.20). Then you don't need to AUTORECONF. Well, except that it has the
> unreleased libtool beta which means that our patch doesn't apply so you need to
> to autoreconf after all. But anyway, we prefer the uploaded archive.
>
>  I you use the automatic archive (i.e. the URL you gave), then you can't have a
> hash file. Also, you should use the github helper.
Ok, i will go for the uploaded archive, do you prefer a comment above
the AUTORECONF to explain it's still required and when it could be
remove, a TODO in fact ?

>> +ATF_DEPENDENCIES = host-pkgconf
>  As far as I can see, pkg-config is not used at build time, it's just some of
> the tests that need it.
I think you are right, it seems to work without pkgconf in my buildroot

>> +ATF_AUTORECONF = YES
>> +ATF_INSTALL_STAGING = YES
>> +ATF_LICENSE = BSD
>  BSD-2c, BSD-3c
Ok.

>> +ATF_LICENSE_FILES = COPYING
>> +ATF_CONF_ENV = \
>> +	kyua_cv_getopt_plus=yes \
>> +	kyua_cv_attribute_noreturn=yes \
>> +	kyua_cv_getcwd_works=yes \
>> +	ATF_SHELL=/bin/sh # default is /usr/bin/bash
>  I think the default is actually the first shell it can find in the host path,
> which in _your_ case happens to be /usr/bin/bash.
You are right.

>  Anyway, putting a comment at the end of the line is a bit dangerous, so I'd
> rather put this above ATF_CONF_ENV:
Right again :)

> # ATF_SHELL defaults to the host's bash
> ATF_CONF_ENV = \
> 	...
>
>
>  Regards,
>  Arnout
>
>> +
>> +$(eval $(autotools-package))
>>

Regards,
Sebastien.

  reply	other threads:[~2015-06-04 20:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-03 18:47 [Buildroot] [PATCH 0/3] kyua: new package and dependencies Sebastien Bourdelin
2015-06-03 18:47 ` [Buildroot] [PATCH 1/3] atf: new package Sebastien Bourdelin
2015-06-03 21:53   ` Arnout Vandecappelle
2015-06-04 20:29     ` Sebastien Bourdelin [this message]
2015-06-05 20:37       ` Arnout Vandecappelle
2015-06-03 18:47 ` [Buildroot] [PATCH 2/3] lutok: " Sebastien Bourdelin
2015-06-03 22:17   ` Arnout Vandecappelle
2015-06-04 20:31     ` Sebastien Bourdelin
2015-06-03 18:47 ` [Buildroot] [PATCH 3/3] kyua: " Sebastien Bourdelin
2015-06-03 22:28   ` Arnout Vandecappelle
2015-06-04 20:31     ` Sebastien Bourdelin

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=5570B544.2060502@savoirfairelinux.com \
    --to=sebastien.bourdelin@savoirfairelinux.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.