Skip to contentSkip to conversation

tcl: remove non-existent --with-system-sqlite configure option

PATCH New Vicente Olivert Riera 2 participants 2 messages Mar 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tcl: remove non-existent --with-system-sqlite configure option

For some reason, even if this option is not available anymore, it's causing build failures if we use it. When we remove it the build succeeds.

Fixes:
http://autobuild.buildroot.net/results/022/02296f8624d3406a63d3a179f53862f245c56dc1/

---
 package/tcl/tcl.mk | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
package/tcl/tcl.mk +1 -2
index 9fd1195..52be7b8 100644
@@ -21,8 +21,7 @@ TCL_AUTORECONF = YES
 TCL_CONF_OPTS = \
 	--disable-symbols \
 	--disable-langinfo \
-	--disable-framework \
-	--with-system-sqlite
+	--disable-framework
 
 HOST_TCL_CONF_OPTS = \
 	--disable-symbols \
Signature · 1 line
2.7.3
#1 lore raw

PATCH 1/1 tcl: remove non-existent --with-system-sqlite configure option

Hello,

Quoted 8 lines · Vicente Olivert Riera

For some reason, even if this option is not available anymore, it's causing build failures if we use it. When we remove it the build succeeds.

Fixes:
http://autobuild.buildroot.net/results/022/02296f8624d3406a63d3a179f53862f245c56dc1/

I don't see why you think this option no longer exists. A simple grep is pretty clear that it still exists:

pkgs/sqlite3.11.0/configure: --with-system-sqlite use a system-supplied libsqlite3 instead of the
pkgs/sqlite3.11.0/configure:# The --with-system-sqlite causes the TCL bindings to SQLite to use pkgs/sqlite3.11.0/configure:# Check whether --with-system-sqlite was given. pkgs/sqlite3.11.0/configure.ac:# The --with-system-sqlite causes the TCL bindings to SQLite to use pkgs/sqlite3.11.0/configure.ac:AC_ARG_WITH([system-sqlite], pkgs/sqlite3.11.0/configure.ac: [AC_HELP_STRING([--with-system-sqlite],

Looking at the output of './configure --help' to figure out which options are available is not sufficient. Indeed, when you have sub-configure scripts, as is the case for tcl, ./configure --help doesn't show you the options of the sub-configures, but it is actually passing the main configure options down to the sub-configures. See
https://www.gnu.org/software/automake/manual/html_node/Subpackages.html#Subpackages
for details.

So your patch fixes the problem because it tells TCL to use its bundled version of sqlite, and not the one provided by Buildroot. Which means:

TCL_DEPENDENCIES = $(if $(BR2_PACKAGE_SQLITE),sqlite)

becomes useless, as well as other parts of tcl.mk that refer to BR2_PACKAGE_SQLITE.

In addition, we generally prefer to *not* use bundled versions of the libraries, so it would be better to figure out why using the system sqlite no longer works, possibly by reporting a bug upstream.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com