← Back to team overview

maria-developers team mailing list archive

Re: Fwd: some question on bundled libedit in mysql

 

Hi, xiaobing!

On Feb 25, xiaobing jiang wrote:
> 
> and why mysql5.6 remove the bundled readline? I think readline is used
> more than libedit.
> and when using system readline, why perfer libedit to readline ? look
> at cmake/readline.cmake. FIND_SYSTEM_LIBEDIT(edit) ->
> FIND_SYSTEM_LIBEDIT(readline)

For legal reasons.

readline is GPL. libedit is BSD. MySQL can be built as non-GPL binary,
so it cannot be linked with GPL library in these builds.
Apparently, MySQL developers didn't want to maintain different linking
preferences for GPL and non-GPL builds.

In MariaDB we prefer to link with readline. We never link with bundled
libedit at all. Either with system readline, if it's usable, or with
system libedit, or with bundled readline.

Regards,
Sergei



References