All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v3 1/1] package/iwd: add dbus compile time dependency
@ 2022-10-31 17:49 James Hilliard
  2022-11-14  7:18 ` Lang Daniel via buildroot
  2022-11-22 21:35 ` Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 4+ messages in thread
From: James Hilliard @ 2022-10-31 17:49 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard

In 5b3b2d80f4cf586d360ff696c3dacbd4cb48fdc4 we dropped dbus as a build
dependency, however we still need it when building with systemd so
that the service directory is available via pkg-config.

In addition we can drop --with-dbus-datadir by unconditionally
requiring dbus as the datadir will then be fetched from pkg-config.

Fixes:
checking D-Bus bus services directory... configure: error: D-Bus bus services directory is required

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
Changes v2 -> v3:
  - always depend on dbus
Changes v1 -> v2:
  - depend on dbus when depending on systemd
---
 package/iwd/iwd.mk | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/package/iwd/iwd.mk b/package/iwd/iwd.mk
index 002988cf33..5ffbde334e 100644
--- a/package/iwd/iwd.mk
+++ b/package/iwd/iwd.mk
@@ -16,9 +16,8 @@ IWD_SELINUX_MODULES = networkmanager
 IWD_CONF_OPTS = \
 	--disable-manual-pages \
 	--enable-external-ell \
-	--enable-dbus-policy \
-	--with-dbus-datadir=/usr/share
-IWD_DEPENDENCIES = ell
+	--enable-dbus-policy
+IWD_DEPENDENCIES = dbus ell
 
 ifeq ($(BR2_PACKAGE_READLINE),y)
 # iwd client depends on readline (GPL-3.0+)
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [PATCH v3 1/1] package/iwd: add dbus compile time dependency
  2022-10-31 17:49 [Buildroot] [PATCH v3 1/1] package/iwd: add dbus compile time dependency James Hilliard
@ 2022-11-14  7:18 ` Lang Daniel via buildroot
  2022-11-14 13:35   ` James Hilliard
  2022-11-22 21:35 ` Thomas Petazzoni via buildroot
  1 sibling, 1 reply; 4+ messages in thread
From: Lang Daniel via buildroot @ 2022-11-14  7:18 UTC (permalink / raw)
  To: James Hilliard, buildroot@buildroot.org

Hi James,

> In 5b3b2d80f4cf586d360ff696c3dacbd4cb48fdc4 we dropped dbus as a build
> dependency, however we still need it when building with systemd so
> that the service directory is available via pkg-config.

Sorry for getting this whole mess started.
I only did a compile test without systemd before submitting the patch.

I guess the comment in package/iwd/Config.in:8 should be removed then,
since that's what got me started.

> In addition we can drop --with-dbus-datadir by unconditionally
> requiring dbus as the datadir will then be fetched from pkg-config.
>
> Fixes:
> checking D-Bus bus services directory... configure: error: D-Bus bus services directory is required
>
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
> Changes v2 -> v3:
>   - always depend on dbus
> Changes v1 -> v2:
>   - depend on dbus when depending on systemd
> ---
>  package/iwd/iwd.mk | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/package/iwd/iwd.mk b/package/iwd/iwd.mk
> index 002988cf33..5ffbde334e 100644
> --- a/package/iwd/iwd.mk
> +++ b/package/iwd/iwd.mk
> @@ -16,9 +16,8 @@ IWD_SELINUX_MODULES = networkmanager
>  IWD_CONF_OPTS = \
>          --disable-manual-pages \
>          --enable-external-ell \
> -       --enable-dbus-policy \
> -       --with-dbus-datadir=/usr/share
> -IWD_DEPENDENCIES = ell
> +       --enable-dbus-policy
> +IWD_DEPENDENCIES = dbus ell
>  
>  ifeq ($(BR2_PACKAGE_READLINE),y)
>  # iwd client depends on readline (GPL-3.0+)
> -- 
> 2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH v3 1/1] package/iwd: add dbus compile time dependency
  2022-11-14  7:18 ` Lang Daniel via buildroot
@ 2022-11-14 13:35   ` James Hilliard
  0 siblings, 0 replies; 4+ messages in thread
From: James Hilliard @ 2022-11-14 13:35 UTC (permalink / raw)
  To: Lang Daniel; +Cc: buildroot@buildroot.org

On Mon, Nov 14, 2022 at 3:18 AM Lang Daniel <d.lang@abatec.at> wrote:
>
> Hi James,
>
> > In 5b3b2d80f4cf586d360ff696c3dacbd4cb48fdc4 we dropped dbus as a build
> > dependency, however we still need it when building with systemd so
> > that the service directory is available via pkg-config.
>
> Sorry for getting this whole mess started.
> I only did a compile test without systemd before submitting the patch.
>
> I guess the comment in package/iwd/Config.in:8 should be removed then,
> since that's what got me started.

It's not entirely wrong as dbus isn't strictly needed as a build dependency,
see discussion in my original v1 fix patch which leaves it as runtime only:
https://patchwork.ozlabs.org/project/buildroot/patch/20221031010904.1109541-1-james.hilliard1@gmail.com/

>
> > In addition we can drop --with-dbus-datadir by unconditionally
> > requiring dbus as the datadir will then be fetched from pkg-config.
> >
> > Fixes:
> > checking D-Bus bus services directory... configure: error: D-Bus bus services directory is required
> >
> > Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> > ---
> > Changes v2 -> v3:
> >   - always depend on dbus
> > Changes v1 -> v2:
> >   - depend on dbus when depending on systemd
> > ---
> >  package/iwd/iwd.mk | 5 ++---
> >  1 file changed, 2 insertions(+), 3 deletions(-)
> >
> > diff --git a/package/iwd/iwd.mk b/package/iwd/iwd.mk
> > index 002988cf33..5ffbde334e 100644
> > --- a/package/iwd/iwd.mk
> > +++ b/package/iwd/iwd.mk
> > @@ -16,9 +16,8 @@ IWD_SELINUX_MODULES = networkmanager
> >  IWD_CONF_OPTS = \
> >          --disable-manual-pages \
> >          --enable-external-ell \
> > -       --enable-dbus-policy \
> > -       --with-dbus-datadir=/usr/share
> > -IWD_DEPENDENCIES = ell
> > +       --enable-dbus-policy
> > +IWD_DEPENDENCIES = dbus ell
> >
> >  ifeq ($(BR2_PACKAGE_READLINE),y)
> >  # iwd client depends on readline (GPL-3.0+)
> > --
> > 2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH v3 1/1] package/iwd: add dbus compile time dependency
  2022-10-31 17:49 [Buildroot] [PATCH v3 1/1] package/iwd: add dbus compile time dependency James Hilliard
  2022-11-14  7:18 ` Lang Daniel via buildroot
@ 2022-11-22 21:35 ` Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-11-22 21:35 UTC (permalink / raw)
  To: James Hilliard; +Cc: buildroot

On Mon, 31 Oct 2022 11:49:59 -0600
James Hilliard <james.hilliard1@gmail.com> wrote:

> In 5b3b2d80f4cf586d360ff696c3dacbd4cb48fdc4 we dropped dbus as a build
> dependency, however we still need it when building with systemd so
> that the service directory is available via pkg-config.
> 
> In addition we can drop --with-dbus-datadir by unconditionally
> requiring dbus as the datadir will then be fetched from pkg-config.
> 
> Fixes:
> checking D-Bus bus services directory... configure: error: D-Bus bus services directory is required
> 
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
> Changes v2 -> v3:
>   - always depend on dbus
> Changes v1 -> v2:
>   - depend on dbus when depending on systemd
> ---
>  package/iwd/iwd.mk | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)

Applied to master after adding a reference to the autobuilder failure.
Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-11-22 21:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-31 17:49 [Buildroot] [PATCH v3 1/1] package/iwd: add dbus compile time dependency James Hilliard
2022-11-14  7:18 ` Lang Daniel via buildroot
2022-11-14 13:35   ` James Hilliard
2022-11-22 21:35 ` Thomas Petazzoni via buildroot

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.