Ticket #5938: 0001-adjust-version-check.sh-to-accept-uutils-coreutils.patch

File 0001-adjust-version-check.sh-to-accept-uutils-coreutils.patch, 1010 bytes (added by Zhang Wen, 9 days ago)
  • chapter02/hostreqs.xml

    From 5aca35b3239ad6738ff25f45423984cc9ef21bc3 Mon Sep 17 00:00:00 2001
    From: Zhang Wen <zhw2101024@gmail.com>
    Date: Sun, 24 May 2026 14:02:40 +0800
    Subject: [PATCH] adjust version-check.sh to accept uutils coreutils
    
    ---
     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 b ver_kernel()  
    258258}
    259259
    260260# Coreutils first because --version-sort needs Coreutils >= 7.0
    261 ver_check Coreutils      sort     8.1 || bail "Coreutils too old, stop"
     261sort --version 2>&amp;1 | grep -E -q 'uutils'
     262if [ $? -eq 0 ]
     263then
     264    ver_check Coreutils      sort     0.8 || bail "Uutils Coreutils too old, stop"
     265else
     266    ver_check Coreutils      sort     8.1 || bail "Coreutils too old, stop"
     267fi
    262268ver_check Bash           bash     3.2
    263269ver_check Binutils       ld       2.13.1
    264270ver_check Bison          bison    2.7