[lfs] 01/03: adjust version-check.sh to accept uutils coreutils

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository lfs.

commit 0f4f11da12ce528528c6636ab06882d6e3104112
Author: Zhang Wen <[email protected]>
AuthorDate: Sun May 24 14:02:40 2026 +0800

    adjust version-check.sh to accept uutils coreutils
    
    Signed-off-by: Pierre Labastie <[email protected]>
---
 chapter02/hostreqs.xml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/chapter02/hostreqs.xml b/chapter02/hostreqs.xml
index 65bed3827..8f84e93cd 100644
--- a/chapter02/hostreqs.xml
+++ b/chapter02/hostreqs.xml
@@ -258,7 +258,13 @@ ver_kernel()
 }
 
 # Coreutils first because --version-sort needs Coreutils >= 7.0
-ver_check Coreutils      sort     8.1 || bail "Coreutils too old, stop"
+sort --version 2>&amp;1 | grep -E -q 'uutils'
+if [ $? -eq 0 ]
+then
+    ver_check Coreutils      sort     0.8 || bail "Uutils Coreutils too old, stop"
+else
+    ver_check Coreutils      sort     8.1 || bail "Coreutils too old, stop"
+fi
 ver_check Bash           bash     3.2
 ver_check Binutils       ld       2.13.1
 ver_check Bison          bison    2.7

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.