Skip to contentSkip to conversation

coreutils: avoid prompt on rebuild

PATCH New Baruch Siach 2 participants 2 messages Nov 18, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 coreutils: avoid prompt on rebuild

The mode bits of coreutils installed binaries are 555. As a result, on rebuild mv prompts the user to confirm overwrite of non writable binaries. Force overwrite to skip this prompt.

---
 package/coreutils/coreutils.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/coreutils/coreutils.mk +2 -2
index e06510e096fe..db0d8a941f5a 100644
@@ -102,12 +102,12 @@ endif
 define COREUTILS_POST_INSTALL
 	# some things go in root rather than usr
 	for f in $(COREUTILS_BIN_PROGS); do \
-		mv $(TARGET_DIR)/usr/bin/$$f $(TARGET_DIR)/bin/$$f; \
+		mv -f $(TARGET_DIR)/usr/bin/$$f $(TARGET_DIR)/bin/$$f; \
 	done
 	# link for archaic shells
 	ln -fs test $(TARGET_DIR)/usr/bin/[
 	# gnu thinks chroot is in bin, debian thinks it's in sbin
-	mv $(TARGET_DIR)/usr/bin/chroot $(TARGET_DIR)/usr/sbin/chroot
+	mv -f $(TARGET_DIR)/usr/bin/chroot $(TARGET_DIR)/usr/sbin/chroot
 endef
 
 COREUTILS_POST_INSTALL_TARGET_HOOKS += COREUTILS_POST_INSTALL
Signature · 1 line
2.1.3
#1 lore raw

PATCH 1/1 coreutils: avoid prompt on rebuild

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

The mode bits of coreutils installed binaries are 555. As a result, on rebuild mv prompts the user to confirm overwrite of non writable binaries. Force overwrite to skip this prompt.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard