# HG changeset patch # User "Yann E. MORIN" # Date 1237849508 0 # Node ID 2b591f1d34ba377b7a41563013cda4cf05fc32c4 # Parent a6829a4a6afe3c3dfe7bc346a8f4e66d379af2df xlcwu wrote: Seems ncurses 5.7 need build host stage for tic step; if use host tic (ubuntu) the build process hang in the below step. So I guess need to build ncurses host stage to build new tic and provided a patch to that efect. And in fact, we do need "tic" to run on the _build_ system to properly generate the terminfo database. Note: this is fully functional, but still requires a litle bit of tweaking so that ${CT_BUILD}-gcc gets used instead of plain gcc. But that's a minor problem for now... /trunk/scripts/build/debug/300-gdb.sh | 35 33 2 0 +++++++++++++++++++++++++++++++++-- /trunk/scripts/build/internals.sh | 1 1 0 0 + 2 files changed, 34 insertions(+), 2 deletions(-) diff -r a6829a4a6afe -r 2b591f1d34ba scripts/build/debug/300-gdb.sh --- a/scripts/build/debug/300-gdb.sh Mon Mar 23 20:47:30 2009 +0000 +++ b/scripts/build/debug/300-gdb.sh Mon Mar 23 23:05:08 2009 +0000 @@ -134,6 +134,37 @@ if [ "${CT_GDB_NATIVE}" = "y" ]; then CT_DoStep INFO "Installing native gdb" + CT_DoStep INFO "Installing native ncurses tic" + CT_DoLog EXTRA "Configuring ncurses tic" + mkdir -p "${CT_BUILD_DIR}/build-ncurses-build-tic" + cd "${CT_BUILD_DIR}/build-ncurses-build-tic" + + ncurses_opts= + [ "${CT_CC_LANG_CXX}" = "y" ] || ncurses_opts="${ncurses_opts} --without-cxx --without-cxx-binding" + [ "${CT_CC_LANG_ADA}" = "y" ] || ncurses_opts="${ncurses_opts} --without-ada" + + CT_DoExecLog ALL \ + "${CT_SRC_DIR}/ncurses-${CT_NCURSES_VERSION}/configure" \ + --build=${CT_BUILD} \ + --host=${CT_BUILD} \ + --prefix=/usr \ + --without-shared \ + --enable-symlinks \ + --with-build-cc=${CT_BUILD}-gcc \ + --with-build-cpp=${CT_BUILD}-gcc \ + --with-build-cflags="${CT_CFLAGS_FOR_HOST}" \ + ${ncurses_opts} + + CT_DoLog EXTRA "Building ncurses tic" + CT_DoExecLog ALL make -C "${CT_BUILD_DIR}/build-ncurses-build-tic/include" + CT_DoExecLog ALL make -C "${CT_BUILD_DIR}/build-ncurses-build-tic/progs" tic + + CT_DoLog EXTRA "Installing ncurses tic" + CT_DoExecLog ALL install -d -m 0755 "${CT_PREFIX_DIR}/bin" + CT_DoExecLog ALL install -m 0755 "${CT_BUILD_DIR}/build-ncurses-build-tic/progs/tic" "${CT_PREFIX_DIR}/bin/tic" + + CT_EndStep + CT_DoStep INFO "Installing ncurses library" CT_DoLog EXTRA "Configuring ncurses" mkdir -p "${CT_BUILD_DIR}/build-ncurses" @@ -147,8 +178,8 @@ "${CT_SRC_DIR}/ncurses-${CT_NCURSES_VERSION}/configure" \ --build=${CT_BUILD} \ --host=${CT_TARGET} \ - --with-build-cc=${CT_CC} \ - --with-build-cpp=${CT_CC} \ + --with-build-cc=${CT_BUILD}-gcc \ + --with-build-cpp=${CT_BUILD}-gcc \ --with-build-cflags="${CT_CFLAGS_FOR_HOST}" \ --prefix=/usr \ --with-shared \ diff -r a6829a4a6afe -r 2b591f1d34ba scripts/build/internals.sh --- a/scripts/build/internals.sh Mon Mar 23 20:47:30 2009 +0000 +++ b/scripts/build/internals.sh Mon Mar 23 23:05:08 2009 +0000 @@ -10,6 +10,7 @@ find "${CT_PREFIX_DIR}/bin" -name "${CT_BUILD}-"'*' -exec rm -fv {} \; |CT_DoLog DEBUG find "${CT_PREFIX_DIR}/bin" -name "${CT_HOST}-"'*' -exec rm -fv {} \; |CT_DoLog DEBUG CT_DoExecLog DEBUG rm -fv "${CT_PREFIX_DIR}/bin/makeinfo" + CT_DoExecLog DEBUG rm -fv "${CT_PREFIX_DIR}/bin/tic" if [ "${CT_BARE_METAL}" != "y" ]; then CT_DoLog EXTRA "Installing the populate helper"