summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Pratt2024-09-30 19:59:06 +0000
committerRobert Marko2025-07-26 12:38:08 +0000
commit5c832d783381831289c4f65d2a821a0eecfc435f (patch)
treecb0b14d0837f32b0c157ba2bf8d6f6b41cffdf3f
parent6a3cfeb4a66763630cca9cb100ec86f5fddbd79b (diff)
downloadopenwrt-5c832d783381831289c4f65d2a821a0eecfc435f.tar.gz
tools/coreutils: disable uninstall target
GNU coreutils is a unique case where we require some of the utilities on the host machine before anything is built. The prerequisite is handled by symlinks to the host binaries in the staging directory that are installed by the build system and that are expected to remain as long as the corresponding stampfile exists. Because the binaries built by coreutils will replace the symlinks, the uninstall target will actually delete the symlinks long before the build finishes whenever it is ran. This can cause the utilities to be temporarily missing from the controlled part of the shell's PATH, so disable the removal of the coreutils utilities. The appropriate way to clear all of the programs and links would be `make dirclean`. Tested-by: Georgi Valkov <gvalkov@gmail.com> # macOS Signed-off-by: Michael Pratt <mcpratt@pm.me> Link: https://github.com/openwrt/openwrt/pull/16522 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--tools/coreutils/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/coreutils/Makefile b/tools/coreutils/Makefile
index 42f03317d9..84aba9e64a 100644
--- a/tools/coreutils/Makefile
+++ b/tools/coreutils/Makefile
@@ -73,7 +73,7 @@ define Host/Install
endef
define Host/Uninstall
- -$(call Host/Compile/Default,uninstall)
+ #$(call Host/Compile/Default,uninstall) # Removes necessary symlinks
-$(call Host/Compile/Default,maintainer-clean) # Clean bootstrap files from the release
endef