diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-10-16 14:58:29 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-10-16 14:58:29 +0200 |
commit | fcd48e80f53e956cea7bac99bf44b5041b7c4e61 (patch) | |
tree | 76383aad0ae3f927d41c4da9c5a0806bed59a151 | |
parent | 5e4a28b0ebbc87718884026aff29766002cefdfa (diff) | |
download | crosstool-ng-fcd48e80f53e956cea7bac99bf44b5041b7c4e61.tar.gz crosstool-ng-fcd48e80f53e956cea7bac99bf44b5041b7c4e61.tar.bz2 crosstool-ng-fcd48e80f53e956cea7bac99bf44b5041b7c4e61.zip |
complibs/cloog: fix extraction
In the early days, cloog-ppl was bizarrely packaged: the first tarball
did not contain the version in the name of the extracted directory, so
we had to play tricks.
Nowadays, however, the first component of the path are stripped when
extracting a tarball, which means that the created directory will
always be properly named. So, our old tricks do no longer work, and
worse, they break the build.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
-rw-r--r-- | scripts/build/companion_libs/cloog.sh | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/scripts/build/companion_libs/cloog.sh b/scripts/build/companion_libs/cloog.sh index 5df12b06..094a02f5 100644 --- a/scripts/build/companion_libs/cloog.sh +++ b/scripts/build/companion_libs/cloog.sh @@ -19,31 +19,22 @@ do_cloog_get() { do_cloog_extract() { local _t - CT_Extract "cloog-ppl-${CT_CLOOG_VERSION}" - # Version 0.15.3 has a dirname 'cloog-ppl' (with no version in it!) # while versions 0.15.4 onward do have the version in the dirname. - case "${CT_CLOOG_VERSION}" in - 0.15.3) _t="";; - *) _t="-${CT_CLOOG_VERSION}";; - esac - CT_Pushd "${CT_SRC_DIR}/cloog-ppl${_t}" - CT_Patch nochdir "cloog-ppl" "${CT_CLOOG_VERSION}" + # But, because the infrastructure properly creates the extracted + # directories (with tar's --strip-components), we can live safely... + CT_Extract "cloog-ppl-${CT_CLOOG_VERSION}" + CT_Patch "cloog-ppl" "${CT_CLOOG_VERSION}" + if [ "${CT_CLOOG_VERSION}" = "0.15.10" ]; then + CT_Pushd "${CT_SRC_DIR}/cloog-ppl-${CT_CLOOG_VERSION}" CT_DoExecLog CFG ./autogen.sh + CT_Popd fi - CT_Popd } do_cloog() { - local _t - - # Version 0.15.3 has a dirname 'cloog-ppl' (with no version in it!) - # while versions 0.15.4 onward do have the version in the dirname. - case "${CT_CLOOG_VERSION}" in - 0.15.3) _t="";; - *) _t="-${CT_CLOOG_VERSION}";; - esac + local cloog_src_dir="${CT_SRC_DIR}/cloog-ppl-${CT_CLOOG_VERSION}" mkdir -p "${CT_BUILD_DIR}/build-cloog-ppl" cd "${CT_BUILD_DIR}/build-cloog-ppl" @@ -55,7 +46,7 @@ do_cloog() { CT_DoExecLog CFG \ CFLAGS="${CT_CFLAGS_FOR_HOST}" \ LDFLAGS="-lm" \ - "${CT_SRC_DIR}/cloog-ppl${_t}/configure" \ + "${cloog_src_dir}/configure" \ --build=${CT_BUILD} \ --host=${CT_HOST} \ --prefix="${CT_COMPLIBS_DIR}" \ |