Bug 8621

Summary: sqlite package, properly enable readline
Product: buildroot Reporter: Lonnie Abelbeck <lonnie>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Lonnie Abelbeck 2016-01-21 00:52:35 UTC
Properly enable readline, as below:


  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
Comment 1 Lonnie Abelbeck 2016-01-22 04:51:13 UTC
Additionally, while you are checking out this readline fix, 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

Either add the configure option by default or possibly:

  ifeq ($(BR2_STATIC_LIBS),y)
  SQLITE_CONF_OPTS += --enable-dynamic-extensions=no
+ else
+ SQLITE_CONF_OPTS += --disable-static-shell
  endif
Comment 3 Lonnie Abelbeck 2016-01-23 13:58:29 UTC
Works in my testing.