Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] modem-manager: now needs libgudev under systemd
@ 2015-09-10 12:50 yegorslists at googlemail.com
  2015-09-10 14:06 ` Vicente Olivert Riera
  0 siblings, 1 reply; 4+ messages in thread
From: yegorslists at googlemail.com @ 2015-09-10 12:50 UTC (permalink / raw)
  To: buildroot

From: Yegor Yefremov <yegorslists@googlemail.com>

Fixes: http://autobuild.buildroot.net/results/d59/d597a81271a082c8252e2333906815c437b6576d/

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 package/modem-manager/Config.in        | 3 ++-
 package/modem-manager/modem-manager.mk | 4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/package/modem-manager/Config.in b/package/modem-manager/Config.in
index 59b8d88..1cd502b 100644
--- a/package/modem-manager/Config.in
+++ b/package/modem-manager/Config.in
@@ -1,11 +1,12 @@
 config BR2_PACKAGE_MODEM_MANAGER
 	bool "modemmanager"
 	depends on BR2_PACKAGE_HAS_UDEV
-	select BR2_PACKAGE_DBUS
 	depends on BR2_USE_WCHAR # libglib2 and gnutls
 	depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, libglib2
 	depends on BR2_USE_MMU # dbus
+	select BR2_PACKAGE_DBUS
 	select BR2_PACKAGE_DBUS_GLIB
+	select BR2_PACKAGE_LIBGUDEV if BR2_INIT_SYSTEMD
 	help
 	  ModemManager is a DBus-activated daemon which controls mobile
 	  broadband (2G/3G/4G) devices and connections.
diff --git a/package/modem-manager/modem-manager.mk b/package/modem-manager/modem-manager.mk
index 0e6b36a..36c8c0d 100644
--- a/package/modem-manager/modem-manager.mk
+++ b/package/modem-manager/modem-manager.mk
@@ -12,6 +12,10 @@ MODEM_MANAGER_LICENSE_FILES = COPYING
 MODEM_MANAGER_DEPENDENCIES = host-pkgconf udev dbus-glib host-intltool
 MODEM_MANAGER_INSTALL_STAGING = YES
 
+ifeq ($(BR2_INIT_SYSTEMD),y)
+MODEM_MANAGER_DEPENDENCIES += libgudev
+endif
+
 ifeq ($(BR2_PACKAGE_MODEM_MANAGER_LIBQMI),y)
 MODEM_MANAGER_DEPENDENCIES += libqmi
 MODEM_MANAGER_CONF_OPTS += --with-qmi
-- 
2.1.4

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

* [Buildroot] [PATCH] modem-manager: now needs libgudev under systemd
  2015-09-10 12:50 [Buildroot] [PATCH] modem-manager: now needs libgudev under systemd yegorslists at googlemail.com
@ 2015-09-10 14:06 ` Vicente Olivert Riera
  2015-09-10 16:13   ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Vicente Olivert Riera @ 2015-09-10 14:06 UTC (permalink / raw)
  To: buildroot

Dear Yegor Yefremov,

when you say that "modem-manager: now needs libgudev for systemd", what
do you mean exactly by "now"? I would expect something like "since
version X" or a better explanation.

On 09/10/2015 01:50 PM, yegorslists at googlemail.com wrote:
> From: Yegor Yefremov <yegorslists@googlemail.com>
> 
> Fixes: http://autobuild.buildroot.net/results/d59/d597a81271a082c8252e2333906815c437b6576d/
> 
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
>  package/modem-manager/Config.in        | 3 ++-
>  package/modem-manager/modem-manager.mk | 4 ++++
>  2 files changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/package/modem-manager/Config.in b/package/modem-manager/Config.in
> index 59b8d88..1cd502b 100644
> --- a/package/modem-manager/Config.in
> +++ b/package/modem-manager/Config.in
> @@ -1,11 +1,12 @@
>  config BR2_PACKAGE_MODEM_MANAGER
>  	bool "modemmanager"
>  	depends on BR2_PACKAGE_HAS_UDEV
> -	select BR2_PACKAGE_DBUS
>  	depends on BR2_USE_WCHAR # libglib2 and gnutls
>  	depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, libglib2
>  	depends on BR2_USE_MMU # dbus
> +	select BR2_PACKAGE_DBUS

I know you are trying to keep all the depends together and all the
selects together, but since this is not related with the goal that your
patch is trying to achieve, I would do it in a separate patch.

>  	select BR2_PACKAGE_DBUS_GLIB
> +	select BR2_PACKAGE_LIBGUDEV if BR2_INIT_SYSTEMD
>  	help
>  	  ModemManager is a DBus-activated daemon which controls mobile
>  	  broadband (2G/3G/4G) devices and connections.
> diff --git a/package/modem-manager/modem-manager.mk b/package/modem-manager/modem-manager.mk
> index 0e6b36a..36c8c0d 100644
> --- a/package/modem-manager/modem-manager.mk
> +++ b/package/modem-manager/modem-manager.mk
> @@ -12,6 +12,10 @@ MODEM_MANAGER_LICENSE_FILES = COPYING
>  MODEM_MANAGER_DEPENDENCIES = host-pkgconf udev dbus-glib host-intltool
>  MODEM_MANAGER_INSTALL_STAGING = YES
>  
> +ifeq ($(BR2_INIT_SYSTEMD),y)
> +MODEM_MANAGER_DEPENDENCIES += libgudev
> +endif
> +

Perhaps an explanation like the one included in this patch would useful
to understand why libgudev is needed:

http://git.buildroot.net/buildroot/commit/?id=46a615bb6439a4fe69f1bfc6a347852b993d46a2

Regards,

Vincent.

>  ifeq ($(BR2_PACKAGE_MODEM_MANAGER_LIBQMI),y)
>  MODEM_MANAGER_DEPENDENCIES += libqmi
>  MODEM_MANAGER_CONF_OPTS += --with-qmi
> 

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

* [Buildroot] [PATCH] modem-manager: now needs libgudev under systemd
  2015-09-10 14:06 ` Vicente Olivert Riera
@ 2015-09-10 16:13   ` Thomas Petazzoni
  2015-09-11  7:13     ` Yegor Yefremov
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2015-09-10 16:13 UTC (permalink / raw)
  To: buildroot

Vicente, Yegor,

On Thu, 10 Sep 2015 15:06:59 +0100, Vicente Olivert Riera wrote:

> when you say that "modem-manager: now needs libgudev for systemd", what
> do you mean exactly by "now"? I would expect something like "since
> version X" or a better explanation.

Well, I think you're being a bit too picky here. It is indeed nicer
when the information is more specific, but since there is a clear
autobuilder failure, I think Yegor's commit log is good enough. Better
is better, for sure :-)


> > @@ -1,11 +1,12 @@
> >  config BR2_PACKAGE_MODEM_MANAGER
> >  	bool "modemmanager"
> >  	depends on BR2_PACKAGE_HAS_UDEV
> > -	select BR2_PACKAGE_DBUS
> >  	depends on BR2_USE_WCHAR # libglib2 and gnutls
> >  	depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, libglib2
> >  	depends on BR2_USE_MMU # dbus
> > +	select BR2_PACKAGE_DBUS
> 
> I know you are trying to keep all the depends together and all the
> selects together, but since this is not related with the goal that your
> patch is trying to achieve, I would do it in a separate patch.

While I do agree that separating logical changes into separate commits
is important, we shouldn't be too zealous about that either. So I'm
personally fine with such small (but related) side changes. It's better
when the commit log contains something such as:

While at it, group the existing dbus select together with the dbus-glib
select, so that all "select" statements are together.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH] modem-manager: now needs libgudev under systemd
  2015-09-10 16:13   ` Thomas Petazzoni
@ 2015-09-11  7:13     ` Yegor Yefremov
  0 siblings, 0 replies; 4+ messages in thread
From: Yegor Yefremov @ 2015-09-11  7:13 UTC (permalink / raw)
  To: buildroot

On Thu, Sep 10, 2015 at 6:13 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Vicente, Yegor,
>
> On Thu, 10 Sep 2015 15:06:59 +0100, Vicente Olivert Riera wrote:
>
>> when you say that "modem-manager: now needs libgudev for systemd", what
>> do you mean exactly by "now"? I would expect something like "since
>> version X" or a better explanation.
>
> Well, I think you're being a bit too picky here. It is indeed nicer
> when the information is more specific, but since there is a clear
> autobuilder failure, I think Yegor's commit log is good enough. Better
> is better, for sure :-)
>
>
>> > @@ -1,11 +1,12 @@
>> >  config BR2_PACKAGE_MODEM_MANAGER
>> >     bool "modemmanager"
>> >     depends on BR2_PACKAGE_HAS_UDEV
>> > -   select BR2_PACKAGE_DBUS
>> >     depends on BR2_USE_WCHAR # libglib2 and gnutls
>> >     depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, libglib2
>> >     depends on BR2_USE_MMU # dbus
>> > +   select BR2_PACKAGE_DBUS
>>
>> I know you are trying to keep all the depends together and all the
>> selects together, but since this is not related with the goal that your
>> patch is trying to achieve, I would do it in a separate patch.
>
> While I do agree that separating logical changes into separate commits
> is important, we shouldn't be too zealous about that either. So I'm
> personally fine with such small (but related) side changes. It's better
> when the commit log contains something such as:
>
> While at it, group the existing dbus select together with the dbus-glib
> select, so that all "select" statements are together.

So. I've sent v3. Patch description provides the whole story and if
someone will want to know, why BR2_PACKAGE_LIBGUDEV is selected, he
can use "git blame".

Yegor

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

end of thread, other threads:[~2015-09-11  7:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-10 12:50 [Buildroot] [PATCH] modem-manager: now needs libgudev under systemd yegorslists at googlemail.com
2015-09-10 14:06 ` Vicente Olivert Riera
2015-09-10 16:13   ` Thomas Petazzoni
2015-09-11  7:13     ` Yegor Yefremov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox