diff options
author | Alexey Neyman <stilor@att.net> | 2018-09-26 16:18:23 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-09-26 16:20:12 -0700 |
commit | 29f0662c188e7126871fa84f6e6f854cda279c89 (patch) | |
tree | 56252b7901973f9133f71cb185dccc17f4041ce2 /scripts/crosstool-NG.sh | |
parent | b82b8adb441001fc1c7f6d5603834861a2de0d2b (diff) | |
download | crosstool-ng-29f0662c188e7126871fa84f6e6f854cda279c89.tar.gz crosstool-ng-29f0662c188e7126871fa84f6e6f854cda279c89.tar.bz2 crosstool-ng-29f0662c188e7126871fa84f6e6f854cda279c89.zip |
Fix restarting after a complete build
It is much, much better to *first* make the directory writable and *then*
do a test for case-sensitivity (which requires writing in that directory).
Fixes #1033.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/crosstool-NG.sh')
-rw-r--r-- | scripts/crosstool-NG.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/crosstool-NG.sh b/scripts/crosstool-NG.sh index 486f7330..7909438a 100644 --- a/scripts/crosstool-NG.sh +++ b/scripts/crosstool-NG.sh @@ -304,15 +304,15 @@ CT_DoExecLog ALL mkdir -p "${CT_HOST_COMPLIBS_DIR}" # Only create the state dir if asked for a restartable build [ -n "${CT_DEBUG_CT_SAVE_STEPS}" ] && CT_DoExecLog ALL mkdir -p "${CT_STATE_DIR}" +# Kludge: CT_PREFIX_DIR might have grown read-only if +# the previous build was successful. +CT_DoExecLog ALL chmod -R u+w "${CT_PREFIX_DIR}" + # Check install file system case-sensitiveness CT_DoExecLog DEBUG touch "${CT_PREFIX_DIR}/foo" CT_TestAndAbort "Your file system in '${CT_PREFIX_DIR}' is *not* case-sensitive!" -f "${CT_PREFIX_DIR}/FOO" CT_DoExecLog DEBUG rm -f "${CT_PREFIX_DIR}/foo" -# Kludge: CT_PREFIX_DIR might have grown read-only if -# the previous build was successful. -CT_DoExecLog ALL chmod -R u+w "${CT_PREFIX_DIR}" - # Setting up the rest of the environment only if not restarting if [ -z "${CT_RESTART}" ]; then # Having .. inside CT_PREFIX breaks relocatability. |