* [Buildroot] [PATCH] ulogd: disable DB backends if no threads
@ 2013-12-26 11:34 Gustavo Zacarias
2013-12-26 17:46 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Zacarias @ 2013-12-26 11:34 UTC (permalink / raw)
To: buildroot
Database backends need threads even if sqlite does not.
The mysql client libs need them too but include them in the exclusion
closure anyway to state it very clearly. Fixes:
http://autobuild.buildroot.net/results/1ce/1cece0db309dfe5cecc69e88b02428615ed87316/
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/ulogd/ulogd.mk | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/package/ulogd/ulogd.mk b/package/ulogd/ulogd.mk
index 24a5838..03958bb 100644
--- a/package/ulogd/ulogd.mk
+++ b/package/ulogd/ulogd.mk
@@ -11,15 +11,21 @@ ULOGD_CONF_OPT = --with-dbi=no --with-pgsql=no
ULOGD_AUTORECONF = YES
ULOGD_DEPENDENCIES = host-pkgconf \
libmnl libnetfilter_acct libnetfilter_conntrack libnetfilter_log \
- libnfnetlink $(if $(BR2_PACKAGE_SQLITE),sqlite)
+ libnfnetlink
ULOGD_LICENSE = GPLv2
ULOGD_LICENSE_FILES = COPYING
+# DB backends need threads
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
ifeq ($(BR2_PACKAGE_MYSQL_CLIENT),y)
-ULOGD_CONF_OPT += --with-mysql=$(STAGING_DIR)/usr
-ULOGD_DEPENDENCIES += mysql_client
+ ULOGD_CONF_OPT += --with-mysql=$(STAGING_DIR)/usr
+ ULOGD_DEPENDENCIES += mysql_client
+endif
+ifeq ($(BR2_PACKAGE_SQLITE),y)
+ ULOGD_DEPENDENCIES += sqlite
+endif
else
-ULOGD_CONF_OPT += --with-mysql=no
+ ULOGD_CONF_OPT += --with-mysql=no --without-sqlite
endif
$(eval $(autotools-package))
--
1.8.3.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] ulogd: disable DB backends if no threads
2013-12-26 11:34 [Buildroot] [PATCH] ulogd: disable DB backends if no threads Gustavo Zacarias
@ 2013-12-26 17:46 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2013-12-26 17:46 UTC (permalink / raw)
To: buildroot
Dear Gustavo Zacarias,
On Thu, 26 Dec 2013 08:34:42 -0300, Gustavo Zacarias wrote:
> Database backends need threads even if sqlite does not.
> The mysql client libs need them too but include them in the exclusion
> closure anyway to state it very clearly. Fixes:
> http://autobuild.buildroot.net/results/1ce/1cece0db309dfe5cecc69e88b02428615ed87316/
>
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> package/ulogd/ulogd.mk | 14 ++++++++++----
> 1 file changed, 10 insertions(+), 4 deletions(-)
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-26 17:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-26 11:34 [Buildroot] [PATCH] ulogd: disable DB backends if no threads Gustavo Zacarias
2013-12-26 17:46 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox