All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Olivain via buildroot <buildroot@buildroot.org>
To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: buildroot@buildroot.org, Bernd Kuhls <bernd@kuhls.net>
Subject: Re: [Buildroot] [PATCH] package/kodi: fix definition of BR2_PACKAGE_KODI_ARCH_SUPPORTS
Date: Sun, 13 Sep 2026 17:49:45 +0200	[thread overview]
Message-ID: <229c9689aded324da35ea41abcee1fe2@free.fr> (raw)
In-Reply-To: <20260913121629.1650246-1-thomas.petazzoni@bootlin.com>

On 13/09/2026 14:16, Thomas Petazzoni via buildroot wrote:
> The definition of BR2_PACKAGE_KODI_ARCH_SUPPORTS is incorrect, it
> goes like this:
> 
>  	bool
> 	default y if BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
> 	default y if BR2_PACKAGE_HOST_OPENJDK_BIN_ARCH_SUPPORTS
> 
> so it means it would be "y" if either
> BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS *OR*
> BR2_PACKAGE_HOST_OPENJDK_BIN_ARCH_SUPPORTS is true. While clearly what
> we need is for both to be true: ffmpeg should be available for the
> target architecture, and openjdk should be available for the host
> architecture.
> 
> One option was to change to:
> 
>  	bool
> 	default y if BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS && 
> BR2_PACKAGE_HOST_OPENJDK_BIN_ARCH_SUPPORTS
> 
> Or:
> 
>  	bool
> 	default y if BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
> 	depends on BR2_PACKAGE_HOST_OPENJDK_BIN_ARCH_SUPPORTS
> 
> But we preferred:
> 
>  	bool
> 	default y
> 	depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
> 	depends on BR2_PACKAGE_HOST_OPENJDK_BIN_ARCH_SUPPORTS
> 
> Fixes: b6a2f494290d85a26798564992ddd1ac46c1a48d ("package/kodi: depend 
> on host-openjdk-bin instead of selecting BR2_NEEDS_HOST_JAVA")
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>

Applied to master, thanks.

> Note: I have no strong opinion on the different options to express
> this "AND" dependency. So if people don't like the choice I've made in
> this commit, I'm happy to change to one of other options proposed in
> teh commit log.

I applied the patch because:
1. there is no policy defined,
2. it fixes a dependency issue, and
3. I'm fine with the way you wrote it.

If we decide a policy, we'll realign all _ARCH_SUPPORTS.

Best regards,

Julien.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      reply	other threads:[~2026-09-13 15:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-13 12:16 [Buildroot] [PATCH] package/kodi: fix definition of BR2_PACKAGE_KODI_ARCH_SUPPORTS Thomas Petazzoni via buildroot
2026-09-13 15:49 ` Julien Olivain via buildroot [this message]

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=229c9689aded324da35ea41abcee1fe2@free.fr \
    --to=buildroot@buildroot.org \
    --cc=bernd@kuhls.net \
    --cc=ju.o@free.fr \
    --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.