mariadb/cmd-line-utils/libedit
Vladislav Vaintroub efebb39866 Force bundled readline/libedit build as static library.
Packagers may attempt to outsmart MariaDB/MySQL build system -DBUILD_SHARED_LIBS=1, we need to minimize the damage of such attempts.
2012-01-09 21:15:34 +01:00
..
np From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
readline cmd-line-utils/libedit/readline/readline.h 2009-03-19 16:40:54 +01:00
chared.c From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
chared.h From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
CMakeLists.txt Force bundled readline/libedit build as static library. 2012-01-09 21:15:34 +01:00
common.c Bug#45288: pb2 returns a lot of compilation warnings 2010-10-19 20:36:59 -02:00
config.h From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
el.c Bug#11757855 - 49967: built-in libedit doesn't read 2011-04-29 18:52:46 +05:30
el.h From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
el_term.h From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
emacs.c From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
filecomplete.c Bug#45288: pb2 returns a lot of compilation warnings 2010-10-19 20:36:59 -02:00
filecomplete.h From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
hist.c From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
hist.h
histedit.h From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
history.c From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
key.c From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
key.h From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
makelist.sh Back patched libedit portability changes from 5.1.32 2009-03-09 22:16:24 +01:00
map.c From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
map.h
parse.c From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
parse.h From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
prompt.c From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
prompt.h
read.c From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
read.h From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
readline.c Bug#45288: pb2 returns a lot of compilation warnings 2010-10-19 20:36:59 -02:00
README From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
refresh.c From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
refresh.h
search.c From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
search.h
sig.c From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
sig.h From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
sys.h From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
term.c Bug#42430 Final commit to 5.0-bugteam 2009-04-16 11:40:51 +02:00
tokenizer.c From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
tty.c From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
tty.h From jperkin : Merge libedit 2.11 and related files, 2009-02-10 14:39:14 +02:00
vi.c BUG#12329909 - BUILDING MYSQL WITH DEBUG SUPPORT 2011-04-27 17:24:10 +05:30

An approximate method to merge from upstream is:

	# Fetch latest from upstream (we also include some compat stuff)
	$ CVS_RSH=ssh; export CVS_RSH
	$ CVSROOT="anoncvs@stripped:/cvsroot"
	$ cvs co -d libedit -P src/lib/libedit
	$ mkdir libedit/np
	$ for f in src/common/lib/libc/string/strlcat.c \
	>          src/common/lib/libc/string/strlcpy.c \
	>          src/include/vis.h \
	>          src/lib/libc/gen/unvis.c \
	>          src/lib/libc/gen/vis.c \
	>          src/tools/compat/fgetln.c
	> do
	>   cvs co -P ${f}
        >   mv ${f} libedit/np
	> done
	$ rm -rf src
	$ cd libedit

	# Remove files we don't need/use
	$ rm -rf CVS TEST Makefile shlib_version *.[0-9]
	$ (cd readline; rm -rf CVS Makefile)

	# Rename files to match our naming
	$ mv makelist makelist.sh
	$ mv term.h el_term.h

	# Remove NetBSD-specific bits
	$ for file in $(find . -type f)
	> do
	>   cp ${file} ${file}.orig
	>   sed -e 's/#include "term.h"/#include "el_term.h"/g' \
	>       -e 's/sig_handler/el_sig_handler/g' \
	>       -e 's/isprint/el_isprint/g' \
	>       -e '/^__RCSID/d' \
	>       ${file}.orig >${file}
	>   rm ${file}.orig
	> done

then merge remaining bits by hand.  All MySQL-specific changes should be
marked with XXXMYSQL to make them easier to identify and merge.  To generate
a 'clean' diff against upstream you can use the above commands but use

	cvs co -D "2009/02/06 20:09:00" [..]

to fetch the baseline of most recent merge.

Please feed any fixes to Jonathan Perkin <jperkin@stripped> who will endeavour
to merge them upstream and keep diffs minimal.