All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 2/3] package/lvm2: optional systemd integration
@ 2020-02-04 14:16 Pascal de Bruijn
  2020-02-04 16:43 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Pascal de Bruijn @ 2020-02-04 14:16 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
---
 package/lvm2/Config.in | 7 +++++++
 package/lvm2/lvm2.mk   | 6 ++++++
 2 files changed, 13 insertions(+)

diff --git a/package/lvm2/Config.in b/package/lvm2/Config.in
index de5b972..0f9e86e 100644
--- a/package/lvm2/Config.in
+++ b/package/lvm2/Config.in
@@ -47,6 +47,13 @@ config BR2_PACKAGE_LVM2_APP_LIBRARY
 comment "lvm2 application library needs a glibc or uClibc toolchain"
 	depends on BR2_TOOLCHAIN_USES_MUSL
 
+config BR2_PACKAGE_LVM2_SYSTEMD
+	bool "install systemd integration"
+	depends on BR2_PACKAGE_SYSTEMD
+	select BR2_PACKAGE_LVM2_APP_LIBRARY
+	help
+	  Install systemd generator and services.
+
 endif
 
 comment "lvm2 needs a toolchain w/ threads, dynamic library"
diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk
index 43370b0..9847f96 100644
--- a/package/lvm2/lvm2.mk
+++ b/package/lvm2/lvm2.mk
@@ -54,6 +54,12 @@ else
 LVM2_CONF_OPTS += --disable-applib
 endif
 
+ifeq ($(BR2_PACKAGE_LVM2_SYSTEMD),y)
+LVM2_DEPENDANCIES += systemd
+LVM2_CONF_OPTS += --enable-lvmetad
+LVM2_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install install_systemd_units install_systemd_generators
+endif
+
 ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)
 LVM2_CONF_ENV += ac_cv_flag_HAVE_PIE=no
 endif
-- 
2.7.4

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

* [Buildroot] [PATCH 2/3] package/lvm2: optional systemd integration
  2020-02-04 14:16 [Buildroot] [PATCH 2/3] package/lvm2: optional systemd integration Pascal de Bruijn
@ 2020-02-04 16:43 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2020-02-04 16:43 UTC (permalink / raw)
  To: buildroot

>>>>> "Pascal" == Pascal de Bruijn <p.debruijn@unilogic.nl> writes:

 > Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
 > ---
 >  package/lvm2/Config.in | 7 +++++++
 >  package/lvm2/lvm2.mk   | 6 ++++++
 >  2 files changed, 13 insertions(+)

 > diff --git a/package/lvm2/Config.in b/package/lvm2/Config.in
 > index de5b972..0f9e86e 100644
 > --- a/package/lvm2/Config.in
 > +++ b/package/lvm2/Config.in
 > @@ -47,6 +47,13 @@ config BR2_PACKAGE_LVM2_APP_LIBRARY
 >  comment "lvm2 application library needs a glibc or uClibc toolchain"
 >  	depends on BR2_TOOLCHAIN_USES_MUSL
 
 > +config BR2_PACKAGE_LVM2_SYSTEMD
 > +	bool "install systemd integration"
 > +	depends on BR2_PACKAGE_SYSTEMD
 > +	select BR2_PACKAGE_LVM2_APP_LIBRARY
 > +	help
 > +	  Install systemd generator and services.
 > +

Why would we want a user selectable option for this and not just
automatically do that if systemd and app-library are enabled?

 >  endif
 
 >  comment "lvm2 needs a toolchain w/ threads, dynamic library"
 > diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk
 > index 43370b0..9847f96 100644
 > --- a/package/lvm2/lvm2.mk
 > +++ b/package/lvm2/lvm2.mk
 > @@ -54,6 +54,12 @@ else
 >  LVM2_CONF_OPTS += --disable-applib
 >  endif
 
 > +ifeq ($(BR2_PACKAGE_LVM2_SYSTEMD),y)
 > +LVM2_DEPENDANCIES += systemd

Typo.

 > +LVM2_CONF_OPTS += --enable-lvmetad

What is lvmetad? What is the relation to systemd?


-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2020-02-04 16:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-04 14:16 [Buildroot] [PATCH 2/3] package/lvm2: optional systemd integration Pascal de Bruijn
2020-02-04 16:43 ` Peter Korsgaard

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.