[Lunar-commits] <moonbase> coreutils: Adding a patch that fixes the use of utimens on certain conditions.

Moritz Heiber moe at lunar-linux.org
Mon Jun 9 14:37:51 CEST 2008


commit cbdbc9230535caa1140899cc79884210bb3e884d
Author: Moritz Heiber <moe at lunar-linux.org>
Date:   Mon Jun 9 14:37:51 2008 +0200

    coreutils: Adding a patch that fixes the use of utimens on certain conditions.
    
    If a lusers kernel is older than our kernel-header-2.6 (happens with newly
    installed systems) the header propagate a feature the currently running kernel
    does not support (and thus throws a ENOSYS "Function not implemented" error).
    
    The patch adds a runtime check. Its ugly. Its bad. And users should rather
    be encouraged to update their systems.
---
 utils/coreutils/BUILD   |   13 ++++++-------
 utils/coreutils/DETAILS |   11 +++++++----
 2 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/utils/coreutils/BUILD b/utils/coreutils/BUILD
index d18ae26..9760e09 100644
--- a/utils/coreutils/BUILD
+++ b/utils/coreutils/BUILD
@@ -1,11 +1,10 @@
 (
 
   patch_it $SOURCE2 1 &&
+  patch_it $SOURCE3 1 &&
 
   bad_flags -malign-double
 
-#  CFLAGS="$CFLAGS -fgnu89-inline"  - it does not work on gcc 3.x
-
   # We really want this
   OPTS="$OPTS --enable-largefile"
 
@@ -44,10 +43,10 @@
     /bin/mv -f /usr/bin/chroot /usr/sbin
   ) &&
 
-# Some apps use fixed paths to /usr/bin so we add symlinks to make
-# them happy. For example see config.log of any compiled app to see that
-# autoconf looks for these coreutils apps only inside /usr/bin
-ln -sf /bin/uname /usr/bin/uname &&
-ln -sf /bin/arch  /usr/bin/arch
+  # Some apps use fixed paths to /usr/bin so we add symlinks to make
+  # them happy. For example see config.log of any compiled app to see that
+  # autoconf looks for these coreutils apps only inside /usr/bin
+  ln -sf /bin/uname /usr/bin/uname &&
+  ln -sf /bin/arch  /usr/bin/arch
 
 ) > $C_FIFO 2>&1
diff --git a/utils/coreutils/DETAILS b/utils/coreutils/DETAILS
index 401e0f7..cecd116 100644
--- a/utils/coreutils/DETAILS
+++ b/utils/coreutils/DETAILS
@@ -2,14 +2,17 @@
          VERSION=6.12
           SOURCE=$MODULE-$VERSION.tar.gz
          SOURCE2=$MODULE-6.10-uname_PIC-1.patch
-   SOURCE_URL[0]=$GNU_URL/$MODULE
-   SOURCE_URL[1]=ftp://ftp.gnu.org/gnu/$MODULE
-     SOURCE2_URL=$PATCH_URL
+         SOURCE3=$MODULE-$VERSION-utimens.patch
+   SOURCE_URL[0]=$GNU_URL/$MODULE/
+   SOURCE_URL[1]=ftp://ftp.gnu.org/gnu/$MODULE/
+     SOURCE2_URL=$PATCH_URL/
+     SOURCE3_URL=$PATCH_URL/
       SOURCE_VFY=sha1:1bb297fdf8b38ca19ab5252c6179b1b2aecd020e
      SOURCE2_VFY=sha1:fdecc911341aa15a54be5aab85194fca16722ced
+     SOURCE3_VFY=sha1:b1fd74a7066338269791d788453786e2824c8d4e
         WEB_SITE=http://www.gnu.org/software/coreutils/
          ENTERED=20030217
-         UPDATED=20080601
+         UPDATED=20080609
            SHORT="Contains latest sh-utils, textutils and fileutils"
 
 cat << EOF


More information about the Lunar-commits mailing list