package/sqlite: Disable autoreconf
PATCH 1/4 package/sqlite: Disable autoreconf
Currently we have no patches for this package, compilation works without autoreconf.
--- package/sqlite/sqlite.mk | 3 --- 1 file changed, 3 deletions(-)
package/sqlite/sqlite.mk +0 -3
@@ -11,9 +11,6 @@ SQLITE_LICENSE = Public domain SQLITE_LICENSE_FILES = tea/license.terms SQLITE_INSTALL_STAGING = YES -# Patching Makefile.am: -SQLITE_AUTORECONF = YES - ifeq ($(BR2_PACKAGE_SQLITE_STAT3),y) SQLITE_CFLAGS += -DSQLITE_ENABLE_STAT3 endif
Signature · 1 line
2.7.0.rc3
PATCH 2/4 package/sqlite: Dynamically link libsqlite.so to bin/sqlite3
Fixes https://bugs.busybox.net/show_bug.cgi?id=8621#c1
Lonnie Abelbeck wrote:
"recently sqlite changed it's default behavior wrt the sqlite CLI tool,
previously it was dynamically linked with libsqlite3.so.0 by default, now it is statically linked by default.
The old behavior can be signaled with: --disable-static-shell"
--- package/sqlite/sqlite.mk | 2 ++ 1 file changed, 2 insertions(+)
package/sqlite/sqlite.mk +2 -0
@@ -35,6 +35,8 @@ SQLITE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) $(SQLITE_CFLAGS)" ifeq ($(BR2_STATIC_LIBS),y) SQLITE_CONF_OPTS += --enable-dynamic-extensions=no +else +SQLITE_CONF_OPTS += --disable-static-shell endif ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
Signature · 1 line
2.7.0.rc3
PATCH 3/4 package/sqlite: Fix readline support
In reply to Bernd KuhlsFixes https://bugs.busybox.net/show_bug.cgi?id=8621#c0
--- package/sqlite/sqlite.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/sqlite/sqlite.mk +1 -1
@@ -47,7 +47,7 @@ endif ifeq ($(BR2_PACKAGE_SQLITE_READLINE),y) SQLITE_DEPENDENCIES += ncurses readline -SQLITE_CONF_OPTS += --with-readline-inc="-I$(STAGING_DIR)/usr/include" +SQLITE_CONF_OPTS += --enable-readline else SQLITE_CONF_OPTS += --disable-readline endif
Signature · 1 line
2.7.0.rc3
PATCH 4/4 package/sqlite: add optional support for libedit
In reply to Bernd KuhlsOnly one library is used for command-line editing by sqlite, therefore create a choice option between current readline support and libedit.
The default of the choice option is readline in order to not change current behaviour in buildroot. Please note that sqlite first checks for libedit and, if found, ignores readline, see configure.ac, lines 50+:
if test x"$LIBS" != "x"; then
AC_DEFINE([HAVE_EDITLINE],1,Define to use BSD editline)
else
unset ac_cv_search_readline
fi
--- package/sqlite/Config.in | 14 +++++++++++++- package/sqlite/sqlite.mk | 7 +++++++ 2 files changed, 20 insertions(+), 1 deletion(-)
package/sqlite/Config.in +13 -1
@@ -8,13 +8,25 @@ config BR2_PACKAGE_SQLITE if BR2_PACKAGE_SQLITE +choice + prompt "Command-line editing" + default BR2_PACKAGE_SQLITE_READLINE + help + Enable command-line editing. + +config BR2_PACKAGE_SQLITE_LIBEDIT + bool "libedit" + select BR2_PACKAGE_LIBEDIT + config BR2_PACKAGE_SQLITE_READLINE - bool "Command-line editing" + bool "readline" select BR2_PACKAGE_NCURSES select BR2_PACKAGE_READLINE help Enable command-line editing. This requires ncurses and readline. +endchoice + config BR2_PACKAGE_SQLITE_STAT3 bool "Additional query optimizations (stat3)" help
package/sqlite/sqlite.mk +7 -0
@@ -45,6 +45,13 @@ else SQLITE_CONF_OPTS += --disable-threadsafe endif +ifeq ($(BR2_PACKAGE_SQLITE_LIBEDIT),y) +SQLITE_DEPENDENCIES += libedit +SQLITE_CONF_OPTS += --enable-editline +else +SQLITE_CONF_OPTS += --disable-editline +endif + ifeq ($(BR2_PACKAGE_SQLITE_READLINE),y) SQLITE_DEPENDENCIES += ncurses readline SQLITE_CONF_OPTS += --enable-readline
Signature · 1 line
2.7.0.rc3
PATCH 4/4 package/sqlite: add optional support for libedit
Dear Bernd Kuhls,
Quoted 15 lines · Bernd Kuhls
package/sqlite/Config.in +7
-0@@ -8,13 +8,25 @@ config BR2_PACKAGE_SQLITE if BR2_PACKAGE_SQLITE +choice + prompt "Command-line editing" + default BR2_PACKAGE_SQLITE_READLINE + help + Enable command-line editing. + +config BR2_PACKAGE_SQLITE_LIBEDIT
package/sqlite/Config.in config BR2_PACKAGE_SQLITE · line 26
Quoted 10 lines
package/sqlite/Config.in +4
-1+ bool "libedit" + select BR2_PACKAGE_LIBEDIT + config BR2_PACKAGE_SQLITE_READLINE - bool "Command-line editing" + bool "readline" select BR2_PACKAGE_NCURSES select BR2_PACKAGE_READLINE help Enable command-line editing. This requires ncurses and readline.
I am not sure I like adding a choice for such a simple thing. Config.in choices are not randomized in our build testing.
What about instead dropping the BR2_PACKAGE_SQLITE_READLINE option, and automatically enable readline/libedit support in sqlite when the corresponding packages are enabled ?
Peter, what do you think ?
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 4/4 package/sqlite: add optional support for libedit
Quoted 34 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Dear Bernd Kuhls,
Quoted 21 lines · Bernd Kuhls
package/sqlite/Config.in +0
-0@@ -8,13 +8,25 @@ config BR2_PACKAGE_SQLITEif
BR2_PACKAGE_SQLITEpackage/sqlite/Config.in +10
-0+choice + prompt "Command-line editing" + default BR2_PACKAGE_SQLITE_READLINE + help + Enable command-line editing. + +config BR2_PACKAGE_SQLITE_LIBEDIT + bool "libedit" + select BR2_PACKAGE_LIBEDIT +config
BR2_PACKAGE_SQLITE_READLINEpackage/sqlite/Config.in +1
-1- bool "Command-line editing" + bool "readline"Quoted 4 lines
select
BR2_PACKAGE_NCURSES
selectBR2_PACKAGE_READLINE
help
Enable command-line editing. This requires ncurses and readline.I am not sure I like adding a choice for such a simple thing. Config.in choices are not randomized in our build testing.
Quoted 5 lines
What about instead dropping the
BR2_PACKAGE_SQLITE_READLINEoption, and automatically enable readline/libedit support in sqlite when the corresponding packages are enabled ?Peter, what do you think ?
Yes, I also think that would be nicer. The situation with readline is imho quite like openssl, E.G. we should just enable support for it in packages if it is present.
Signature · 2 lines
Venlig hilsen, Peter Korsgaard
PATCH 1/4 package/sqlite: Disable autoreconf
In reply to Bernd KuhlsDear Bernd Kuhls,
Quoted 7 lines · Bernd Kuhls
Currently we have no patches for this package, compilation works without autoreconf.
Signed-off-by Bernd Kuhls <[email protected]>--- package/sqlite/sqlite.mk | 3 --- 1 file changed, 3 deletions(-)
Patches 1-3 applied, thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com