Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] modem-manager: update dependencies
@ 2017-08-25 12:30 Aleksander Morgado
  2017-08-25 14:02 ` Thomas Petazzoni
  2017-08-25 14:21 ` [Buildroot] [PATCH v2] " Aleksander Morgado
  0 siblings, 2 replies; 10+ messages in thread
From: Aleksander Morgado @ 2017-08-25 12:30 UTC (permalink / raw)
  To: buildroot

The dbus-glib package isn't a dependency since ModemManager 1.0, which
is based on libglib2's GDBus implementation.

Also, explicitly set libglib2 as dependency, which currently was being
implicitly included by libgudev. The next major ModemManager release
will have udev/libgudev as optional packages, while libglib2 is
definitely not going to be ever optional.

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
---
 package/modem-manager/modem-manager.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/modem-manager/modem-manager.mk b/package/modem-manager/modem-manager.mk
index 1eea355f5..c2999dc2e 100644
--- a/package/modem-manager/modem-manager.mk
+++ b/package/modem-manager/modem-manager.mk
@@ -9,7 +9,7 @@ MODEM_MANAGER_SOURCE = ModemManager-$(MODEM_MANAGER_VERSION).tar.xz
 MODEM_MANAGER_SITE = http://www.freedesktop.org/software/ModemManager
 MODEM_MANAGER_LICENSE = GPL-2.0+ (programs, plugins), LGPL-2.0+ (libmm-glib)
 MODEM_MANAGER_LICENSE_FILES = COPYING
-MODEM_MANAGER_DEPENDENCIES = host-pkgconf udev dbus-glib host-intltool libgudev
+MODEM_MANAGER_DEPENDENCIES = host-pkgconf udev host-intltool libglib2 libgudev
 MODEM_MANAGER_INSTALL_STAGING = YES
 
 ifeq ($(BR2_PACKAGE_MODEM_MANAGER_LIBQMI),y)
-- 
2.14.1

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

* [Buildroot] [PATCH] modem-manager: update dependencies
  2017-08-25 12:30 [Buildroot] [PATCH] modem-manager: update dependencies Aleksander Morgado
@ 2017-08-25 14:02 ` Thomas Petazzoni
  2017-08-25 14:09   ` Aleksander Morgado
  2017-08-25 14:21 ` [Buildroot] [PATCH v2] " Aleksander Morgado
  1 sibling, 1 reply; 10+ messages in thread
From: Thomas Petazzoni @ 2017-08-25 14:02 UTC (permalink / raw)
  To: buildroot

Hello,

Thanks for your contribution!

On Fri, 25 Aug 2017 14:30:15 +0200, Aleksander Morgado wrote:
> The dbus-glib package isn't a dependency since ModemManager 1.0, which
> is based on libglib2's GDBus implementation.

And libglib2 GDBus implementation is built unconditionally, regardless
of whether the DBus package is enabled or not ?

> Also, explicitly set libglib2 as dependency, which currently was being
> implicitly included by libgudev. The next major ModemManager release
> will have udev/libgudev as optional packages, while libglib2 is
> definitely not going to be ever optional.
> 
> Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
> ---
>  package/modem-manager/modem-manager.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/package/modem-manager/modem-manager.mk b/package/modem-manager/modem-manager.mk
> index 1eea355f5..c2999dc2e 100644
> --- a/package/modem-manager/modem-manager.mk
> +++ b/package/modem-manager/modem-manager.mk
> @@ -9,7 +9,7 @@ MODEM_MANAGER_SOURCE = ModemManager-$(MODEM_MANAGER_VERSION).tar.xz
>  MODEM_MANAGER_SITE = http://www.freedesktop.org/software/ModemManager
>  MODEM_MANAGER_LICENSE = GPL-2.0+ (programs, plugins), LGPL-2.0+ (libmm-glib)
>  MODEM_MANAGER_LICENSE_FILES = COPYING
> -MODEM_MANAGER_DEPENDENCIES = host-pkgconf udev dbus-glib host-intltool libgudev
> +MODEM_MANAGER_DEPENDENCIES = host-pkgconf udev host-intltool libglib2 libgudev

Then you also need to:

 1. Remove select BR2_PACKAGE_DBUS_GLIB from Config.in

 2. add select BR2_PACKAGE_LIBGLIB2 in Config.in

Thanks!

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

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

* [Buildroot] [PATCH] modem-manager: update dependencies
  2017-08-25 14:02 ` Thomas Petazzoni
@ 2017-08-25 14:09   ` Aleksander Morgado
  0 siblings, 0 replies; 10+ messages in thread
From: Aleksander Morgado @ 2017-08-25 14:09 UTC (permalink / raw)
  To: buildroot

On Fri, Aug 25, 2017 at 4:02 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Hello,
>
> Thanks for your contribution!
>
> On Fri, 25 Aug 2017 14:30:15 +0200, Aleksander Morgado wrote:
>> The dbus-glib package isn't a dependency since ModemManager 1.0, which
>> is based on libglib2's GDBus implementation.
>
> And libglib2 GDBus implementation is built unconditionally, regardless
> of whether the DBus package is enabled or not ?
>

Yes; although dbus should probably be a mandatory dependency when
ModemManager is selected then (same as udev+libgudev are)

>> Also, explicitly set libglib2 as dependency, which currently was being
>> implicitly included by libgudev. The next major ModemManager release
>> will have udev/libgudev as optional packages, while libglib2 is
>> definitely not going to be ever optional.
>>
>> Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
>> ---
>>  package/modem-manager/modem-manager.mk | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/package/modem-manager/modem-manager.mk b/package/modem-manager/modem-manager.mk
>> index 1eea355f5..c2999dc2e 100644
>> --- a/package/modem-manager/modem-manager.mk
>> +++ b/package/modem-manager/modem-manager.mk
>> @@ -9,7 +9,7 @@ MODEM_MANAGER_SOURCE = ModemManager-$(MODEM_MANAGER_VERSION).tar.xz
>>  MODEM_MANAGER_SITE = http://www.freedesktop.org/software/ModemManager
>>  MODEM_MANAGER_LICENSE = GPL-2.0+ (programs, plugins), LGPL-2.0+ (libmm-glib)
>>  MODEM_MANAGER_LICENSE_FILES = COPYING
>> -MODEM_MANAGER_DEPENDENCIES = host-pkgconf udev dbus-glib host-intltool libgudev
>> +MODEM_MANAGER_DEPENDENCIES = host-pkgconf udev host-intltool libglib2 libgudev
>
> Then you also need to:
>
>  1. Remove select BR2_PACKAGE_DBUS_GLIB from Config.in
>
>  2. add select BR2_PACKAGE_LIBGLIB2 in Config.in
>

Ah! will update those as well.

-- 
Aleksander
https://aleksander.es

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

* [Buildroot] [PATCH v2] modem-manager: update dependencies
  2017-08-25 12:30 [Buildroot] [PATCH] modem-manager: update dependencies Aleksander Morgado
  2017-08-25 14:02 ` Thomas Petazzoni
@ 2017-08-25 14:21 ` Aleksander Morgado
  2017-08-25 20:41   ` Thomas Petazzoni
  2017-08-27 10:42   ` [Buildroot] [PATCH v3] " Aleksander Morgado
  1 sibling, 2 replies; 10+ messages in thread
From: Aleksander Morgado @ 2017-08-25 14:21 UTC (permalink / raw)
  To: buildroot

The dbus-glib package isn't a dependency since ModemManager 1.0, which
is based on libglib2's GDBus implementation.

Also, explicitly set libglib2 as dependency, which currently was being
implicitly included by libgudev. The next major ModemManager release
will have udev/libgudev as optional packages, while libglib2 is
definitely not going to be ever optional.

Finally, also set dbus as a dependency, as ModemManager won't work
without a system DBus available.

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
---
 package/modem-manager/Config.in        | 2 +-
 package/modem-manager/modem-manager.mk | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/modem-manager/Config.in b/package/modem-manager/Config.in
index aa7ed1e2f..3b32acba3 100644
--- a/package/modem-manager/Config.in
+++ b/package/modem-manager/Config.in
@@ -5,7 +5,7 @@ config BR2_PACKAGE_MODEM_MANAGER
 	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_LIBGLIB2
 	select BR2_PACKAGE_LIBGUDEV
 	help
 	  ModemManager is a DBus-activated daemon which controls mobile
diff --git a/package/modem-manager/modem-manager.mk b/package/modem-manager/modem-manager.mk
index 6459f8785..ce6d5dfc1 100644
--- a/package/modem-manager/modem-manager.mk
+++ b/package/modem-manager/modem-manager.mk
@@ -9,7 +9,7 @@ MODEM_MANAGER_SOURCE = ModemManager-$(MODEM_MANAGER_VERSION).tar.xz
 MODEM_MANAGER_SITE = http://www.freedesktop.org/software/ModemManager
 MODEM_MANAGER_LICENSE = GPL-2.0+ (programs, plugins), LGPL-2.0+ (libmm-glib)
 MODEM_MANAGER_LICENSE_FILES = COPYING
-MODEM_MANAGER_DEPENDENCIES = host-pkgconf udev dbus-glib host-intltool libgudev
+MODEM_MANAGER_DEPENDENCIES = host-pkgconf host-intltool dbus udev libglib2 libgudev
 MODEM_MANAGER_INSTALL_STAGING = YES

 ifeq ($(BR2_PACKAGE_MODEM_MANAGER_LIBQMI),y)
--
2.14.1

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

* [Buildroot] [PATCH v2] modem-manager: update dependencies
  2017-08-25 14:21 ` [Buildroot] [PATCH v2] " Aleksander Morgado
@ 2017-08-25 20:41   ` Thomas Petazzoni
  2017-08-27  7:05     ` Aleksander Morgado
  2017-08-27 10:42   ` [Buildroot] [PATCH v3] " Aleksander Morgado
  1 sibling, 1 reply; 10+ messages in thread
From: Thomas Petazzoni @ 2017-08-25 20:41 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri, 25 Aug 2017 16:21:20 +0200, Aleksander Morgado wrote:
> The dbus-glib package isn't a dependency since ModemManager 1.0, which
> is based on libglib2's GDBus implementation.
> 
> Also, explicitly set libglib2 as dependency, which currently was being
> implicitly included by libgudev. The next major ModemManager release
> will have udev/libgudev as optional packages, while libglib2 is
> definitely not going to be ever optional.
> 
> Finally, also set dbus as a dependency, as ModemManager won't work
> without a system DBus available.

I was about to apply this, but this last part seems wrong: if DBus is
only needed at runtime (and not build time), then having the select
BR2_PACKAGE_DBUS in Config.in is enough: it ensures DBus will be built,
it's just that you don't have the guarantee it will be built before
modem-manager.

So:

 - If DBus is only a runtime dependency, don't add dbus do
   MODEM_MANAGER_DEPENDENCIES, and instead add a comment above select
   BR2_PACKAGE_DBUS that says "# runtime dependency"

 - If DBus is a build-time dependency, then your change is correct, but
   your commit log is unclear.

Thanks!

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

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

* [Buildroot] [PATCH v2] modem-manager: update dependencies
  2017-08-25 20:41   ` Thomas Petazzoni
@ 2017-08-27  7:05     ` Aleksander Morgado
  2017-08-27  7:23       ` Thomas Petazzoni
  0 siblings, 1 reply; 10+ messages in thread
From: Aleksander Morgado @ 2017-08-27  7:05 UTC (permalink / raw)
  To: buildroot

> On Fri, 25 Aug 2017 16:21:20 +0200, Aleksander Morgado wrote:
>> The dbus-glib package isn't a dependency since ModemManager 1.0, which
>> is based on libglib2's GDBus implementation.
>>
>> Also, explicitly set libglib2 as dependency, which currently was being
>> implicitly included by libgudev. The next major ModemManager release
>> will have udev/libgudev as optional packages, while libglib2 is
>> definitely not going to be ever optional.
>>
>> Finally, also set dbus as a dependency, as ModemManager won't work
>> without a system DBus available.
>
> I was about to apply this, but this last part seems wrong: if DBus is
> only needed at runtime (and not build time), then having the select
> BR2_PACKAGE_DBUS in Config.in is enough: it ensures DBus will be built,
> it's just that you don't have the guarantee it will be built before
> modem-manager.
>
> So:
>
>  - If DBus is only a runtime dependency, don't add dbus do
>    MODEM_MANAGER_DEPENDENCIES, and instead add a comment above select
>    BR2_PACKAGE_DBUS that says "# runtime dependency"
>
>  - If DBus is a build-time dependency, then your change is correct, but
>    your commit log is unclear.
>

Understood; yes DBus is only runtime dependency, so the Config.in
change would be enough. I guess the same happens with udev then? MM
doesn't build-depend on udev, only on gudev (although it seems that
gudev itself depends on udev).

-- 
Aleksander
https://aleksander.es

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

* [Buildroot] [PATCH v2] modem-manager: update dependencies
  2017-08-27  7:05     ` Aleksander Morgado
@ 2017-08-27  7:23       ` Thomas Petazzoni
  2017-08-27 10:00         ` Aleksander Morgado
  0 siblings, 1 reply; 10+ messages in thread
From: Thomas Petazzoni @ 2017-08-27  7:23 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, 27 Aug 2017 09:05:15 +0200, Aleksander Morgado wrote:

> Understood; yes DBus is only runtime dependency, so the Config.in
> change would be enough.

Well, the package already has "select BR2_PACKAGE_DBUS", so that
shouldn't require any change.

> I guess the same happens with udev then? MM
> doesn't build-depend on udev, only on gudev (although it seems that
> gudev itself depends on udev).

Then yes, having "udev" in MODEM_MANAGER_DEPENDENCIES is useless.

Best regards,

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

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

* [Buildroot] [PATCH v2] modem-manager: update dependencies
  2017-08-27  7:23       ` Thomas Petazzoni
@ 2017-08-27 10:00         ` Aleksander Morgado
  0 siblings, 0 replies; 10+ messages in thread
From: Aleksander Morgado @ 2017-08-27 10:00 UTC (permalink / raw)
  To: buildroot

>> Understood; yes DBus is only runtime dependency, so the Config.in
>> change would be enough.
>
> Well, the package already has "select BR2_PACKAGE_DBUS", so that
> shouldn't require any change.
>

Yeah, I meant the (already existing) Config.in entry would be enough,
no change expected there, sorry for the confusion.

>> I guess the same happens with udev then? MM
>> doesn't build-depend on udev, only on gudev (although it seems that
>> gudev itself depends on udev).
>
> Then yes, having "udev" in MODEM_MANAGER_DEPENDENCIES is useless.
>

Will update the patch and resend, thanks for the clarifications.

-- 
Aleksander
https://aleksander.es

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

* [Buildroot] [PATCH v3] modem-manager: update dependencies
  2017-08-25 14:21 ` [Buildroot] [PATCH v2] " Aleksander Morgado
  2017-08-25 20:41   ` Thomas Petazzoni
@ 2017-08-27 10:42   ` Aleksander Morgado
  2017-08-30 21:30     ` Thomas Petazzoni
  1 sibling, 1 reply; 10+ messages in thread
From: Aleksander Morgado @ 2017-08-27 10:42 UTC (permalink / raw)
  To: buildroot

These are the changes implemented:

  * Remove dbus-glib as a dependency, as it isn't required since
    ModemManager 1.0, which is based on libglib2's GDBus
    implementation.

  * Remove udev as a dependency, as the ModemManager build only needs
    the libgudev package.

  * Explicitly set libglib2 as dependency, which currently was being
    implicitly included by libgudev. The next major ModemManager
    release will have udev/libgudev as optional packages, while
    libglib2 is definitely not going to be ever optional.

  * Add a comment explaining that dbus is only a runtime dependency.

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
---
 package/modem-manager/Config.in        | 4 ++--
 package/modem-manager/modem-manager.mk | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/modem-manager/Config.in b/package/modem-manager/Config.in
index aa7ed1e2f..8e995b417 100644
--- a/package/modem-manager/Config.in
+++ b/package/modem-manager/Config.in
@@ -4,8 +4,8 @@ config BR2_PACKAGE_MODEM_MANAGER
 	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_DBUS # runtime dependency
+	select BR2_PACKAGE_LIBGLIB2
 	select BR2_PACKAGE_LIBGUDEV
 	help
 	  ModemManager is a DBus-activated daemon which controls mobile
diff --git a/package/modem-manager/modem-manager.mk b/package/modem-manager/modem-manager.mk
index 6459f8785..fe08033c7 100644
--- a/package/modem-manager/modem-manager.mk
+++ b/package/modem-manager/modem-manager.mk
@@ -9,7 +9,7 @@ MODEM_MANAGER_SOURCE = ModemManager-$(MODEM_MANAGER_VERSION).tar.xz
 MODEM_MANAGER_SITE = http://www.freedesktop.org/software/ModemManager
 MODEM_MANAGER_LICENSE = GPL-2.0+ (programs, plugins), LGPL-2.0+ (libmm-glib)
 MODEM_MANAGER_LICENSE_FILES = COPYING
-MODEM_MANAGER_DEPENDENCIES = host-pkgconf udev dbus-glib host-intltool libgudev
+MODEM_MANAGER_DEPENDENCIES = host-pkgconf host-intltool libglib2 libgudev
 MODEM_MANAGER_INSTALL_STAGING = YES

 ifeq ($(BR2_PACKAGE_MODEM_MANAGER_LIBQMI),y)
--
2.14.1

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

* [Buildroot] [PATCH v3] modem-manager: update dependencies
  2017-08-27 10:42   ` [Buildroot] [PATCH v3] " Aleksander Morgado
@ 2017-08-30 21:30     ` Thomas Petazzoni
  0 siblings, 0 replies; 10+ messages in thread
From: Thomas Petazzoni @ 2017-08-30 21:30 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun, 27 Aug 2017 12:42:40 +0200, Aleksander Morgado wrote:
> These are the changes implemented:
> 
>   * Remove dbus-glib as a dependency, as it isn't required since
>     ModemManager 1.0, which is based on libglib2's GDBus
>     implementation.
> 
>   * Remove udev as a dependency, as the ModemManager build only needs
>     the libgudev package.
> 
>   * Explicitly set libglib2 as dependency, which currently was being
>     implicitly included by libgudev. The next major ModemManager
>     release will have udev/libgudev as optional packages, while
>     libglib2 is definitely not going to be ever optional.
> 
>   * Add a comment explaining that dbus is only a runtime dependency.
> 
> Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
> ---
>  package/modem-manager/Config.in        | 4 ++--
>  package/modem-manager/modem-manager.mk | 2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)

Applied to next, thanks.

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

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

end of thread, other threads:[~2017-08-30 21:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-25 12:30 [Buildroot] [PATCH] modem-manager: update dependencies Aleksander Morgado
2017-08-25 14:02 ` Thomas Petazzoni
2017-08-25 14:09   ` Aleksander Morgado
2017-08-25 14:21 ` [Buildroot] [PATCH v2] " Aleksander Morgado
2017-08-25 20:41   ` Thomas Petazzoni
2017-08-27  7:05     ` Aleksander Morgado
2017-08-27  7:23       ` Thomas Petazzoni
2017-08-27 10:00         ` Aleksander Morgado
2017-08-27 10:42   ` [Buildroot] [PATCH v3] " Aleksander Morgado
2017-08-30 21:30     ` Thomas Petazzoni

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