[csw-devel] SF.net SVN: gar:[13749] csw/mgar/pkg/coreutils/trunk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Sat Mar 12 17:27:33 CET 2011


Revision: 13749
          http://gar.svn.sourceforge.net/gar/?rev=13749&view=rev
Author:   bdwalton
Date:     2011-03-12 16:27:33 +0000 (Sat, 12 Mar 2011)

Log Message:
-----------
coreutils/trunk: add proposed upstream patch to correct for *utimens function handling; mantis id 4671

Modified Paths:
--------------
    csw/mgar/pkg/coreutils/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/coreutils/trunk/files/0001-Apply-proposed-upstream-patch-to-fix-a-utimens-gnuli.patch

Modified: csw/mgar/pkg/coreutils/trunk/Makefile
===================================================================
--- csw/mgar/pkg/coreutils/trunk/Makefile	2011-03-12 11:22:54 UTC (rev 13748)
+++ csw/mgar/pkg/coreutils/trunk/Makefile	2011-03-12 16:27:33 UTC (rev 13749)
@@ -28,6 +28,7 @@
 
 MASTER_SITES = $(GNU_MIRROR)
 DISTFILES = $(NAME)-$(VERSION).tar.gz
+PATCHFILES += 0001-Apply-proposed-upstream-patch-to-fix-a-utimens-gnuli.patch
 
 # We define upstream file regex so we can be notifed of new upstream
 # software release

Added: csw/mgar/pkg/coreutils/trunk/files/0001-Apply-proposed-upstream-patch-to-fix-a-utimens-gnuli.patch
===================================================================
--- csw/mgar/pkg/coreutils/trunk/files/0001-Apply-proposed-upstream-patch-to-fix-a-utimens-gnuli.patch	                        (rev 0)
+++ csw/mgar/pkg/coreutils/trunk/files/0001-Apply-proposed-upstream-patch-to-fix-a-utimens-gnuli.patch	2011-03-12 16:27:33 UTC (rev 13749)
@@ -0,0 +1,71 @@
+From d698357000bbfba7443cab845a6aa426658c2bac Mon Sep 17 00:00:00 2001
+From: Ben Walton <bwalton at opencsw.org>
+Date: Sat, 12 Mar 2011 15:22:48 +0100
+Subject: [PATCH] Apply proposed upstream patch to fix a *utimens gnulib bug
+
+This patch changes the the use of some *futimens definitions to use
+the rpl_ prefix to avoid cyclic function calls on solaris 10.
+
+This patch was imported from:
+http://www.mail-archive.com/bug-gnulib@gnu.org/msg21995.html
+
+It addresses Mantis ID 4671.
+
+Signed-off-by: Ben Walton <bwalton at opencsw.org>
+---
+ lib/sys_stat.in.h |   16 ++++++++++++++--
+ 1 files changed, 14 insertions(+), 2 deletions(-)
+
+diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h
+index f175bcb..89d9c08 100644
+--- a/lib/sys_stat.in.h
++++ b/lib/sys_stat.in.h
+@@ -357,7 +357,11 @@ _GL_WARN_ON_USE (fstatat, "fstatat is not portable - "
+ 
+ 
+ #if @GNULIB_FUTIMENS@
+-# if @REPLACE_FUTIMENS@
++/* Use the rpl_ prefix also on Solaris <= 9, because on Solaris 9 our
++   futimens implementation relies on futimesat, which on Solaris 10
++   makes an invocation to futimens that is meant to invoke the libc's
++   futimens(), not gnulib's futimens().  */
++# if @REPLACE_FUTIMENS@ || defined __sun
+ #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+ #   undef futimens
+ #   define futimens rpl_futimens
+@@ -370,7 +374,9 @@ _GL_FUNCDECL_SYS (futimens, int, (int fd, struct timespec const times[2]));
+ #  endif
+ _GL_CXXALIAS_SYS (futimens, int, (int fd, struct timespec const times[2]));
+ # endif
++# if @HAVE_FUTIMENS@
+ _GL_CXXALIASWARN (futimens);
++# endif
+ #elif defined GNULIB_POSIXCHECK
+ # undef futimens
+ # if HAVE_RAW_DECL_FUTIMENS
+@@ -611,7 +617,11 @@ _GL_WARN_ON_USE (stat, "stat is unportable - "
+ 
+ 
+ #if @GNULIB_UTIMENSAT@
+-# if @REPLACE_UTIMENSAT@
++/* Use the rpl_ prefix also on Solaris <= 9, because on Solaris 9 our
++   utimensat implementation relies on futimesat, which on Solaris 10
++   makes an invocation to utimensat that is meant to invoke the libc's
++   utimensat(), not gnulib's utimensat().  */
++# if @REPLACE_UTIMENSAT@ || defined __sun
+ #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
+ #   undef utimensat
+ #   define utimensat rpl_utimensat
+@@ -630,7 +640,9 @@ _GL_FUNCDECL_SYS (utimensat, int, (int fd, char const *name,
+ _GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name,
+                                    struct timespec const times[2], int flag));
+ # endif
++# if @HAVE_UTIMENSAT@
+ _GL_CXXALIASWARN (utimensat);
++# endif
+ #elif defined GNULIB_POSIXCHECK
+ # undef utimensat
+ # if HAVE_RAW_DECL_UTIMENSAT
+-- 
+1.7.3.2
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list