comptools: add make-3.81
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jan 29 00:57:02 2011 +0100 (2011-01-29)
changeset 22857d1e018167b5
parent 2284 7ede374110e5
child 2286 4960f5d9f829
comptools: add make-3.81

Since the advent of make-3.82, some packages now break due to changes
in make-3.82, being stricter than 3.81 when interpreting the Makefiles.

This has bugged us a bit too much so far, and I believe fixing all
of them is a long road, while simply building make-3.81 is the easiest
route for now.

Of course, in the long term, packages will get fixed upstream, and we
should back-port the fixes to old versions, and get rid of building
make-3.81. In the meantime...

Reported several times on the mailing list.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
config/companion_tools.in
scripts/build/companion_tools/050-make.sh
     1.1 --- a/config/companion_tools.in	Fri Jan 28 22:06:49 2011 +0100
     1.2 +++ b/config/companion_tools.in	Sat Jan 29 00:57:02 2011 +0100
     1.3 @@ -10,6 +10,7 @@
     1.4      prompt "Build some companion tools"
     1.5      help
     1.6        Crosstool-NG relies on some external tools to be recent enough, namely:
     1.7 +        make = 3.81 (in some cases)
     1.8          m4 >= 1.4.12
     1.9          autoconf >= 2.63
    1.10          automake >= 1.10.2
    1.11 @@ -20,6 +21,10 @@
    1.12  
    1.13  if COMP_TOOLS
    1.14  
    1.15 +config COMP_TOOLS_make
    1.16 +    bool
    1.17 +    prompt "make"
    1.18 +
    1.19  config COMP_TOOLS_m4
    1.20      bool
    1.21      prompt "m4"
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/scripts/build/companion_tools/050-make.sh	Sat Jan 29 00:57:02 2011 +0100
     2.3 @@ -0,0 +1,26 @@
     2.4 +# Build script for make
     2.5 +
     2.6 +CT_MAKE_VERSION=3.81
     2.7 +
     2.8 +do_companion_tools_make_get() {
     2.9 +    CT_GetFile "make-${CT_MAKE_VERSION}" \
    2.10 +               {http,ftp}://ftp.gnu.org/gnu/make
    2.11 +}
    2.12 +
    2.13 +do_companion_tools_make_extract() {
    2.14 +    CT_Extract "make-${CT_MAKE_VERSION}"
    2.15 +    CT_Patch "make" "${CT_MAKE_VERSION}"
    2.16 +}
    2.17 +
    2.18 +do_companion_tools_make_build() {
    2.19 +    CT_DoStep EXTRA "Installing make"
    2.20 +    mkdir -p "${CT_BUILD_DIR}/build-make"
    2.21 +    CT_Pushd "${CT_BUILD_DIR}/build-make"
    2.22 +
    2.23 +    CT_DoExecLog CFG "${CT_SRC_DIR}/make-${CT_MAKE_VERSION}/configure" \
    2.24 +                     --prefix="${CT_TOOLS_OVERIDE_DIR}"
    2.25 +    CT_DoExecLog ALL make
    2.26 +    CT_DoExecLog ALL make install
    2.27 +    CT_Popd
    2.28 +    CT_EndStep
    2.29 +}