coreutils: clean up Makefile
authorWei-Ting Yang <redacted>
Tue, 23 Dec 2025 12:01:31 +0000 (20:01 +0800)
committerHannu Nyman <redacted>
Sun, 28 Dec 2025 08:07:59 +0000 (10:07 +0200)
- Update copyright year.
- Sort DEPENDS lexicographically.
- Switch URL to HTTPS.
- Drop invalid configure option --enable-install-program=su.
  ```
  configure: WARNING: 'su' is not an optionally-installable program
  ```
- Drop unrecognized configure option --with-gmp.
  ```
  configure: WARNING: unrecognized options: --with-gmp
  ```

Signed-off-by: Wei-Ting Yang <redacted>
utils/coreutils/Makefile

index 43d8de08a4177f924dcffc5cd8245218910286ea..809199f0d6b0544cf8e40446c535f977c1666ff1 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2008-2014 OpenWrt.org
+# Copyright (C) 2008-2025 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -60,15 +60,15 @@ $(eval $(foreach a,$(DIR_BIN),ALTS_$(a):=300:/bin/$(a):/usr/libexec/$(a)-coreuti
 $(eval $(foreach a,$(DIR_USR_BIN),ALTS_$(a):=300:/usr/bin/$(a):/usr/libexec/$(a)-coreutils$(newline)))
 $(eval $(foreach a,$(DIR_USR_SBIN),ALTS_$(a):=300:/usr/sbin/$(a):/usr/libexec/$(a)-coreutils$(newline)))
 
-DEPENDS_sort = +libpthread
-DEPENDS_timeout = +librt
-DEPENDS_expr = +libgmp
-DEPENDS_factor = +libgmp
 DEPENDS_cp = +libacl
 DEPENDS_dir = +libacl +libcap
+DEPENDS_expr = +libgmp
+DEPENDS_factor = +libgmp
 DEPENDS_install = +libacl
 DEPENDS_ls = +libacl +libcap
 DEPENDS_mv = +libacl
+DEPENDS_sort = +libpthread
+DEPENDS_timeout = +librt
 DEPENDS_vdir = +libacl +libcap
 
 FILES_stdbuf := usr/lib/coreutils/libstdbuf.so
@@ -77,7 +77,7 @@ define Package/coreutils/Default
   SECTION:=utils
   CATEGORY:=Utilities
   TITLE:=The GNU core utilities
-  URL:=http://www.gnu.org/software/coreutils/
+  URL:=https://www.gnu.org/software/coreutils/
 endef
 
 define Package/coreutils
@@ -118,7 +118,6 @@ CONFIGURE_VARS += \
 
 CONFIGURE_ARGS += \
        --disable-xattr \
-       --enable-install-program=su \
        --enable-threads=posix \
        --enable-acl \
        --disable-assert \
@@ -128,8 +127,7 @@ CONFIGURE_ARGS += \
        --without-linux-crypto \
        --without-openssl \
        --$(if $(CONFIG_USE_MUSL),with,without)-included-regex \
-       --without-selinux \
-       --with-gmp
+       --without-selinux
 
 TARGET_CFLAGS += -std=c17
 
git clone https://git.99rst.org/PROJECT