diff options
author | Alexey Neyman <stilor@att.net> | 2018-09-28 11:43:45 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-09-28 11:48:01 -0700 |
commit | efe65615d053f29d25fdf5fe787b267e4609d9cf (patch) | |
tree | c68f1d75ea04ff8dbd423522d13edd6d92720cd6 /scripts/functions | |
parent | 6ad79d8932d10c77d4288009cf3063691fab6c34 (diff) | |
download | crosstool-ng-efe65615d053f29d25fdf5fe787b267e4609d9cf.tar.gz crosstool-ng-efe65615d053f29d25fdf5fe787b267e4609d9cf.tar.bz2 crosstool-ng-efe65615d053f29d25fdf5fe787b267e4609d9cf.zip |
Fix up timestamps after patching
... so that autotools-based packages do not re-run autoconf/autoheader/automake.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/functions b/scripts/functions index 2267a957..2e875f7f 100644 --- a/scripts/functions +++ b/scripts/functions @@ -2165,6 +2165,20 @@ CT_DoExtractPatch() CT_DoExecLog ALL "${CT_CONFIG_SHELL}" -c "${devel_bootstrap}" fi + # Fix up the timestamps on the file we may be patching: otherwise, we may + # have a circular dependency. For example, we need make to build autoconf + # and automake companion tools, but we need autoconf and automake to regenerate + # aclocal.m4 or config.h.in after the patch touches configure.ac. Instead, + # assume the patch fixes all the files it needs. + find . -type f -name "aclocal.m4" \ + -exec touch {} \; -exec echo touch {} \; | CT_DoLog ALL + find . -type f -name "config.h.in" \ + -exec touch {} \; -exec echo touch {} \; | CT_DoLog ALL + find . -type f -name "Makefile.in" \ + -exec touch {} \; -exec echo touch {} \; | CT_DoLog ALL + find . -type f -name "configure" \ + -exec touch {} \; -exec echo touch {} \; | CT_DoLog ALL + if [ -n "${patchfunc}" ]; then ${patchfunc} fi |