diff mbox series

[v2] packagersyslog: enable options when libcurl is enabled

Message ID 20191104211203.52912-1-matthew.weber@rockwellcollins.com
State Rejected
Headers show
Series [v2] packagersyslog: enable options when libcurl is enabled | expand

Commit Message

Matt Weber Nov. 4, 2019, 9:12 p.m. UTC
Following the bump to 8.1910.0, items requiring libcurl were
disabled by default. This patch selectively enables options
which depend on libcurl when that package is enabled in the
build.

Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
---
Changes
v1 -> v2
[Thomas
 - Flipped libcurl conditional and name of this patchset to rsyslog
---
 package/rsyslog/rsyslog.mk | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

Comments

Peter Korsgaard Feb. 2, 2020, 3:06 p.m. UTC | #1
>>>>> "Matt" == Matt Weber <matthew.weber@rockwellcollins.com> writes:

 > Following the bump to 8.1910.0, items requiring libcurl were
 > disabled by default. This patch selectively enables options
 > which depend on libcurl when that package is enabled in the
 > build.

 > Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
 > ---
 > Changes
 > v1 -> v2
 > [Thomas
 >  - Flipped libcurl conditional and name of this patchset to rsyslog
 > ---
 >  package/rsyslog/rsyslog.mk | 12 +++++++++++-
 >  1 file changed, 11 insertions(+), 1 deletion(-)

 > diff --git a/package/rsyslog/rsyslog.mk b/package/rsyslog/rsyslog.mk
 > index 5bd6b59ba3..d5a88b19d3 100644
 > --- a/package/rsyslog/rsyslog.mk
 > +++ b/package/rsyslog/rsyslog.mk
 > @@ -17,7 +17,16 @@ RSYSLOG_PLUGINS = imdiag imfile impstats imptcp \
 >  RSYSLOG_CONF_OPTS = --disable-generate-man-pages \
 >  	$(foreach x,$(call qstrip,$(RSYSLOG_PLUGINS)),--enable-$(x))
 
 > -# Disable items requiring libcurl
 > +ifeq ($(BR2_PACKAGE_LIBCURL),y)
 > +RSYSLOG_DEPENDENCIES += libcurl
 > +RSYSLOG_CONF_OPTS += --enable-elasticsearch \
 > +	--enable-clickhouse \
 > +	--enable-omhttp \
 > +	--enable-fmhttp \
 > +	--enable-imdocker \
 > +	--enable-omhttpfs \
 > +	--enable-mmkubernetes

 I was about to apply this, but it fails to build here (a config with
 just curl and rsyslog):

checking for CURL... yes
checking for LIBLOGNORM... no
configure: error: Package requirements (lognorm >= 2.0.3) were not met:

Package 'lognorm', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBLOGNORM_CFLAGS
and LIBLOGNORM_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make[1]: *** [package/pkg-generic.mk:250: /home/peko/source/buildroot/output-rsyslog/build/rsyslog-8.1911.0/.stamp_configured] Error 1

Care to take a look?
Matt Weber Feb. 3, 2020, 5:35 p.m. UTC | #2
Peter,

On Sun, Feb 2, 2020 at 9:07 AM Peter Korsgaard <peter@korsgaard.com> wrote:
>
> >>>>> "Matt" == Matt Weber <matthew.weber@rockwellcollins.com> writes:
>
>  > Following the bump to 8.1910.0, items requiring libcurl were
>  > disabled by default. This patch selectively enables options
>  > which depend on libcurl when that package is enabled in the
>  > build.
>
>  > Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
>  > ---
>  > Changes
>  > v1 -> v2
>  > [Thomas
>  >  - Flipped libcurl conditional and name of this patchset to rsyslog
>  > ---
>  >  package/rsyslog/rsyslog.mk | 12 +++++++++++-
>  >  1 file changed, 11 insertions(+), 1 deletion(-)
>
>  > diff --git a/package/rsyslog/rsyslog.mk b/package/rsyslog/rsyslog.mk
>  > index 5bd6b59ba3..d5a88b19d3 100644
>  > --- a/package/rsyslog/rsyslog.mk
>  > +++ b/package/rsyslog/rsyslog.mk
>  > @@ -17,7 +17,16 @@ RSYSLOG_PLUGINS = imdiag imfile impstats imptcp \
>  >  RSYSLOG_CONF_OPTS = --disable-generate-man-pages \
>  >      $(foreach x,$(call qstrip,$(RSYSLOG_PLUGINS)),--enable-$(x))
>
>  > -# Disable items requiring libcurl
>  > +ifeq ($(BR2_PACKAGE_LIBCURL),y)
>  > +RSYSLOG_DEPENDENCIES += libcurl
>  > +RSYSLOG_CONF_OPTS += --enable-elasticsearch \
>  > +    --enable-clickhouse \
>  > +    --enable-omhttp \
>  > +    --enable-fmhttp \
>  > +    --enable-imdocker \
>  > +    --enable-omhttpfs \
>  > +    --enable-mmkubernetes
>
>  I was about to apply this, but it fails to build here (a config with
>  just curl and rsyslog):
>
> checking for CURL... yes
> checking for LIBLOGNORM... no
> configure: error: Package requirements (lognorm >= 2.0.3) were not met:
>
> Package 'lognorm', required by 'virtual:world', not found
>
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.
>
> Alternatively, you may set the environment variables LIBLOGNORM_CFLAGS
> and LIBLOGNORM_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
> make[1]: *** [package/pkg-generic.mk:250: /home/peko/source/buildroot/output-rsyslog/build/rsyslog-8.1911.0/.stamp_configured] Error 1
>
> Care to take a look?

I'll take a look.

Matt
Matt Weber Feb. 5, 2020, 1:56 p.m. UTC | #3
Peter,

On Mon, Feb 3, 2020 at 11:35 AM Matthew Weber
<matthew.weber@rockwellcollins.com> wrote:
>
> Peter,
>
> On Sun, Feb 2, 2020 at 9:07 AM Peter Korsgaard <peter@korsgaard.com> wrote:
> >
> > >>>>> "Matt" == Matt Weber <matthew.weber@rockwellcollins.com> writes:
> >
> >  > Following the bump to 8.1910.0, items requiring libcurl were
> >  > disabled by default. This patch selectively enables options
> >  > which depend on libcurl when that package is enabled in the
> >  > build.
> >
> >  > Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
> >  > ---
> >  > Changes
> >  > v1 -> v2
> >  > [Thomas
> >  >  - Flipped libcurl conditional and name of this patchset to rsyslog
> >  > ---
> >  >  package/rsyslog/rsyslog.mk | 12 +++++++++++-
> >  >  1 file changed, 11 insertions(+), 1 deletion(-)
> >
> >  > diff --git a/package/rsyslog/rsyslog.mk b/package/rsyslog/rsyslog.mk
> >  > index 5bd6b59ba3..d5a88b19d3 100644
> >  > --- a/package/rsyslog/rsyslog.mk
> >  > +++ b/package/rsyslog/rsyslog.mk
> >  > @@ -17,7 +17,16 @@ RSYSLOG_PLUGINS = imdiag imfile impstats imptcp \
> >  >  RSYSLOG_CONF_OPTS = --disable-generate-man-pages \
> >  >      $(foreach x,$(call qstrip,$(RSYSLOG_PLUGINS)),--enable-$(x))
> >
> >  > -# Disable items requiring libcurl
> >  > +ifeq ($(BR2_PACKAGE_LIBCURL),y)
> >  > +RSYSLOG_DEPENDENCIES += libcurl
> >  > +RSYSLOG_CONF_OPTS += --enable-elasticsearch \
> >  > +    --enable-clickhouse \
> >  > +    --enable-omhttp \
> >  > +    --enable-fmhttp \
> >  > +    --enable-imdocker \
> >  > +    --enable-omhttpfs \
> >  > +    --enable-mmkubernetes
> >
> >  I was about to apply this, but it fails to build here (a config with
> >  just curl and rsyslog):
> >
> > checking for CURL... yes
> > checking for LIBLOGNORM... no
> > configure: error: Package requirements (lognorm >= 2.0.3) were not met:
> >
> > Package 'lognorm', required by 'virtual:world', not found
> >
> > Consider adjusting the PKG_CONFIG_PATH environment variable if you
> > installed software in a non-standard prefix.
> >
> > Alternatively, you may set the environment variables LIBLOGNORM_CFLAGS
> > and LIBLOGNORM_LIBS to avoid the need to call pkg-config.
> > See the pkg-config man page for more details.
> > make[1]: *** [package/pkg-generic.mk:250: /home/peko/source/buildroot/output-rsyslog/build/rsyslog-8.1911.0/.stamp_configured] Error 1
> >
> > Care to take a look?

Looking at this I think I'd like to reject my patch for now.  I think
we need a specific use case to test this out and justify why libcurl
options should be enabled.  I had just sent the patch to round out the
previous bump that had disabled libcurl related items.

Matt
Peter Korsgaard Feb. 5, 2020, 2:28 p.m. UTC | #4
>>>>> "Matthew" == Matthew Weber <matthew.weber@rockwellcollins.com> writes:

Hi,

 >> > Alternatively, you may set the environment variables LIBLOGNORM_CFLAGS
 >> > and LIBLOGNORM_LIBS to avoid the need to call pkg-config.
 >> > See the pkg-config man page for more details.
 >> > make[1]: *** [package/pkg-generic.mk:250:
 >> > /home/peko/source/buildroot/output-rsyslog/build/rsyslog-8.1911.0/.stamp_configured]
 >> > Error 1
 >> >
 >> > Care to take a look?

 > Looking at this I think I'd like to reject my patch for now.  I think
 > we need a specific use case to test this out and justify why libcurl
 > options should be enabled.  I had just sent the patch to round out the
 > previous bump that had disabled libcurl related items.

Ok, I will update the status in patchwork then.
diff mbox series

Patch

diff --git a/package/rsyslog/rsyslog.mk b/package/rsyslog/rsyslog.mk
index 5bd6b59ba3..d5a88b19d3 100644
--- a/package/rsyslog/rsyslog.mk
+++ b/package/rsyslog/rsyslog.mk
@@ -17,7 +17,16 @@  RSYSLOG_PLUGINS = imdiag imfile impstats imptcp \
 RSYSLOG_CONF_OPTS = --disable-generate-man-pages \
 	$(foreach x,$(call qstrip,$(RSYSLOG_PLUGINS)),--enable-$(x))
 
-# Disable items requiring libcurl
+ifeq ($(BR2_PACKAGE_LIBCURL),y)
+RSYSLOG_DEPENDENCIES += libcurl
+RSYSLOG_CONF_OPTS += --enable-elasticsearch \
+	--enable-clickhouse \
+	--enable-omhttp \
+	--enable-fmhttp \
+	--enable-imdocker \
+	--enable-omhttpfs \
+	--enable-mmkubernetes
+else
 RSYSLOG_CONF_OPTS += --disable-elasticsearch \
 	--disable-clickhouse \
 	--disable-omhttp \
@@ -25,6 +34,7 @@  RSYSLOG_CONF_OPTS += --disable-elasticsearch \
 	--disable-imdocker \
 	--disable-omhttpfs \
 	--disable-mmkubernetes
+endif
 
 ifeq ($(BR2_PACKAGE_GNUTLS),y)
 RSYSLOG_DEPENDENCIES += gnutls