public inbox for buildroot@busybox.net
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/collectd: make network crypto support discoverable
@ 2020-03-11 13:35 Pascal de Bruijn
  2020-03-22 15:07 ` Thomas Petazzoni
  2020-04-07 16:06 ` Peter Korsgaard
  0 siblings, 2 replies; 4+ messages in thread
From: Pascal de Bruijn @ 2020-03-11 13:35 UTC (permalink / raw)
  To: buildroot

before it was completely non-obvious how to get crypto support
in collectd's network module

this introduces a collectd config option which makes sure
gcrypt is built, and can't be accidentally unselected
resulting in an accidental non-crypto build of collectd

Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
---
 package/collectd/Config.in | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/collectd/Config.in b/package/collectd/Config.in
index 303b5dc01b..4b34ec60eb 100644
--- a/package/collectd/Config.in
+++ b/package/collectd/Config.in
@@ -603,6 +603,13 @@ config BR2_PACKAGE_COLLECTD_NETWORK
 	help
 	  Send/receive values from other instances of collectd.
 
+config BR2_PACKAGE_COLLECTD_NETWORK_GCRYPT
+	bool "crypto support"
+	depends on BR2_PACKAGE_COLLECTD_NETWORK
+	select BR2_PACKAGE_LIBGCRYPT
+	help
+	  Enable crypto support
+
 config BR2_PACKAGE_COLLECTD_RRDTOOL
 	bool "rrdtool"
 	depends on BR2_USE_WCHAR # rrdtool
-- 
2.17.1

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

* [Buildroot] [PATCH] package/collectd: make network crypto support discoverable
  2020-03-11 13:35 [Buildroot] [PATCH] package/collectd: make network crypto support discoverable Pascal de Bruijn
@ 2020-03-22 15:07 ` Thomas Petazzoni
  2020-04-07 16:06 ` Peter Korsgaard
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2020-03-22 15:07 UTC (permalink / raw)
  To: buildroot

On Wed, 11 Mar 2020 14:35:04 +0100
Pascal de Bruijn <p.debruijn@unilogic.nl> wrote:

> before it was completely non-obvious how to get crypto support
> in collectd's network module
> 
> this introduces a collectd config option which makes sure
> gcrypt is built, and can't be accidentally unselected
> resulting in an accidental non-crypto build of collectd
> 
> Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
> ---
>  package/collectd/Config.in | 7 +++++++
>  1 file changed, 7 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH] package/collectd: make network crypto support discoverable
  2020-03-11 13:35 [Buildroot] [PATCH] package/collectd: make network crypto support discoverable Pascal de Bruijn
  2020-03-22 15:07 ` Thomas Petazzoni
@ 2020-04-07 16:06 ` Peter Korsgaard
  2020-04-21 20:54   ` Thomas Petazzoni
  1 sibling, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2020-04-07 16:06 UTC (permalink / raw)
  To: buildroot

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

 > before it was completely non-obvious how to get crypto support
 > in collectd's network module

 > this introduces a collectd config option which makes sure
 > gcrypt is built, and can't be accidentally unselected
 > resulting in an accidental non-crypto build of collectd

 > Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
 > ---
 >  package/collectd/Config.in | 7 +++++++
 >  1 file changed, 7 insertions(+)

 > diff --git a/package/collectd/Config.in b/package/collectd/Config.in
 > index 303b5dc01b..4b34ec60eb 100644
 > --- a/package/collectd/Config.in
 > +++ b/package/collectd/Config.in
 > @@ -603,6 +603,13 @@ config BR2_PACKAGE_COLLECTD_NETWORK
 >  	help
 >  	  Send/receive values from other instances of collectd.
 
 > +config BR2_PACKAGE_COLLECTD_NETWORK_GCRYPT
 > +	bool "crypto support"
 > +	depends on BR2_PACKAGE_COLLECTD_NETWORK
 > +	select BR2_PACKAGE_LIBGCRYPT
 > +	help
 > +	  Enable crypto support

It would IMHO also make sense to change the conditional in collectd.mk
to use this symbol so crypto support is really disabled if this option
is turned off, otherwise it is just confusing in the other direction
now.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH] package/collectd: make network crypto support discoverable
  2020-04-07 16:06 ` Peter Korsgaard
@ 2020-04-21 20:54   ` Thomas Petazzoni
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2020-04-21 20:54 UTC (permalink / raw)
  To: buildroot

On Tue, 07 Apr 2020 18:06:19 +0200
Peter Korsgaard <peter@korsgaard.com> wrote:

>  > +config BR2_PACKAGE_COLLECTD_NETWORK_GCRYPT
>  > +	bool "crypto support"
>  > +	depends on BR2_PACKAGE_COLLECTD_NETWORK
>  > +	select BR2_PACKAGE_LIBGCRYPT
>  > +	help
>  > +	  Enable crypto support  
> 
> It would IMHO also make sense to change the conditional in collectd.mk
> to use this symbol so crypto support is really disabled if this option
> is turned off, otherwise it is just confusing in the other direction
> now.

Indeed. Pascal, could you send a patch implementing this?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

end of thread, other threads:[~2020-04-21 20:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-11 13:35 [Buildroot] [PATCH] package/collectd: make network crypto support discoverable Pascal de Bruijn
2020-03-22 15:07 ` Thomas Petazzoni
2020-04-07 16:06 ` Peter Korsgaard
2020-04-21 20:54   ` Thomas Petazzoni

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