Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Fiona Klute via buildroot <buildroot@buildroot.org>
Cc: Angelo Compagnucci <angelo.compagnucci@gmail.com>,
	James Hilliard <james.hilliard1@gmail.com>,
	Fiona Klute <fiona.klute@gmx.de>, Asaf Kahlon <asafka7@gmail.com>
Subject: Re: [Buildroot] [PATCH v3 2/4] package/python-pyasynchat: new package
Date: Tue, 9 Jul 2024 21:44:31 +0200	[thread overview]
Message-ID: <20240709214431.7007d4d7@windsurf> (raw)
In-Reply-To: <20240709101841.1145134-3-fiona.klute@gmx.de>

Hello Fiona,

On Tue,  9 Jul 2024 12:18:39 +0200
Fiona Klute via buildroot <buildroot@buildroot.org> wrote:

> From: "Fiona Klute (WIWA)" <fiona.klute@gmx.de>
> 
> pyasynchat is a compatibility package that provides the asynchat
> module removed from the standard library in Python 3.12. It is needed
> to support fail2ban without a bundled copy and should be removed as
> soon as nothing in Buildroot depends on it.
> 
> Signed-off-by: Fiona Klute (WIWA) <fiona.klute@gmx.de>

I've also applied with some changes, see below.

> ---
>  package/Config.in                                |  1 +
>  package/python-pyasynchat/Config.in              | 11 +++++++++++
>  package/python-pyasynchat/python-pyasynchat.hash |  5 +++++
>  package/python-pyasynchat/python-pyasynchat.mk   | 15 +++++++++++++++
>  4 files changed, 32 insertions(+)

Added an entry in the DEVELOPERS file.


> diff --git a/package/python-pyasynchat/Config.in b/package/python-pyasynchat/Config.in
> new file mode 100644
> index 0000000000..bf11cc5b39
> --- /dev/null
> +++ b/package/python-pyasynchat/Config.in
> @@ -0,0 +1,11 @@
> +config BR2_PACKAGE_PYTHON_PYASYNCHAT
> +	bool "python-pyasynchat"
> +	select BR2_PACKAGE_PYTHON_PYASYNCORE # runtime

So here you declare this as a runtime dependency, which I believe is
correct.

> diff --git a/package/python-pyasynchat/python-pyasynchat.mk b/package/python-pyasynchat/python-pyasynchat.mk
> new file mode 100644
> index 0000000000..8bd87af5c4
> --- /dev/null
> +++ b/package/python-pyasynchat/python-pyasynchat.mk
> @@ -0,0 +1,15 @@
> +################################################################################
> +#
> +# python-pyasynchat
> +#
> +################################################################################
> +
> +PYTHON_PYASYNCHAT_VERSION = 1.0.4
> +PYTHON_PYASYNCHAT_SOURCE = pyasynchat-$(PYTHON_PYASYNCHAT_VERSION).tar.gz
> +PYTHON_PYASYNCHAT_SITE = https://github.com/simonrob/pyasynchat/releases/download/v$(PYTHON_PYASYNCHAT_VERSION)
> +PYTHON_PYASYNCHAT_SETUP_TYPE = setuptools
> +PYTHON_PYASYNCHAT_LICENSE = Python Software Foundation License

Same nit: PSF-2.0 license.

> +PYTHON_PYASYNCHAT_LICENSE_FILES = LICENSE
> +PYTHON_PYASYNCHAT_DEPENDENCIES = python-pyasyncore

And here, you put python-pyasyncore as a build-time dependency, which
is inconsistent with the comment you wrote in the Config.in file. I
assumed it is a runtime dependency, like is the case for the vast
majority of dependencies between Python packages, so I just dropped
this line.

Thanks!

Thomas
-- 
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

  reply	other threads:[~2024-07-09 19:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-09 10:18 [Buildroot] [PATCH v3 0/4] Update fail2ban to 1.1.0, add dependencies Fiona Klute via buildroot
2024-07-09 10:18 ` [Buildroot] [PATCH v3 1/4] package/python-pyasyncore: new package Fiona Klute via buildroot
2024-07-09 19:42   ` Thomas Petazzoni via buildroot
2024-07-09 10:18 ` [Buildroot] [PATCH v3 2/4] package/python-pyasynchat: " Fiona Klute via buildroot
2024-07-09 19:44   ` Thomas Petazzoni via buildroot [this message]
2024-07-09 10:18 ` [Buildroot] [PATCH v3 3/4] package/fail2ban: bump version to 1.1.0 Fiona Klute via buildroot
2024-07-09 19:45   ` Thomas Petazzoni via buildroot
2024-07-09 19:52     ` Angelo Compagnucci
2024-07-09 20:18       ` Thomas Petazzoni via buildroot
2024-07-12 14:08   ` Arnout Vandecappelle via buildroot
2024-07-09 10:18 ` [Buildroot] [PATCH v3 4/4] package/fail2ban: fix sshd filter with OpenSSH 9.8 Fiona Klute via buildroot
2024-07-12 14:01   ` Arnout Vandecappelle via buildroot

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=20240709214431.7007d4d7@windsurf \
    --to=buildroot@buildroot.org \
    --cc=angelo.compagnucci@gmail.com \
    --cc=asafka7@gmail.com \
    --cc=fiona.klute@gmx.de \
    --cc=james.hilliard1@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox