diff mbox series

package/dbus: disable systemd for host build

Message ID 20200728104519.3328479-1-john@metanate.com
State Accepted
Headers show
Series package/dbus: disable systemd for host build | expand

Commit Message

John Keeping July 28, 2020, 10:45 a.m. UTC
This fixes an issue if host-dbus happens to be rebuilt after systemd, in
which case it autodetects systemd support but then ignored the prefix
when installing unit files.  That means that is tries to write to the
host system's /usr/lib/ which fails.

There is no reason to build and install systemd support in the host
build, so disable it explicitly.

Signed-off-by: John Keeping <john@metanate.com>
---
 package/dbus/dbus.mk | 1 +
 1 file changed, 1 insertion(+)

Comments

Adam Duskett July 30, 2020, 4:21 p.m. UTC | #1
All;

On Tue, Jul 28, 2020 at 3:45 AM John Keeping <john@metanate.com> wrote:
>
> This fixes an issue if host-dbus happens to be rebuilt after systemd, in
> which case it autodetects systemd support but then ignored the prefix
> when installing unit files.  That means that is tries to write to the
> host system's /usr/lib/ which fails.
>
> There is no reason to build and install systemd support in the host
> build, so disable it explicitly.
>
> Signed-off-by: John Keeping <john@metanate.com>
> ---
>  package/dbus/dbus.mk | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk
> index 312c6ba1d8..3c67625688 100644
> --- a/package/dbus/dbus.mk
> +++ b/package/dbus/dbus.mk
> @@ -107,6 +107,7 @@ HOST_DBUS_CONF_OPTS = \
>         --disable-selinux \
>         --disable-xml-docs \
>         --disable-doxygen-docs \
> +       --disable-systemd \
>         --without-x \
>         --with-xml=expat
>
> --
> 2.27.0
>
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
Tested-by: Adam Duskett <aduskett@gmail.com>
Peter Korsgaard July 31, 2020, 7:10 a.m. UTC | #2
>>>>> "John" == John Keeping <john@metanate.com> writes:

 > This fixes an issue if host-dbus happens to be rebuilt after systemd, in
 > which case it autodetects systemd support but then ignored the prefix
 > when installing unit files.  That means that is tries to write to the
 > host system's /usr/lib/ which fails.

 > There is no reason to build and install systemd support in the host
 > build, so disable it explicitly.

 > Signed-off-by: John Keeping <john@metanate.com>

Committed, thanks.
Peter Korsgaard Aug. 13, 2020, 7:13 p.m. UTC | #3
>>>>> "John" == John Keeping <john@metanate.com> writes:

 > This fixes an issue if host-dbus happens to be rebuilt after systemd, in
 > which case it autodetects systemd support but then ignored the prefix
 > when installing unit files.  That means that is tries to write to the
 > host system's /usr/lib/ which fails.

 > There is no reason to build and install systemd support in the host
 > build, so disable it explicitly.

 > Signed-off-by: John Keeping <john@metanate.com>

Committed to 2020.02.x and 2020.05.x, thanks.
diff mbox series

Patch

diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk
index 312c6ba1d8..3c67625688 100644
--- a/package/dbus/dbus.mk
+++ b/package/dbus/dbus.mk
@@ -107,6 +107,7 @@  HOST_DBUS_CONF_OPTS = \
 	--disable-selinux \
 	--disable-xml-docs \
 	--disable-doxygen-docs \
+	--disable-systemd \
 	--without-x \
 	--with-xml=expat