From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] package/ulogd: add postgresql optional dependency
Date: Thu, 14 Mar 2019 21:16:15 +0100 [thread overview]
Message-ID: <20190314211615.0cbad150@windsurf> (raw)
In-Reply-To: <20190313181512.2668-1-fontaine.fabrice@gmail.com>
On Wed, 13 Mar 2019 19:15:11 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/ulogd/ulogd.mk | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
I've applied, but I have a few comments, see below.
>
> diff --git a/package/ulogd/ulogd.mk b/package/ulogd/ulogd.mk
> index 5b0e558930..5ea127f630 100644
> --- a/package/ulogd/ulogd.mk
> +++ b/package/ulogd/ulogd.mk
> @@ -7,7 +7,7 @@
> ULOGD_VERSION = 2.0.5
> ULOGD_SOURCE = ulogd-$(ULOGD_VERSION).tar.bz2
> ULOGD_SITE = http://www.netfilter.org/projects/ulogd/files
> -ULOGD_CONF_OPTS = --with-dbi=no --with-pgsql=no
> +ULOGD_CONF_OPTS = --with-dbi=no
Would be nice to use --without-foo instead of --with-foo=<no>.
> ULOGD_DEPENDENCIES = host-pkgconf \
> libmnl libnetfilter_acct libnetfilter_conntrack libnetfilter_log \
> libnfnetlink
> @@ -22,11 +22,17 @@ ULOGD_DEPENDENCIES += mysql
> else
> ULOGD_CONF_OPTS += --with-mysql=no
Ditto --without.
> endif
> +ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
> +ULOGD_CONF_OPTS += --with-pgsql
> +ULOGD_DEPENDENCIES += postgresql
> +else
> +ULOGD_CONF_OPTS += --without-pgsql
> +endif
> ifeq ($(BR2_PACKAGE_SQLITE),y)
> ULOGD_DEPENDENCIES += sqlite
Any idea why we don't do --with-sqlite / --without-sqlite ?
> endif
> else
> -ULOGD_CONF_OPTS += --with-mysql=no --without-sqlite
> +ULOGD_CONF_OPTS += --with-mysql=no --without-pgsql --without-sqlite
Ditto --without.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
prev parent reply other threads:[~2019-03-14 20:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-13 18:15 [Buildroot] [PATCH 1/2] package/ulogd: add postgresql optional dependency Fabrice Fontaine
2019-03-13 18:15 ` [Buildroot] [PATCH 2/2] package/ulogd: bump to version 2.0.7 Fabrice Fontaine
2019-03-14 20:24 ` Thomas Petazzoni
2019-03-14 20:16 ` Thomas Petazzoni [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190314211615.0cbad150@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox