ext-toolchain: fix ct-ng as external rsync issues
PATCH 1/1 ext-toolchain: fix ct-ng as external rsync issues
When using a CT-NG toolchain as external toolchain (not with the integration) and said toolchain has u-w directories rsync fails. So instruct rsync to chmod u+w directories in the target copy to avoid the issue.
--- toolchain/helpers.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
toolchain/helpers.mk +1 -1
@@ -91,7 +91,7 @@ copy_toolchain_sysroot = \ ARCH_SUBDIR="$(strip $3)"; \ for i in etc lib sbin usr ; do \ if [ -d $${ARCH_SYSROOT_DIR}/$$i ] ; then \ - rsync -au --exclude 'usr/lib/locale' $${ARCH_SYSROOT_DIR}/$$i $(STAGING_DIR)/ ; \ + rsync -au --chmod=Du+w --exclude 'usr/lib/locale' $${ARCH_SYSROOT_DIR}/$$i $(STAGING_DIR)/ ; \ fi ; \ done ; \ if [ `readlink -f $${SYSROOT_DIR}` != `readlink -f $${ARCH_SYSROOT_DIR}` ] ; then \
Signature · 1 line
1.7.3.4
PATCH 1/1 ext-toolchain: fix ct-ng as external rsync issues
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> When using a CT-NG toolchain as external toolchain (not with Gustavo> the integration) and said toolchain has u-w directories rsync Gustavo> fails. So instruct rsync to chmod u+w directories in the Gustavo> target copy to avoid the issue.
This is actually a workaround for a bug in rsync 3.0.8 (earlier/later versions not affected), but it seems safe to add - So committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard