From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: "José Pekkarinen" <jose.pekkarinen@unikie.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 6/7] package/avocado: new package
Date: Tue, 26 Jul 2022 10:13:52 +0200 [thread overview]
Message-ID: <20220726101352.6c43eb92@windsurf> (raw)
In-Reply-To: <20211210141209.1812043-6-jose.pekkarinen@unikie.com>
Hello José,
On Fri, 10 Dec 2021 16:12:08 +0200
José Pekkarinen <jose.pekkarinen@unikie.com> wrote:
> This patch adds a basic package for
> avocado framework.
>
> Signed-off-by: José Pekkarinen <jose.pekkarinen@unikie.com>
I have finally applied this package, but with a number of changes. See below.
> diff --git a/package/avocado/Config.in b/package/avocado/Config.in
> new file mode 100644
> index 0000000000..402a639969
> --- /dev/null
> +++ b/package/avocado/Config.in
> @@ -0,0 +1,13 @@
> +config BR2_PACKAGE_AVOCADO
> + bool "avocado"
> + depends on !BR2_STATIC_LIBS # dlopen()
> + select BR2_PACKAGE_LIBFFI
> + select BR2_PACKAGE_PYTHON3
Since you select Python, you need to inherit all its dependencies:
+ depends on BR2_USE_WCHAR # python3
+ depends on BR2_USE_MMU # python3
+ depends on BR2_TOOLCHAIN_HAS_THREADS # python3
+ depends on !BR2_STATIC_LIBS # python3
Also, you were missing a number of modules part of the Python standard
library, and one external module, so I had to add:
+ select BR2_PACKAGE_PYTHON3_BZIP2
+ select BR2_PACKAGE_PYTHON3_PYEXPAT
+ select BR2_PACKAGE_PYTHON3_SQLITE
+ select BR2_PACKAGE_PYTHON3_XZ
+ select BR2_PACKAGE_PYTHON_SETUPTOOLS # runtime, pkg_resources
for Avocado to work properly.
> + help
> + Avocado is an automated testing suite containing
> + tests for various subsystems.
> +
> + https://avocado-framework.readthedocs.io/
> +
> +comment "avocado needs a toolchain with dynamic library support"
> + depends on BR2_STATIC_LIBS
You had forgotten BR2_USE_MMU here, and this had to be updated
according to the dependencies:
+comment "avocado needs a toolchain w/ wchar, threads, dynamic library"
+ depends on BR2_USE_MMU
+ depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
> diff --git a/package/avocado/avocado.hash b/package/avocado/avocado.hash
> new file mode 100644
> index 0000000000..257ee5d5ae
> --- /dev/null
> +++ b/package/avocado/avocado.hash
> @@ -0,0 +1,4 @@
> +# From https://github.com/avocado-framework/avocado/archive/refs/tags
This page does not exist.
> +sha256 b7a35552cd0f0d8e4b3aa4bb7009ce9e474a40c1cd111698ed03da90d71a2f4b 93.0.tar.gz
> +# Locally computed
> +sha256 680ce56e9c4043826f0f1420935d2453ea3ddacd1582cb6f1cef26c1077fcc93 LICENSE
> diff --git a/package/avocado/avocado.mk b/package/avocado/avocado.mk
> new file mode 100644
> index 0000000000..8474fa48c8
> --- /dev/null
> +++ b/package/avocado/avocado.mk
> @@ -0,0 +1,14 @@
> +################################################################################
> +#
> +# avocado-framework
> +#
> +################################################################################
> +
> +AVOCADO_VERSION = 93.0
I have updated to version 98.0
> +AVOCADO_SOURCE = $(AVOCADO_VERSION).tar.gz
> +AVOCADO_SITE = https://github.com/avocado-framework/avocado/archive/refs/tags
And here replaced both of those lines by:
+AVOCADO_SITE = $(call github,avocado-framework,avocado,$(AVOCADO_VERSION))
> +AVOCADO_SETUP_TYPE = setuptools
> +AVOCADO_LICENSE = Apache-2.0
And now I realize this is wrong... the license is not Apache-2.0, but
GPL-2.0. I forgot to check this, I will commit a follow-up patch.
Another thing I did is add a runtime test for Avocado, in
support/testing/tests/package/test_avocado.py
Thanks for your contribution!
Thomas Petazzoni
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2022-07-26 8:14 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-10 14:12 [Buildroot] [PATCH 1/7] package/opensc: new package José Pekkarinen
2021-12-10 14:12 ` [Buildroot] [PATCH 2/7] package/minijail: " José Pekkarinen
2021-12-10 14:48 ` Giulio Benetti
2021-12-10 18:15 ` Arnout Vandecappelle
2021-12-10 20:26 ` Giulio Benetti
2021-12-11 8:30 ` Arnout Vandecappelle
2021-12-11 11:53 ` Giulio Benetti
2021-12-10 19:57 ` Yann E. MORIN
2022-01-05 20:41 ` Thomas Petazzoni
2022-01-12 14:15 ` José Pekkarinen
2022-01-12 14:51 ` Thomas Petazzoni
2022-01-12 15:08 ` José Pekkarinen
2022-01-12 16:00 ` Thomas Petazzoni
2022-01-13 5:12 ` José Pekkarinen
2021-12-10 14:12 ` [Buildroot] [PATCH 3/7] package/bmx7: " José Pekkarinen
2021-12-10 14:52 ` Giulio Benetti
2021-12-10 20:07 ` Yann E. MORIN
2022-01-05 22:23 ` Thomas Petazzoni
2022-01-10 5:36 ` José Pekkarinen
2021-12-10 14:12 ` [Buildroot] [PATCH 4/7] package/alfred: " José Pekkarinen
2021-12-10 14:54 ` Giulio Benetti
2022-01-05 22:43 ` Thomas Petazzoni
2021-12-10 14:12 ` [Buildroot] [PATCH 5/7] package/aexpect: " José Pekkarinen
2021-12-10 14:56 ` Giulio Benetti
2021-12-10 20:11 ` Yann E. MORIN
2021-12-11 8:43 ` Arnout Vandecappelle
2021-12-11 9:17 ` Yann E. MORIN
2022-01-06 8:40 ` Thomas Petazzoni
2021-12-10 14:12 ` [Buildroot] [PATCH 6/7] package/avocado: " José Pekkarinen
2021-12-10 14:57 ` Giulio Benetti
2022-07-26 8:13 ` Thomas Petazzoni via buildroot [this message]
2021-12-10 14:12 ` [Buildroot] [PATCH 7/7] package/avocado-vt: " José Pekkarinen
2021-12-10 15:00 ` Giulio Benetti
2022-07-26 8:21 ` Thomas Petazzoni via buildroot
2022-07-28 6:07 ` José Pekkarinen via buildroot
2021-12-10 14:32 ` [Buildroot] [PATCH 1/7] package/opensc: " Giulio Benetti
2021-12-10 17:34 ` Yann E. MORIN
2021-12-10 14:49 ` Giulio Benetti
2021-12-10 17:06 ` Yann E. MORIN
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=20220726101352.6c43eb92@windsurf \
--to=buildroot@buildroot.org \
--cc=jose.pekkarinen@unikie.com \
--cc=thomas.petazzoni@bootlin.com \
/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.