diff options
author | Erico Nunes <nunes.erico@gmail.com> | 2015-06-21 20:54:16 -0300 |
---|---|---|
committer | Erico Nunes <nunes.erico@gmail.com> | 2015-06-21 20:54:16 -0300 |
commit | 14cc1cb28e37d5e6ce0b01990445de493ec7a967 (patch) | |
tree | 5b8f1bad81f1ea86a20967092b25052557d0301b /scripts/functions | |
parent | 11646447fa2c43310f9edcd050d703debb11e6a2 (diff) | |
download | crosstool-ng-14cc1cb28e37d5e6ce0b01990445de493ec7a967.tar.gz crosstool-ng-14cc1cb28e37d5e6ce0b01990445de493ec7a967.tar.bz2 crosstool-ng-14cc1cb28e37d5e6ce0b01990445de493ec7a967.zip |
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>
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions index 6429aa8c..86653465 100644 --- a/scripts/functions +++ b/scripts/functions @@ -1132,7 +1132,9 @@ CT_Patch() { eval ${cfg}="${CT_LIB_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 - 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 fi |