From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Danilo Bargen <mail@dbrgn.ch>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/tealdeer: exclude unsupported targets
Date: Thu, 8 Dec 2022 14:16:47 +0100 [thread overview]
Message-ID: <20221208141647.0ca26b3c@windsurf> (raw)
In-Reply-To: <20221208110247.7002c3ca@c3po>
Hello Danilo,
On Thu, 8 Dec 2022 11:02:47 +0100
Danilo Bargen <mail@dbrgn.ch> wrote:
> Not all target architectures are supported by the "ring" dependency.
>
> Signed-off-by: Danilo Bargen <mail@dbrgn.ch>
Thanks for working on this. Your patch is badly line-wrapped by your
e-mail client. You can disable wrapping in Claws Mail, or better you
can use "git send-email". See below for another comment.
> diff --git a/package/tealdeer/Config.in b/package/tealdeer/Config.in
> index 96ed81614b..a61a59f3ee 100644
> --- a/package/tealdeer/Config.in
> +++ b/package/tealdeer/Config.in
> @@ -1,6 +1,14 @@
> config BR2_PACKAGE_TEALDEER
> bool "tealdeer"
> depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
> + # Crypto dependency (ring) not available for mips:
> https://github.com/briansmith/ring/issues/562
> + depends on !(BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el)
> + # Crypto dependency (ring) not available for PowerPC:
> https://github.com/briansmith/ring/issues/389
> + depends on !(BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le)
> + # Crypto dependency (ring) not available for Sparc:
> https://github.com/briansmith/ring/issues/1512
> + depends on !(BR2_sparc || BR2_sparc64)
> + # Crypto dependency (ring) not available for s390x:
> https://github.com/briansmith/ring/commit/4d2e1a8fb80398f7c3c0137ea8fdd512f82d37a0
> + depends on !BR2_s390x
We normally handle this kind of situation using a
BR2_PACKAGE_TEALDEER_ARCH_SUPPORTS variable, like this:
config BR2_PACKAGE_TEALDEER_ARCH_SUPPORTS
bool
default y if ...
depends on ...
config BR2_PACKAGE_TEALDEER
bool "tealdeer"
depends on BR2_PACKAGE_TEALDEER_ARCH_SUPPORTS
Also, in this kind of case, we prefer to use "positive" logic: instead
of excluding the architectures that are not supported, it is better to
list the ones that are supported.
Side note: overall, if you take a step back, it is absolutely
mind-blowing that a simple application showing tldr pages has a
dependency on architecture-specific things. There is really no sane
reason to have such dependencies, but apparently the Rust ecosystem is
not completely sane... :-/
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
next prev parent reply other threads:[~2022-12-08 13:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-08 10:02 [Buildroot] [PATCH 1/1] package/tealdeer: exclude unsupported targets Danilo Bargen
2022-12-08 13:16 ` Thomas Petazzoni via buildroot [this message]
2022-12-08 15:48 ` Danilo Bargen
2022-12-11 17:17 ` Yann E. MORIN
2022-12-11 18:52 ` Danilo Bargen
2022-12-11 16:37 ` Yann E. MORIN
2022-12-21 15:41 ` Peter Korsgaard
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=20221208141647.0ca26b3c@windsurf \
--to=buildroot@buildroot.org \
--cc=mail@dbrgn.ch \
--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