package/kodi: fix definition of BR2_PACKAGE_KODI_ARCH_SUPPORTS
PATCH 1/1 package/kodi: fix definition of BR2_PACKAGE_KODI_ARCH_SUPPORTS
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
---
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.
--- package/kodi/Config.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
package/kodi/Config.in +3 -2
@@ -1,7 +1,8 @@ config BR2_PACKAGE_KODI_ARCH_SUPPORTS bool - default y if BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS - default y if BR2_PACKAGE_HOST_OPENJDK_BIN_ARCH_SUPPORTS + default y + depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS + depends on BR2_PACKAGE_HOST_OPENJDK_BIN_ARCH_SUPPORTS # i386: needs sse (see upstream PR 10351) depends on !(BR2_i386 && !BR2_X86_CPU_HAS_SSE) # m68k not supported upstream
Signature · 6 lines
2.55.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Julien Olivain via buildroot
AppliedQuoted 28 lines · Thomas Petazzoni via buildroot
The definition of
BR2_PACKAGE_KODI_ARCH_SUPPORTSis incorrect, it goes like this:bool
default y ifBR2_PACKAGE_FFMPEG_ARCH_SUPPORTSdefault y ifBR2_PACKAGE_HOST_OPENJDK_BIN_ARCH_SUPPORTSso it means it would be "y" if either
BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS*OR*BR2_PACKAGE_HOST_OPENJDK_BIN_ARCH_SUPPORTSis 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_SUPPORTSOr:
bool
default y ifBR2_PACKAGE_FFMPEG_ARCH_SUPPORTSdepends onBR2_PACKAGE_HOST_OPENJDK_BIN_ARCH_SUPPORTSBut we preferred:
Quoted 7 lines
bool
default y
depends onBR2_PACKAGE_FFMPEG_ARCH_SUPPORTSdepends onBR2_PACKAGE_HOST_OPENJDK_BIN_ARCH_SUPPORTSFixes b6a2f494290d85a26798564992ddd1ac46c1a48d ("package/kodi: depend on host-openjdk-bin instead of selecting BR2_NEEDS_HOST_JAVA")Signed-off-by Thomas Petazzoni <[email protected]>
Applied to master, thanks.
Quoted 4 lines
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
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot