mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-03-11 06:54:06 +00:00
functions: write permission in config.{guess,sub}
avr-libc doesn't have write permissions in these by default in the 1.8.1 tar release, this caused an error during build with CT_OVERIDE_CONFIG_GUESS_SUB enabled. chmod u+w them before overriding to avoid an this error. Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
This commit is contained in:
parent
11646447fa
commit
14cc1cb28e
@ -1132,7 +1132,9 @@ CT_Patch() {
|
|||||||
eval ${cfg}="${CT_LIB_DIR}/scripts/${cfg/_/.}"
|
eval ${cfg}="${CT_LIB_DIR}/scripts/${cfg/_/.}"
|
||||||
[ -e "${CT_TOP_DIR}/scripts/${cfg/_/.}" ] && eval ${cfg}="${CT_TOP_DIR}/scripts/${cfg/_/.}"
|
[ -e "${CT_TOP_DIR}/scripts/${cfg/_/.}" ] && eval ${cfg}="${CT_TOP_DIR}/scripts/${cfg/_/.}"
|
||||||
# Can't use CT_DoExecLog because of the '{} \;' to be passed un-mangled to find
|
# Can't use CT_DoExecLog because of the '{} \;' to be passed un-mangled to find
|
||||||
find . -type f -name "${cfg/_/.}" -exec cp -v "${!cfg}" {} \; |CT_DoLog ALL
|
find . -type f -name "${cfg/_/.}" \
|
||||||
|
-exec chmod -v u+w {} \; \
|
||||||
|
-exec cp -v "${!cfg}" {} \; |CT_DoLog ALL
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user