tools: require coreutils to build util-linux
authorMichael Pratt <mcpratt@pm.me>
Fri, 27 Sep 2024 04:20:38 +0000 (00:20 -0400)
committerRobert Marko <robimarko@gmail.com>
Sat, 26 Jul 2025 12:38:08 +0000 (14:38 +0200)
The install stage of util-linux uses the install utility
with GNU options which is provided to macOS by coreutils.

Before, Make coincidentally built them in the right order,
this makes the prerequisite explicit.

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>
tools/Makefile

index e01d95d0ecc7c84dc7b460d13888f75fbf32d862..800647762f89d289bc4a3b2707e2e7008f8a3aa5 100644 (file)
@@ -145,6 +145,7 @@ ifneq ($(filter coreutils,$(tools-y)),)
   $(curdir)/elfutils/compile += $(curdir)/coreutils/compile
   $(curdir)/findutils/compile += $(curdir)/coreutils/compile
   $(curdir)/squashfs4/compile += $(curdir)/coreutils/compile
+  $(curdir)/util-linux/compile += $(curdir)/coreutils/compile
 endif
 
 ifeq ($(HOST_OS),Darwin)