All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] wpa_supplicant - Specify that old and new dbus are incompatible
@ 2018-02-18 21:50 Pierre Ducroquet
  2018-02-28 20:38 ` Peter Korsgaard
  0 siblings, 1 reply; 5+ messages in thread
From: Pierre Ducroquet @ 2018-02-18 21:50 UTC (permalink / raw)
  To: buildroot

Building wpa-supplicant with support for both DBus interfaces
generates broken .service files.
Marking old and new DBus incompatible in Config.in makes this
conflict clear.

Signed-off-by: Pierre Ducroquet <pinaraf@pinaraf.info>
---
 package/wpa_supplicant/Config.in | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/package/wpa_supplicant/Config.in b/package/wpa_supplicant/Config.in
index 58a074fae8..500df354a2 100644
--- a/package/wpa_supplicant/Config.in
+++ b/package/wpa_supplicant/Config.in
@@ -100,20 +100,33 @@ config BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE
 	help
 	  Install wpa_passphrase command line utility.
 
+config BR2_PACKAGE_WPA_SUPPLICANT_DBUS
+	bool "Enable support for DBus control interface"
+	depends on BR2_PACKAGE_DBUS
+	help
+	 Enable support for DBus control interface
+
+if BR2_PACKAGE_WPA_SUPPLICANT_DBUS
+
+choice
+	prompt "DBus interface"
+
 config BR2_PACKAGE_WPA_SUPPLICANT_DBUS_OLD
-	bool "Enable support for old DBus control interface"
+	bool "Use old DBus control interface"
 	depends on BR2_PACKAGE_DBUS
 	help
 	  Enable support for old DBus control interface
 	  (fi.epitest.hostap.WPASupplicant).
 
 config BR2_PACKAGE_WPA_SUPPLICANT_DBUS_NEW
-	bool "Enable support for new DBus control interface"
+	bool "Use new DBus control interface"
 	depends on BR2_PACKAGE_DBUS
 	help
 	  Enable support for new DBus control interface
 	  (fi.w1.wpa_supplicant1).
 
+endchoice
+
 config BR2_PACKAGE_WPA_SUPPLICANT_DBUS_INTROSPECTION
 	bool "Introspection support"
 	depends on BR2_PACKAGE_WPA_SUPPLICANT_DBUS_NEW
@@ -121,3 +134,5 @@ config BR2_PACKAGE_WPA_SUPPLICANT_DBUS_INTROSPECTION
 	  Add introspection support for new DBus control interface.
 
 endif
+
+endif
-- 
2.16.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] wpa_supplicant - Specify that old and new dbus are incompatible
  2018-02-18 21:50 [Buildroot] [PATCH 1/1] wpa_supplicant - Specify that old and new dbus are incompatible Pierre Ducroquet
@ 2018-02-28 20:38 ` Peter Korsgaard
  2018-02-28 22:55   ` Pierre
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2018-02-28 20:38 UTC (permalink / raw)
  To: buildroot

>>>>> "Pierre" == Pierre Ducroquet <pinaraf@pinaraf.info> writes:

 > Building wpa-supplicant with support for both DBus interfaces
 > generates broken .service files.

In what way are they broken? I did a quick test build of 3
configurations:

- Only old
- Only new
- Old and new

and I don't see any difference in the .service files?

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] wpa_supplicant - Specify that old and new dbus are incompatible
  2018-02-28 20:38 ` Peter Korsgaard
@ 2018-02-28 22:55   ` Pierre
  2018-03-01  7:35     ` Peter Korsgaard
  0 siblings, 1 reply; 5+ messages in thread
From: Pierre @ 2018-02-28 22:55 UTC (permalink / raw)
  To: buildroot

On Wednesday, February 28, 2018 9:38:31 PM CET Peter Korsgaard wrote:
> >>>>> "Pierre" == Pierre Ducroquet <pinaraf@pinaraf.info> writes:
>  > Building wpa-supplicant with support for both DBus interfaces
>  > generates broken .service files.
> 
> In what way are they broken? I did a quick test build of 3
> configurations:
> 
> - Only old
> - Only new
> - Old and new
> 
> and I don't see any difference in the .service files?

It generated a .service file with an empty BusName in the [Service] part of 
the .service.
Since enabling only one interface generated the proper file, I deduced both 
could not be enabled together. Maybe something else in my configuration 
impacted that, I will check that again if you can't reproduce.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180228/fb2c328f/attachment.asc>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] wpa_supplicant - Specify that old and new dbus are incompatible
  2018-02-28 22:55   ` Pierre
@ 2018-03-01  7:35     ` Peter Korsgaard
  2018-12-16 13:10       ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2018-03-01  7:35 UTC (permalink / raw)
  To: buildroot

>>>>> "Pierre" == Pierre  <pinaraf@pinaraf.info> writes:

 > On Wednesday, February 28, 2018 9:38:31 PM CET Peter Korsgaard wrote:
 >> >>>>> "Pierre" == Pierre Ducroquet <pinaraf@pinaraf.info> writes:
 >> > Building wpa-supplicant with support for both DBus interfaces
 >> > generates broken .service files.
 >> 
 >> In what way are they broken? I did a quick test build of 3
 >> configurations:
 >> 
 >> - Only old
 >> - Only new
 >> - Old and new
 >> 
 >> and I don't see any difference in the .service files?

 > It generated a .service file with an empty BusName in the [Service] part of 
 > the .service.
 > Since enabling only one interface generated the proper file, I deduced both 
 > could not be enabled together. Maybe something else in my configuration 
 > impacted that, I will check that again if you can't reproduce.

Wait, are we talking about dbus service files (that afaik don't take a
BusName directive) or systemd files?

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/1] wpa_supplicant - Specify that old and new dbus are incompatible
  2018-03-01  7:35     ` Peter Korsgaard
@ 2018-12-16 13:10       ` Thomas Petazzoni
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2018-12-16 13:10 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu, 01 Mar 2018 08:35:47 +0100, Peter Korsgaard wrote:

>  > It generated a .service file with an empty BusName in the [Service] part of 
>  > the .service.
>  > Since enabling only one interface generated the proper file, I deduced both 
>  > could not be enabled together. Maybe something else in my configuration 
>  > impacted that, I will check that again if you can't reproduce.  
> 
> Wait, are we talking about dbus service files (that afaik don't take a
> BusName directive) or systemd files?

I just did a build, with the following defconfig:

BR2_arm=y
BR2_cortex_a8=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_LINARO_ARM=y
BR2_INIT_SYSTEMD=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_WPA_SUPPLICANT=y
BR2_PACKAGE_WPA_SUPPLICANT_DBUS_OLD=y
BR2_PACKAGE_WPA_SUPPLICANT_DBUS_NEW=y
# BR2_TARGET_ROOTFS_TAR is not set

So, it has systemd enabled and both the old and new dbus interfaces in
wpa-supplicant. And the BusName is definitely not empty:

$ cat lib/systemd/system/wpa_supplicant.service 
[Unit]
Description=WPA supplicant
Before=network.target
Wants=network.target

[Service]
Type=dbus
BusName=fi.w1.wpa_supplicant1
ExecStart=/usr/sbin/wpa_supplicant -u

[Install]
WantedBy=multi-user.target
Alias=dbus-fi.w1.wpa_supplicant1.service

Since we haven't heard from the original submitter since February, I'll
mark this patch as Rejected in patchwork.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-12-16 13:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-18 21:50 [Buildroot] [PATCH 1/1] wpa_supplicant - Specify that old and new dbus are incompatible Pierre Ducroquet
2018-02-28 20:38 ` Peter Korsgaard
2018-02-28 22:55   ` Pierre
2018-03-01  7:35     ` Peter Korsgaard
2018-12-16 13:10       ` Thomas Petazzoni

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.