package/wpa_supplicant: fix WPA_SUPPLICANT_CONFIGURE_CMDS
PATCH 1/1 package/wpa_supplicant: fix WPA_SUPPLICANT_CONFIGURE_CMDS
When "BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACE=n" and "BR2_PACKAGE_WPA_SUPPLICANT_DBUS=y" are set, "CONFIG_CTRL_IFACE_DBUS_NEW" will be enabled by
"-e 's/^#\(CONFIG_CTRL_IFACE_DBUS_NEW\)/\1/'" first, and then disabled by "-e 's/^\(CONFIG_CTRL_IFACE\)/#\1/'".
Fix it by adding an "=" at the end.
--- package/wpa_supplicant/wpa_supplicant.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
package/wpa_supplicant/wpa_supplicant.mk +2 -2
@@ -185,8 +185,8 @@ endif define WPA_SUPPLICANT_CONFIGURE_CMDS cp $(@D)/wpa_supplicant/defconfig $(WPA_SUPPLICANT_CONFIG) - sed -i $(patsubst %,-e 's/^#\(%\)/\1/',$(WPA_SUPPLICANT_CONFIG_ENABLE)) \ - $(patsubst %,-e 's/^\(%\)/#\1/',$(WPA_SUPPLICANT_CONFIG_DISABLE)) \ + sed -i $(patsubst %,-e 's/^#\(%=\)/\1/',$(WPA_SUPPLICANT_CONFIG_ENABLE)) \ + $(patsubst %,-e 's/^\(%=\)/#\1/',$(WPA_SUPPLICANT_CONFIG_DISABLE)) \ $(patsubst %,-e '1i%=y',$(WPA_SUPPLICANT_CONFIG_SET)) \ $(patsubst %,-e %,$(WPA_SUPPLICANT_CONFIG_EDITS)) \ $(WPA_SUPPLICANT_CONFIG)
Signature · 1 line
2.25.1
PATCH 1/1 package/wpa_supplicant: fix WPA_SUPPLICANT_CONFIGURE_CMDS
Quoted 18 lines · Tian Yuanhao via buildroot
When "BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACE=n" and "BR2_PACKAGE_WPA_SUPPLICANT_DBUS=y" are set, "
CONFIG_CTRL_IFACE_DBUS_NEW" will be enabled by
"-e 's/^#\(CONFIG_CTRL_IFACE_DBUS_NEW\)/\1/'" first, and then disabled by "-e 's/^\(CONFIG_CTRL_IFACE\)/#\1/'".Fix it by adding an "=" at the end.
Signed-off-by Tian Yuanhao <[email protected]>--- package/wpa_supplicant/wpa_supplicant.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)package/wpa_supplicant/wpa_supplicant.mk +0
-0
package/wpa_supplicant/wpa_supplicant.mk endif · line 192
Quoted 10 lines
package/wpa_supplicant/wpa_supplicant.mk +2
-2@@ -185,8 +185,8 @@ endif define WPA_SUPPLICANT_CONFIGURE_CMDS cp $(@D)/wpa_supplicant/defconfig $(WPA_SUPPLICANT_CONFIG) - sed -i $(patsubst %,-e 's/^#\(%\)/\1/',$(WPA_SUPPLICANT_CONFIG_ENABLE)) \ - $(patsubst %,-e 's/^\(%\)/#\1/',$(WPA_SUPPLICANT_CONFIG_DISABLE)) \ + sed -i $(patsubst %,-e 's/^#\(%=\)/\1/',$(WPA_SUPPLICANT_CONFIG_ENABLE)) \ + $(patsubst %,-e 's/^\(%=\)/#\1/',$(WPA_SUPPLICANT_CONFIG_DISABLE)) \ $(patsubst %,-e '1i%=y',$(WPA_SUPPLICANT_CONFIG_SET)) \ $(patsubst %,-e %,$(WPA_SUPPLICANT_CONFIG_EDITS)) \ $(WPA_SUPPLICANT_CONFIG)
Unfortunately, this behavior is expected so that all CONFIG_EAP_* options can be disabled with CONFIG_DISABLE += CONFIG_EAP
I don't see any immediate solution, other that to stop relying on this behavior and list every wpa_supplicant option explicitly, or drop the BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACE option.
PATCH v2 1/1 package/wpa_supplicant: fix wrong config
In reply to Tian YuanhaoWhen BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACE is not set and BR2_PACKAGE_WPA_SUPPLICANT_DBUS=y, CONFIG_CTRL_IFACE_DBUS_NEW will be enabled by 's/^#\(CONFIG_CTRL_IFACE_DBUS_NEW\)/\1/' first, and then disabled by 's/^\(CONFIG_CTRL_IFACE\)/#\1/'.
v2:
- fix it by adding '\>' after CONFIG_CTRL_IFACE
- disable CONFIG_CTRL_IFACE_DBUS_INTRO when not enabled
--- package/wpa_supplicant/wpa_supplicant.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
package/wpa_supplicant/wpa_supplicant.mk +3 -1
@@ -135,7 +135,7 @@ WPA_SUPPLICANT_CONFIG_EDITS += 's/\#\(CONFIG_TLS=\).*/\1internal/' endif ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACE),) -WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_CTRL_IFACE +WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_CTRL_IFACE\> endif ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_DBUS),y)
@@ -152,6 +152,8 @@ endef ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_DBUS_INTROSPECTION),y) WPA_SUPPLICANT_CONFIG_ENABLE += CONFIG_CTRL_IFACE_DBUS_INTRO +else +WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_CTRL_IFACE_DBUS_INTRO endif else
Signature · 1 line
2.25.1
PATCH v2 1/1 package/wpa_supplicant: fix wrong config
Hi Nicolas,
In my opinion, the two options CONFIG_CTRL_IFACE and CONFIG_CTRL_IFACE_DBUS_NEW are not directly related except for their similar names. It should be correct now. Could you please test it?
Regards,
Yuanhao
Quoted 9 lines · Tian Yuanhao
When
BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACEis not set and BR2_PACKAGE_WPA_SUPPLICANT_DBUS=y,CONFIG_CTRL_IFACE_DBUS_NEWwill be enabled by 's/^#\(CONFIG_CTRL_IFACE_DBUS_NEW\)/\1/' first, and then disabled by 's/^\(CONFIG_CTRL_IFACE\)/#\1/'.v2:
?? - fix it by adding '\>' afterCONFIG_CTRL_IFACE?? - disableCONFIG_CTRL_IFACE_DBUS_INTROwhen not enabled
Review
Quoted 6 lines
Signed-off-by Tian Yuanhao <[email protected]>---
?package/wpa_supplicant/wpa_supplicant.mk| 4 +++- ? 1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0
b/package/wpa_supplicant/wpa_supplicant.mk
package/wpa_supplicant/wpa_supplicant.mk WPA_SUPPLICANT_CONFIG_EDITS +=
Quoted 4 lines
index
c82db43c1c..c861db3d12100644package/wpa_supplicant/wpa_supplicant.mk +0
-0@@ -135,7 +135,7 @@ WPA_SUPPLICANT_CONFIG_EDITS +=
's/\#\(CONFIG_TLS=\).*/\1internal/'
Quoted 18 lines
? endif
? ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACE),)
package/wpa_supplicant/wpa_supplicant.mk +1
-1-WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_CTRL_IFACE +WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_CTRL_IFACE\>? endif
? ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_DBUS),y)
package/wpa_supplicant/wpa_supplicant.mk +0
-0@@ -152,6 +152,8 @@ endef ? ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_DBUS_INTROSPECTION),y)?
WPA_SUPPLICANT_CONFIG_ENABLE+=CONFIG_CTRL_IFACE_DBUS_INTROpackage/wpa_supplicant/wpa_supplicant.mk +2
-0+else +WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_CTRL_IFACE_DBUS_INTRO? endif
? else
PATCH v2 1/1 package/wpa_supplicant: fix wrong config
Quoted 5 lines · Tian Yuanhao
Hi Nicolas,
In my opinion, the two options
CONFIG_CTRL_IFACEandCONFIG_CTRL_IFACE_DBUS_NEWare not directly related except for their similar names. It should be correct now. Could you please test it?
It works, you can add my Tested-By.
However, the maintainers will probably ask you to :
- Put the changelog below the "---" line, so that it does not appear in the commit message
- Maybe do one change at a time. The fix to disable CTRL_IFACE and the fix to disable CTRL_IFACE_DBUS_INTRO are two separate things that maybe should be in two patches.
Quoted 16 lines · Tian Yuanhao
Quoted 15 lines
When
BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACEis not set and BR2_PACKAGE_WPA_SUPPLICANT_DBUS=y,CONFIG_CTRL_IFACE_DBUS_NEWwill be enabled by 's/^#\(CONFIG_CTRL_IFACE_DBUS_NEW\)/\1/' first, and then disabled by 's/^\(CONFIG_CTRL_IFACE\)/#\1/'.v2:
?? - fix it by adding '\>' afterCONFIG_CTRL_IFACE?? - disableCONFIG_CTRL_IFACE_DBUS_INTROwhen not enabledSigned-off-by Tian Yuanhao <[email protected]>---
?package/wpa_supplicant/wpa_supplicant.mk| 4 +++- ? 1 file changed, 3 insertions(+), 1 deletion(-)(quoted diff) +0
-0
PATCH v3 1/1 package/wpa_supplicant: handle CONFIG_CTRL_IFACE carefully
In reply to Tian YuanhaoWhen BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACE is not set and BR2_PACKAGE_WPA_SUPPLICANT_DBUS=y, CONFIG_CTRL_IFACE_DBUS_NEW will be enabled by 's/^#\(CONFIG_CTRL_IFACE_DBUS_NEW\)/\1/' first, and then disabled by 's/^\(CONFIG_CTRL_IFACE\)/#\1/'.
CONFIG_CTRL_IFACE_DBUS_NEW does not depend on CONFIG_CTRL_IFACE, except for using it as a prefix. Fix this wrong behavior by adding '\>' after CONFIG_CTRL_IFACE.
---
v1 -> v2:
- only handle CONFIG_CTRL_IFACE
v2 -> v3:
- rewrite commit message
--- package/wpa_supplicant/wpa_supplicant.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/wpa_supplicant/wpa_supplicant.mk +1 -1
@@ -135,7 +135,7 @@ WPA_SUPPLICANT_CONFIG_EDITS += 's/\#\(CONFIG_TLS=\).*/\1internal/' endif ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACE),) -WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_CTRL_IFACE +WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_CTRL_IFACE\> endif ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_DBUS),y)
Signature · 1 line
2.25.1
PATCH v3 1/1 package/wpa_supplicant: handle CONFIG_CTRL_IFACE carefully
Tian, All,
On 2021-04-02 19:23 -0700, Tian Yuanhao via buildroot spake thusly:
Quoted 27 lines
When
BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACEis not set and BR2_PACKAGE_WPA_SUPPLICANT_DBUS=y,CONFIG_CTRL_IFACE_DBUS_NEWwill be enabled by 's/^#\(CONFIG_CTRL_IFACE_DBUS_NEW\)/\1/' first, and then disabled by 's/^\(CONFIG_CTRL_IFACE\)/#\1/'.
CONFIG_CTRL_IFACE_DBUS_NEWdoes not depend onCONFIG_CTRL_IFACE, except for using it as a prefix. Fix this wrong behavior by adding '\>' afterCONFIG_CTRL_IFACE.Signed-off-by Tian Yuanhao <[email protected]>Tested-by Nicolas Cavallari <[email protected]>---
v1 -> v2:
- only handleCONFIG_CTRL_IFACEv2 -> v3:
- rewrite commit message--- package/wpa_supplicant/wpa_supplicant.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)package/wpa_supplicant/wpa_supplicant.mk +0
-0
package/wpa_supplicant/wpa_supplicant.mk WPA_SUPPLICANT_CONFIG_EDITS += 's/\#\(CONFIG_TLS=\).*/\1internal/' · line 138
Quoted 5 lines
package/wpa_supplicant/wpa_supplicant.mk +1
-1@@ -135,7 +135,7 @@ WPA_SUPPLICANT_CONFIG_EDITS += 's/\#\(CONFIG_TLS=\).*/\1internal/' endif ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACE),) -WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_CTRL_IFACE +WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_CTRL_IFACE\>
Yes,m this is a tchnically correct change, that will fix this once issue.
However, it singles out this one configuration item among all the others, because it is the only one to have this trailing word-boundary marker.
And in fact, I think we should ensure this whole-word match for all the configurationtiems in a generic way, i.e. in the expansion, later:
diff --git a/package/wpa_supplicant/wpa_supplicant.mk b/package/wpa_supplicant/wpa_supplicant.mk
index 96f0596bfe..001eccbfef 100644
--- a/package/wpa_supplicant/wpa_supplicant.mk
+++ b/package/wpa_supplicant/wpa_supplicant.mk
@@ -188,8 +188,8 @@ endif
define WPA_SUPPLICANT_CONFIGURE_CMDS
cp $(@D)/wpa_supplicant/defconfig $(WPA_SUPPLICANT_CONFIG)
- sed -i $(patsubst %,-e 's/^#\(%\)/\1/',$(WPA_SUPPLICANT_CONFIG_ENABLE)) \
- $(patsubst %,-e 's/^\(%\)/#\1/',$(WPA_SUPPLICANT_CONFIG_DISABLE)) \
+ sed -i $(patsubst %,-e 's/^#\(%\>\)/\1/',$(WPA_SUPPLICANT_CONFIG_ENABLE)) \
+ $(patsubst %,-e 's/^\(%\>\)/#\1/',$(WPA_SUPPLICANT_CONFIG_DISABLE)) \
$(patsubst %,-e '1i%=y',$(WPA_SUPPLICANT_CONFIG_SET)) \
$(patsubst %,-e %,$(WPA_SUPPLICANT_CONFIG_EDITS)) \
$(WPA_SUPPLICANT_CONFIG)Thoughts?
Regards,
Yann E. MORIN.
Quoted 10 lines
package/wpa_supplicant/wpa_supplicant.mk +0
-0endif ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_DBUS),y)Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
PATCH v3 1/1 package/wpa_supplicant: handle CONFIG_CTRL_IFACE carefully
Hi Yann,
Quoted 61 lines · Yann E. MORIN
Tian, All,
On 2021-04-02 19:23 -0700, Tian Yuanhao via buildroot spake thusly:
Quoted 27 lines
When
BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACEis not set and BR2_PACKAGE_WPA_SUPPLICANT_DBUS=y,CONFIG_CTRL_IFACE_DBUS_NEWwill be enabled by 's/^#\(CONFIG_CTRL_IFACE_DBUS_NEW\)/\1/' first, and then disabled by 's/^\(CONFIG_CTRL_IFACE\)/#\1/'.
CONFIG_CTRL_IFACE_DBUS_NEWdoes not depend onCONFIG_CTRL_IFACE, except for using it as a prefix. Fix this wrong behavior by adding '\>' afterCONFIG_CTRL_IFACE.Signed-off-by Tian Yuanhao <[email protected]>Tested-by Nicolas Cavallari <[email protected]>---
v1 -> v2:
- only handleCONFIG_CTRL_IFACEv2 -> v3:
- rewrite commit message--- package/wpa_supplicant/wpa_supplicant.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)package/wpa_supplicant/wpa_supplicant.mk +0
-0package/wpa_supplicant/wpa_supplicant.mk WPA_SUPPLICANT_CONFIG_EDITS += 's/\#\(CONFIG_TLS=\).*/\1internal/' · line 138
Quoted 5 lines
package/wpa_supplicant/wpa_supplicant.mk +1
-1@@ -135,7 +135,7 @@ WPA_SUPPLICANT_CONFIG_EDITS += 's/\#\(CONFIG_TLS=\).*/\1internal/' endif ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACE),) -WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_CTRL_IFACE +WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_CTRL_IFACE\>Yes,m this is a tchnically correct change, that will fix this once issue.
However, it singles out this one configuration item among all the others, because it is the only one to have this trailing word-boundary marker.
And in fact, I think we should ensure this whole-word match for all the configurationtiems in a generic way, i.e. in the expansion, later:
diff --git a/package/wpa_supplicant/wpa_supplicant.mk b/package/wpa_supplicant/wpa_supplicant.mk index 96f0596bfe..001eccbfef 100644 --- a/package/wpa_supplicant/wpa_supplicant.mk +++ b/package/wpa_supplicant/wpa_supplicant.mk @@ -188,8 +188,8 @@ endif define WPA_SUPPLICANT_CONFIGURE_CMDS cp $(@D)/wpa_supplicant/defconfig $(WPA_SUPPLICANT_CONFIG) - sed -i $(patsubst %,-e 's/^#\(%\)/\1/',$(WPA_SUPPLICANT_CONFIG_ENABLE)) \ - $(patsubst %,-e 's/^\(%\)/#\1/',$(WPA_SUPPLICANT_CONFIG_DISABLE)) \ + sed -i $(patsubst %,-e 's/^#\(%\>\)/\1/',$(WPA_SUPPLICANT_CONFIG_ENABLE)) \ + $(patsubst %,-e 's/^\(%\>\)/#\1/',$(WPA_SUPPLICANT_CONFIG_DISABLE)) \ $(patsubst %,-e '1i%=y',$(WPA_SUPPLICANT_CONFIG_SET)) \ $(patsubst %,-e %,$(WPA_SUPPLICANT_CONFIG_EDITS)) \ $(WPA_SUPPLICANT_CONFIG)
Quoted 4 lines
Thoughts?
Regards,
Yann E. MORIN.
I did this in v1 [1], but Nicolas pointed out that it is by design.
At the moment, only CONFIG_CTRL_IFACE and CONFIG_CTRL_IFACE_DBUS_??? are irrelevant, and other options with the same prefix are related. So only CONFIG_CTRL_IFACE should be handled.
[1]:
http://patchwork.ozlabs.org/project/buildroot/patch/20210316021804.3790808-1-tianyuanhao at aliyun.com/
Regards,
Yuanhao
Quoted 11 lines
Quoted 11 lines
package/wpa_supplicant/wpa_supplicant.mk +0
-0endif ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_DBUS),y)Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
PATCH v3 1/1 package/wpa_supplicant: handle CONFIG_CTRL_IFACE carefully
Quoted 68 lines · Tian Yuanhao via buildroot
Hi Yann,
Quoted 65 lines · Yann E. MORIN
Tian, All,
On 2021-04-02 19:23 -0700, Tian Yuanhao via buildroot spake thusly:
Quoted 31 lines
When
BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACEis not set and BR2_PACKAGE_WPA_SUPPLICANT_DBUS=y,CONFIG_CTRL_IFACE_DBUS_NEWwill be enabled by 's/^#\(CONFIG_CTRL_IFACE_DBUS_NEW\)/\1/' first, and then disabled by 's/^\(CONFIG_CTRL_IFACE\)/#\1/'.
CONFIG_CTRL_IFACE_DBUS_NEWdoes not depend onCONFIG_CTRL_IFACE, except for using it as a prefix. Fix this wrong behavior by adding '\>' afterCONFIG_CTRL_IFACE.Signed-off-by Tian Yuanhao <[email protected]>Tested-by Nicolas Cavallari <[email protected]>---
v1 -> v2:
?? - only handleCONFIG_CTRL_IFACEv2 -> v3:
?? - rewrite commit message
---
?package/wpa_supplicant/wpa_supplicant.mk| 2 +-
? 1 file changed, 1 insertion(+), 1 deletion(-)package/wpa_supplicant/wpa_supplicant.mk +0
-0@@ -135,7 +135,7 @@ WPA_SUPPLICANT_CONFIG_EDITS +='s/\#\(CONFIG_TLS=\).*/\1internal/'
? endif
? ? ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACE),)package/wpa_supplicant/wpa_supplicant.mk WPA_SUPPLICANT_CONFIG_EDITS += 's/\#\(CONFIG_TLS=\).*/\1internal/' · line 138
Quoted 2 lines
package/wpa_supplicant/wpa_supplicant.mk +1
-1-WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_CTRL_IFACE +WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_CTRL_IFACE\>Yes,m this is a tchnically correct change, that will fix this once issue.
However, it singles out this one configuration item among all the others, because it is the only one to have this trailing word-boundary marker.
And in fact, I think we should ensure this whole-word match for all the configurationtiems in a generic way, i.e. in the expansion, later:
???? diff --git
a/package/wpa_supplicant/wpa_supplicant.mkb/package/wpa_supplicant/wpa_supplicant.mk
???? index96f0596bfe..001eccbfef100644
???? ---a/package/wpa_supplicant/wpa_supplicant.mk
???? +++b/package/wpa_supplicant/wpa_supplicant.mk
???? @@ -188,8 +188,8 @@ endif
????? ????? defineWPA_SUPPLICANT_CONFIGURE_CMDS
????????? cp $(@D)/wpa_supplicant/defconfig $(WPA_SUPPLICANT_CONFIG) ???? -??? sed -i $(patsubst %,-e 's/^#\(%\)/\1/',$(WPA_SUPPLICANT_CONFIG_ENABLE)) \
???? -??????? $(patsubst %,-e 's/^\(%\)/#\1/',$(WPA_SUPPLICANT_CONFIG_DISABLE)) \
???? +??? sed -i $(patsubst %,-e 's/^#\(%\>\)/\1/',$(WPA_SUPPLICANT_CONFIG_ENABLE)) \
???? +??????? $(patsubst %,-e 's/^\(%\>\)/#\1/',$(WPA_SUPPLICANT_CONFIG_DISABLE)) \
????????????? $(patsubst %,-e '1i%=y',$(WPA_SUPPLICANT_CONFIG_SET)) \
????????????? $(patsubst %,-e %,$(WPA_SUPPLICANT_CONFIG_EDITS)) \
????????????? $(WPA_SUPPLICANT_CONFIG)
Quoted 6 lines
Quoted 4 lines
Thoughts?
Regards,
Yann E. MORIN.I did this in v1 [1], but Nicolas pointed out that it is by design.
Nicolas is right. However, it's a bad design :-)
To fix this, we can simply use "CONFIG_EAP_[A-Z0-9_]*" to disable all the EAP
options. I think EAP is the only one in that situation, but I haven't checked all config options. There's also CONFIG_DPP that matches CONFIG_DPP2, but I don't think that's actually intentional...
So I think indeed the better solution is to change the patsubst lines.
However, that's a much bigger change which requires a bit of testing and
double-checking (and deciding what to do with e.g. DPP2). So for now, I've applied this patch, thanks. This patch can be backported to the stable branches. A follow-up patch that cleans up the patsubst lines would be much appreciated.
Regards,
Arnout
Quoted 26 lines
At the moment, only
CONFIG_CTRL_IFACEandCONFIG_CTRL_IFACE_DBUS_??? are irrelevant, and other options with the same prefix are related. So onlyCONFIG_CTRL_IFACEshould be handled.[1]:
http://patchwork.ozlabs.org/project/buildroot/patch/20210316021804.3790808-1-tianyuanhao at aliyun.com/Regards,
YuanhaoQuoted 10 lines
Quoted 10 lines
? endif
? ? ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_DBUS),y)
--?
2.25.1_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH v3 1/1 package/wpa_supplicant: handle CONFIG_CTRL_IFACE carefully
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnout" == Arnout Vandecappelle <[email protected]> writes:
Hi,
Quoted 10 lines
To fix this, we can simply use "CONFIG_EAP_[A-Z0-9_]*" to disable all the EAP
options. I think EAP is the only one in that situation, but I haven't checked all config options. There's alsoCONFIG_DPPthat matchesCONFIG_DPP2, but I don't think that's actually intentional...So I think indeed the better solution is to change the patsubst lines.
However, that's a much bigger change which requires a bit of testing and
double-checking (and deciding what to do with e.g. DPP2). So for now, I've applied this patch, thanks. This patch can be backported to the stable branches.
We only added disabling logic post-2021.02, so it only affects master.
Should the disabling logic (and this patch) be backported to 2021.02.x?
Signature · 1 line
Bye, Peter Korsgaard
PATCH v3 1/1 package/wpa_supplicant: handle CONFIG_CTRL_IFACE carefully
Quoted 11 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnout" == Arnout Vandecappelle <[email protected]> writes:
Hi,
Quoted 6 lines
To fix this, we can simply use "CONFIG_EAP_[A-Z0-9_]*" to disable all the EAP
options. I think EAP is the only one in that situation, but I haven't checked all config options. There's alsoCONFIG_DPPthat matchesCONFIG_DPP2, but I don't think that's actually intentional...So I think indeed the better solution is to change the patsubst lines.
Quoted 7 lines
Quoted 3 lines
However, that's a much bigger change which requires a bit of testing and
double-checking (and deciding what to do with e.g. DPP2). So for now, I've applied this patch, thanks. This patch can be backported to the stable branches.We only added disabling logic post-2021.02, so it only affects master.
Should the disabling logic (and this patch) be backported to 2021.02.x?
I applied it to next at the time, not to master, so I guess that was for a
reason :-)
I don't like putting this kind of risky changes on the stable branch. Since a
follow-up patch was needed, it clearly was indeed risky. The first patch of that series was kind of a fix because it made sure that the wpa_supplicant build actually corresponds to the Buildroot configuration. The patch that introduced the CTRL_IFACE issue however was really a feature patch.
So no, no backporting needed.
Regards,
Arnout
PATCH v3 1/1 package/wpa_supplicant: handle CONFIG_CTRL_IFACE carefully
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnout" == Arnout Vandecappelle <[email protected]> writes:
Hi,
Quoted 7 lines
Quoted 3 lines
We only added disabling logic post-2021.02, so it only affects master.
Should the disabling logic (and this patch) be backported to 2021.02.x?
I applied it to next at the time, not to master, so I guess that was for a
reason :-)
Quoted 7 lines
I don't like putting this kind of risky changes on the stable branch. Since a
follow-up patch was needed, it clearly was indeed risky. The first patch of that series was kind of a fix because it made sure that thewpa_supplicantbuild actually corresponds to the Buildroot configuration. The patch that introduced theCTRL_IFACEissue however was really a feature patch.So no, no backporting needed.
Ok, good.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v3 1/1 package/wpa_supplicant: handle CONFIG_CTRL_IFACE carefully
In reply to Arnout VandecappelleArnout, All,
On 2021-04-06 22:10 +0200, Arnout Vandecappelle spake thusly:
Quoted 3 lines · Tian Yuanhao via buildroot
Quoted 2 lines · Yann E. MORIN
Quoted 1 line
On 2021-04-02 19:23 -0700, Tian Yuanhao via buildroot spake thusly:
[--SNIP--]
Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
package/wpa_supplicant/wpa_supplicant.mk WPA_SUPPLICANT_CONFIG_EDITS += 's/\#\(CONFIG_TLS=\).*/\1internal/' · line 138
Quoted 11 lines
package/wpa_supplicant/wpa_supplicant.mk +0
-0@@ -135,7 +135,7 @@ WPA_SUPPLICANT_CONFIG_EDITS +='s/\#\(CONFIG_TLS=\).*/\1internal/'
? endif
? ? ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACE),)package/wpa_supplicant/wpa_supplicant.mk +1
-1-WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_CTRL_IFACE +WPA_SUPPLICANT_CONFIG_DISABLE += CONFIG_CTRL_IFACE\>Yes,m this is a tchnically correct change, that will fix this once issue.
However, it singles out this one configuration item among all the others, because it is the only one to have this trailing word-boundary marker.
And in fact, I think we should ensure this whole-word match for all the configurationtiems in a generic way, i.e. in the expansion, later:
???? diff --git
a/package/wpa_supplicant/wpa_supplicant.mkb/package/wpa_supplicant/wpa_supplicant.mk
???? index96f0596bfe..001eccbfef100644
???? ---a/package/wpa_supplicant/wpa_supplicant.mk
???? +++b/package/wpa_supplicant/wpa_supplicant.mk
???? @@ -188,8 +188,8 @@ endif
????? ????? defineWPA_SUPPLICANT_CONFIGURE_CMDS????????? cp $(@D)/wpa_supplicant/defconfig $(WPA_SUPPLICANT_CONFIG) ???? -??? sed -i $(patsubst %,-e 's/^#\(%\)/\1/',$(WPA_SUPPLICANT_CONFIG_ENABLE)) \
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
???? -??????? $(patsubst %,-e 's/^\(%\)/#\1/',$(WPA_SUPPLICANT_CONFIG_DISABLE)) \
???? +??? sed -i $(patsubst %,-e 's/^#\(%\>\)/\1/',$(WPA_SUPPLICANT_CONFIG_ENABLE)) \
???? +??????? $(patsubst %,-e 's/^\(%\>\)/#\1/',$(WPA_SUPPLICANT_CONFIG_DISABLE)) \
????????????? $(patsubst %,-e '1i%=y',$(WPA_SUPPLICANT_CONFIG_SET)) \
????????????? $(patsubst %,-e %,$(WPA_SUPPLICANT_CONFIG_EDITS)) \
????????????? $(WPA_SUPPLICANT_CONFIG)
[--SNIP--]
Quoted 1 line
Quoted 1 line
I did this in v1 [1], but Nicolas pointed out that it is by design.
[--SNIP--]
Quoted 1 line
Nicolas is right. However, it's a bad design :-)
I was about to say the same.
Quoted 11 lines
To fix this, we can simply use "CONFIG_EAP_[A-Z0-9_]*" to disable all the EAP
options. I think EAP is the only one in that situation, but I haven't checked all config options. There's alsoCONFIG_DPPthat matchesCONFIG_DPP2, but I don't think that's actually intentional...So I think indeed the better solution is to change the patsubst lines.
However, that's a much bigger change which requires a bit of testing and
double-checking (and deciding what to do with e.g. DPP2). So for now, I've applied this patch, thanks. This patch can be backported to the stable branches. A follow-up patch that cleans up the patsubst lines would be much appreciated.
I think we should have *all* options be comprehensive, and that the patsubst should not unintentionally catch anything that was not explicit requested.
If an option wants to match with just a prefix, it can add a '.*' at the end, or as Arnout suggested, a more specific pattern, like '[[:digit:]]+' to match one or more digits...
So yes, please, could you look into providing a follow-up patch that does that?
Regards,
Yann E. MORIN.
Quoted 34 lines
Regards,
ArnoutQuoted 18 lines
At the moment, only
CONFIG_CTRL_IFACEandCONFIG_CTRL_IFACE_DBUS_??? are irrelevant, and other options with the same prefix are related. So onlyCONFIG_CTRL_IFACEshould be handled.[1]:
http://patchwork.ozlabs.org/project/buildroot/patch/20210316021804.3790808-1-tianyuanhao at aliyun.com/Regards,
YuanhaoQuoted 6 lines
Quoted 6 lines
? endif
? ? ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_DBUS),y)
--?
2.25.1Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'