* [Buildroot] [Bug 16009] New: 'select' does not work with 'choice'
@ 2024-03-27 15:55 bugzilla
2024-03-27 21:04 ` [Buildroot] [Bug 16009] " bugzilla
2024-03-28 7:50 ` bugzilla
0 siblings, 2 replies; 3+ messages in thread
From: bugzilla @ 2024-03-27 15:55 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=16009
Bug ID: 16009
Summary: 'select' does not work with 'choice'
Product: buildroot
Version: 2024.02.1
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned@buildroot.uclibc.org
Reporter: achpile@gmail.com
CC: buildroot@uclibc.org
Target Milestone: ---
If we have something like this in Config.in
choice
prompt "TEST"
config BR2_TEST_1
bool "1"
config BR2_TEST_2
bool "2"
endchoice
config BR2_TEST_BOOL_D1
bool "Depends on 1"
depends on BR2_TEST_1
config BR2_TEST_BOOL_S1
bool "Selects 1"
select BR2_TEST_1
config BR2_TEST_BOOL_D2
bool "Depends on 2"
depends on BR2_TEST_2
config BR2_TEST_BOOL_S2
bool "Selects 2"
select BR2_TEST_2
Then selecting BR2_TEST_BOOL_S1 or BR2_TEST_BOOL_S2 does not select BR2_TEST_1
or BR2_TEST_2. I am not sure if it is expected behavior but seems like a bug to
me.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [Bug 16009] 'select' does not work with 'choice'
2024-03-27 15:55 [Buildroot] [Bug 16009] New: 'select' does not work with 'choice' bugzilla
@ 2024-03-27 21:04 ` bugzilla
2024-03-28 7:50 ` bugzilla
1 sibling, 0 replies; 3+ messages in thread
From: bugzilla @ 2024-03-27 21:04 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=16009
Arnout Vandecappelle <arnout@mind.be> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|NEW |RESOLVED
--- Comment #1 from Arnout Vandecappelle <arnout@mind.be> ---
This is just how Kconfig works: it is not possible to "select" an option in a
choice. We don't develelop Kconfig ourselves, we simply inherit it from the
Linux kernel, so we are not in a position to fix this issue.
I think the reason it is this way is that there is nothing stopping two configs
to select two separate options from the choice. In your example, if both
BR2_TEST_BOOL_S1 and BR2_TEST_BOOL_S2 are set to y, then both BR2_TEST_1 and
BR2_TEST_2 would be selected. I think to fix this issue, you would need to put
a full-fledged boolean resolver behind it.
If you want a workaround for this limitation, take a look at openssl. It has a
choice between libopenssl and libressl, but there is also the symbol
BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL. If that symbol is selected, the libressl
choice is no longer available, so it is forced to openssl. Note that it is only
possible to force it in one direction that way (so there is no
BR2_PACKAGE_OPENSSL_FORCE_LIBRESSL) - otherwise, you'd be back in the same
situation as your example; Kconfig reports this as a circular dependency.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [Bug 16009] 'select' does not work with 'choice'
2024-03-27 15:55 [Buildroot] [Bug 16009] New: 'select' does not work with 'choice' bugzilla
2024-03-27 21:04 ` [Buildroot] [Bug 16009] " bugzilla
@ 2024-03-28 7:50 ` bugzilla
1 sibling, 0 replies; 3+ messages in thread
From: bugzilla @ 2024-03-28 7:50 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=16009
--- Comment #2 from achpile@gmail.com ---
(In reply to Arnout Vandecappelle from comment #1)
Oh, sorry. I didn't know that it is Kconfig and that it is separate from
buildroot.
Big thanks for such a great explanation!
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-28 7:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-27 15:55 [Buildroot] [Bug 16009] New: 'select' does not work with 'choice' bugzilla
2024-03-27 21:04 ` [Buildroot] [Bug 16009] " bugzilla
2024-03-28 7:50 ` bugzilla
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.