xlcwu <xlcwu.taiwan@gmail.com> wrote:
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Mar 23 23:05:08 2009 +0000 (2009-03-23)
changeset 12642b591f1d34ba
parent 1263 a6829a4a6afe
child 1265 d00c858f044f
xlcwu <xlcwu.taiwan@gmail.com> 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(-)
scripts/build/debug/300-gdb.sh
scripts/build/internals.sh
     1.1 --- a/scripts/build/debug/300-gdb.sh	Mon Mar 23 20:47:30 2009 +0000
     1.2 +++ b/scripts/build/debug/300-gdb.sh	Mon Mar 23 23:05:08 2009 +0000
     1.3 @@ -134,6 +134,37 @@
     1.4      if [ "${CT_GDB_NATIVE}" = "y" ]; then
     1.5          CT_DoStep INFO "Installing native gdb"
     1.6  
     1.7 +        CT_DoStep INFO "Installing native ncurses tic"
     1.8 +        CT_DoLog EXTRA "Configuring ncurses tic"
     1.9 +        mkdir -p "${CT_BUILD_DIR}/build-ncurses-build-tic"
    1.10 +        cd "${CT_BUILD_DIR}/build-ncurses-build-tic"
    1.11 +
    1.12 +        ncurses_opts=
    1.13 +        [ "${CT_CC_LANG_CXX}" = "y" ] || ncurses_opts="${ncurses_opts} --without-cxx --without-cxx-binding"
    1.14 +        [ "${CT_CC_LANG_ADA}" = "y" ] || ncurses_opts="${ncurses_opts} --without-ada"
    1.15 +
    1.16 +        CT_DoExecLog ALL                                        \
    1.17 +        "${CT_SRC_DIR}/ncurses-${CT_NCURSES_VERSION}/configure" \
    1.18 +            --build=${CT_BUILD}                                 \
    1.19 +            --host=${CT_BUILD}                                  \
    1.20 +            --prefix=/usr                                       \
    1.21 +            --without-shared                                    \
    1.22 +            --enable-symlinks                                   \
    1.23 +            --with-build-cc=${CT_BUILD}-gcc                     \
    1.24 +            --with-build-cpp=${CT_BUILD}-gcc                    \
    1.25 +            --with-build-cflags="${CT_CFLAGS_FOR_HOST}"         \
    1.26 +            ${ncurses_opts}
    1.27 +
    1.28 +        CT_DoLog EXTRA "Building ncurses tic"
    1.29 +        CT_DoExecLog ALL make -C "${CT_BUILD_DIR}/build-ncurses-build-tic/include"
    1.30 +        CT_DoExecLog ALL make -C "${CT_BUILD_DIR}/build-ncurses-build-tic/progs" tic
    1.31 +
    1.32 +        CT_DoLog EXTRA "Installing ncurses tic"
    1.33 +        CT_DoExecLog ALL install -d -m 0755 "${CT_PREFIX_DIR}/bin"
    1.34 +        CT_DoExecLog ALL install -m 0755 "${CT_BUILD_DIR}/build-ncurses-build-tic/progs/tic" "${CT_PREFIX_DIR}/bin/tic"
    1.35 +
    1.36 +        CT_EndStep
    1.37 +
    1.38          CT_DoStep INFO "Installing ncurses library"
    1.39          CT_DoLog EXTRA "Configuring ncurses"
    1.40          mkdir -p "${CT_BUILD_DIR}/build-ncurses"
    1.41 @@ -147,8 +178,8 @@
    1.42          "${CT_SRC_DIR}/ncurses-${CT_NCURSES_VERSION}/configure" \
    1.43              --build=${CT_BUILD}                                 \
    1.44              --host=${CT_TARGET}                                 \
    1.45 -            --with-build-cc=${CT_CC}                            \
    1.46 -            --with-build-cpp=${CT_CC}                           \
    1.47 +            --with-build-cc=${CT_BUILD}-gcc                     \
    1.48 +            --with-build-cpp=${CT_BUILD}-gcc                    \
    1.49              --with-build-cflags="${CT_CFLAGS_FOR_HOST}"         \
    1.50              --prefix=/usr                                       \
    1.51              --with-shared                                       \
     2.1 --- a/scripts/build/internals.sh	Mon Mar 23 20:47:30 2009 +0000
     2.2 +++ b/scripts/build/internals.sh	Mon Mar 23 23:05:08 2009 +0000
     2.3 @@ -10,6 +10,7 @@
     2.4      find "${CT_PREFIX_DIR}/bin" -name "${CT_BUILD}-"'*' -exec rm -fv {} \; |CT_DoLog DEBUG
     2.5      find "${CT_PREFIX_DIR}/bin" -name "${CT_HOST}-"'*' -exec rm -fv {} \; |CT_DoLog DEBUG
     2.6      CT_DoExecLog DEBUG rm -fv "${CT_PREFIX_DIR}/bin/makeinfo"
     2.7 +    CT_DoExecLog DEBUG rm -fv "${CT_PREFIX_DIR}/bin/tic"
     2.8  
     2.9      if [ "${CT_BARE_METAL}" != "y" ]; then
    2.10          CT_DoLog EXTRA "Installing the populate helper"