Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 328443

Summary: dev-db/sqlite-3 with readline enabled doesn't have readline functionality
Product: Gentoo Linux Reporter: Robert Spillner <trent2>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: SQLite build log

Description Robert Spillner 2010-07-15 17:01:30 UTC
Although compiled with use flag "readline" readline isn't available when using sqlite3. Possible workaround is using rlwrap still this is strange.

Reproducible: Always

Steps to Reproduce:
1. fire up sqlite3
2. type some commands
3. hit Arrow-Up key

Actual Results:  
"^[[A"

Expected Results:  
scroll through command buffer
Comment 1 Rafał Mużyło 2010-07-15 20:58:37 UTC
Works for me.
What's the version of readline and sqlite3 ?
Do you have build log of sqlite3 ?
Comment 2 Robert Spillner 2010-07-15 22:05:49 UTC
Created attachment 238941 [details]
SQLite build log
Comment 3 Robert Spillner 2010-07-15 22:06:27 UTC
Readline is version 6, more specific sys-libs/readline-6.1, sqlite3 is dev-db/sqlite-3.6.23.1.

> ldd sqlite

        linux-vdso.so.1 =>  (0x00007fffb511d000)
        libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007f7dbc55a000)
        libreadline.so.6 => /lib/libreadline.so.6 (0x00007f7dbc318000)
        libncurses.so.5 => /lib/libncurses.so.5 (0x00007f7dbc0ca000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f7dbbead000)
        libc.so.6 => /lib/libc.so.6 (0x00007f7dbbb51000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f7dbb94d000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f7dbc7e3000)

Build log attached
Comment 4 Robert Spillner 2010-07-19 08:22:14 UTC
Seems that this bug can me marked INVALID since readline actually works for me with as root and also after I do "su user" as user. However, readline gets disabled in a login-shell for normal users but not for root and I cannot really figure out why.
So this is probably somehow related to settings in bashrc/bash_profile.