-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wpad-mesh-wolfssl gets automatically deselected in menuconfig due to a bug in hostapd Makefile #125
Comments
The report on OpenWrt side is here: https://bugs.openwrt.org/index.php?do=details&task_id=3441 |
Additional scenario that makes this issue more annoying:
This means that every time I modify something in the menuconfig, I have to select again the wpad-mesh-wolfssl package. @aparcar @spiccinini @dangowrt any insight? |
Hey Ilario I can confirm this, had the same struggle but didn't look deeper into that. Thanks for addressing this to OpenWRT Team! |
I looked into this and is caused by how the conflicting packages lists are defined, incrementally across the Makefile. |
In short what happens is that the definition of two variables is evolving through the Makefile (as implemented in openwrt/openwrt@3838b16 by @mkresin) and this creates an asymmetry that ends up in the menuconfig misbehaviour.
@mkresin @nbd168 do you think it's possible to find another way to solve the "conflicts hell"? |
Another message revealing this issue: menuconfig says:
I agree that the current solution is clean but does not work well enough, so an alternative I can think of is defining a list of all the "providers" and then using |
Add each variant to the matching PROVIDERS variables after evaluating the respective hostapd*, wpad* and wpa* variant. Each package providing the same feature will automatically conflict with all prior packages providing the same feature. This way we can handle the conflicts automatically without introducing recursive dependencies. Signed-off-by: Mathias Kresin <[email protected]>
I am reporting this also on OpenWrt side, as it looks like a menuconfig bug rather than a suboptimal way on how to use it.
Selecting at the same time wpad-basic and wpad-mesh-wolfssl causes a clash of files installation in the compilation process. For this reason the deselection of wpad-basic has been suggested in 6e08d3e
wpad-mesh-wolfssl can be selected in menuconfig and wpad-basic deselected, until here everything ok.
Then when closing and opening again menuconfig, wpad-mesh-wolfssl is not visible
.
But when wpad-basic (or something else) is selected, wpad-mesh-wolfssl appears and is actually selected (as it should be).
The wpad-mesh-wolfssl package is categorized as being inside wpad-mesh-openssl, which makes no sense.
And all of this happens even if the definitions of wpad-basic, wpad-mesh-openssl and wpad-mesh-wolfssl are substantially identical (extracted from here):
This looks like a bug in some of the Config.in files used by make menuconfig.
Just to support this, I exchanged the order in which wpad-mesh-openssl and wpad-mesh-wolfssl are defined in
tmp/.config-package.in
and now wpad-mesh-wolfssl and wpad-mesh-openssl are at the same hierarchical level. Makes no sense.The text was updated successfully, but these errors were encountered: