diff --git a/scripts/build/termux_step_start_build.sh b/scripts/build/termux_step_start_build.sh index a370a6636..415249562 100644 --- a/scripts/build/termux_step_start_build.sh +++ b/scripts/build/termux_step_start_build.sh @@ -92,6 +92,10 @@ termux_step_start_build() { done<<<$(./scripts/buildorder.py "$TERMUX_PKG_BUILDER_DIR" $TERMUX_PACKAGES_DIRECTORIES || echo "ERROR") fi + # Following directories may contain objects with RO-only permissions which + # makes them undeletable. We need fix that. + chmod +w -R "$TERMUX_PKG_BUILDDIR" "$TERMUX_PKG_SRCDIR" + # Cleanup old state: rm -Rf "$TERMUX_PKG_BUILDDIR" \ "$TERMUX_PKG_PACKAGEDIR" \