# HG changeset patch # User "Yann E. MORIN" # Date 1296259022 -3600 # Node ID 7d1e018167b5d34906a0dfab3f30ada13b9542e7 # Parent 7ede374110e5a28e26c861a6284d49c7a0b09978 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" diff -r 7ede374110e5 -r 7d1e018167b5 config/companion_tools.in --- a/config/companion_tools.in Fri Jan 28 22:06:49 2011 +0100 +++ b/config/companion_tools.in Sat Jan 29 00:57:02 2011 +0100 @@ -10,6 +10,7 @@ prompt "Build some companion tools" help Crosstool-NG relies on some external tools to be recent enough, namely: + make = 3.81 (in some cases) m4 >= 1.4.12 autoconf >= 2.63 automake >= 1.10.2 @@ -20,6 +21,10 @@ if COMP_TOOLS +config COMP_TOOLS_make + bool + prompt "make" + config COMP_TOOLS_m4 bool prompt "m4" diff -r 7ede374110e5 -r 7d1e018167b5 scripts/build/companion_tools/050-make.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/build/companion_tools/050-make.sh Sat Jan 29 00:57:02 2011 +0100 @@ -0,0 +1,26 @@ +# Build script for make + +CT_MAKE_VERSION=3.81 + +do_companion_tools_make_get() { + CT_GetFile "make-${CT_MAKE_VERSION}" \ + {http,ftp}://ftp.gnu.org/gnu/make +} + +do_companion_tools_make_extract() { + CT_Extract "make-${CT_MAKE_VERSION}" + CT_Patch "make" "${CT_MAKE_VERSION}" +} + +do_companion_tools_make_build() { + CT_DoStep EXTRA "Installing make" + mkdir -p "${CT_BUILD_DIR}/build-make" + CT_Pushd "${CT_BUILD_DIR}/build-make" + + CT_DoExecLog CFG "${CT_SRC_DIR}/make-${CT_MAKE_VERSION}/configure" \ + --prefix="${CT_TOOLS_OVERIDE_DIR}" + CT_DoExecLog ALL make + CT_DoExecLog ALL make install + CT_Popd + CT_EndStep +}