SF.net SVN: gar:[26306] csw/mgar/pkg/gtar/trunk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Mon Dec 18 10:50:22 CET 2017


Revision: 26306
          http://sourceforge.net/p/gar/code/26306
Author:   dmichelsen
Date:     2017-12-18 09:50:21 +0000 (Mon, 18 Dec 2017)
Log Message:
-----------
gtar/trunk: Update to 1.28

Modified Paths:
--------------
    csw/mgar/pkg/gtar/trunk/Makefile
    csw/mgar/pkg/gtar/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/gtar/trunk/files/0001-tar-port-wordsplit-attribute-to-Sun-C.patch
    csw/mgar/pkg/gtar/trunk/files/0001-tar-port-xattr-at.c-to-Solaris-10.patch

Modified: csw/mgar/pkg/gtar/trunk/Makefile
===================================================================
--- csw/mgar/pkg/gtar/trunk/Makefile	2017-12-18 08:36:54 UTC (rev 26305)
+++ csw/mgar/pkg/gtar/trunk/Makefile	2017-12-18 09:50:21 UTC (rev 26306)
@@ -1,5 +1,5 @@
 NAME = tar
-VERSION = 1.27
+VERSION = 1.28
 GARTYPE = v2
 
 DESCRIPTION = GNU tape archiver

Modified: csw/mgar/pkg/gtar/trunk/checksums
===================================================================
--- csw/mgar/pkg/gtar/trunk/checksums	2017-12-18 08:36:54 UTC (rev 26305)
+++ csw/mgar/pkg/gtar/trunk/checksums	2017-12-18 09:50:21 UTC (rev 26306)
@@ -1 +1 @@
-9d4bc655d103b871248281db179eb0f5  tar-1.27.tar.gz
+6ea3dbea1f2b0409b234048e021a9fd7  tar-1.28.tar.gz

Added: csw/mgar/pkg/gtar/trunk/files/0001-tar-port-wordsplit-attribute-to-Sun-C.patch
===================================================================
--- csw/mgar/pkg/gtar/trunk/files/0001-tar-port-wordsplit-attribute-to-Sun-C.patch	                        (rev 0)
+++ csw/mgar/pkg/gtar/trunk/files/0001-tar-port-wordsplit-attribute-to-Sun-C.patch	2017-12-18 09:50:21 UTC (rev 26306)
@@ -0,0 +1,61 @@
+From 00507e1c9650ded0cf3f76a3f7d069e10e0310af Mon Sep 17 00:00:00 2001
+From: Paul Eggert <eggert at cs.ucla.edu>
+Date: Mon, 5 Jan 2015 20:07:34 -0800
+Subject: [PATCH] tar: port wordsplit attribute to Sun C
+
+Reported by Ted Carr in:
+http://lists.gnu.org/archive/html/bug-tar/2015-01/msg00002.html
+* lib/wordsplit.h (__WORDSPLIT_ATTRIBUTE_FORMAT):
+New macro, taken from Gnulib.
+(struct wordsplit): Use it.
+* lib/wordsplit.c (_wsplt_error): Use it.
+---
+ lib/wordsplit.c |  2 +-
+ lib/wordsplit.h | 10 ++++++++--
+ 2 files changed, 9 insertions(+), 3 deletions(-)
+
+diff --git a/lib/wordsplit.c b/lib/wordsplit.c
+index 21807cd..bda64d3 100644
+--- a/lib/wordsplit.c
++++ b/lib/wordsplit.c
+@@ -61,7 +61,7 @@ _wsplt_alloc_die (struct wordsplit *wsp)
+   abort ();
+ }
+ 
+-static void __attribute__ ((__format__ (__printf__, 1, 2)))
++static void __WORDSPLIT_ATTRIBUTE_FORMAT ((__printf__, 1, 2))
+ _wsplt_error (const char *fmt, ...)
+ {
+   va_list ap;
+diff --git a/lib/wordsplit.h b/lib/wordsplit.h
+index d64cf2f..25d556d 100644
+--- a/lib/wordsplit.h
++++ b/lib/wordsplit.h
+@@ -22,6 +22,12 @@
+ 
+ #include <stddef.h>
+ 
++#if 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
++# define __WORDSPLIT_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
++#else
++# define __WORDSPLIT_ATTRIBUTE_FORMAT(spec) /* empty */
++#endif
++
+ struct wordsplit
+ {
+   size_t ws_wordc;
+@@ -34,9 +40,9 @@ struct wordsplit
+   const char *ws_escape;
+   void (*ws_alloc_die) (struct wordsplit * wsp);
+   void (*ws_error) (const char *, ...)
+-                   __attribute__ ((__format__ (__printf__, 1, 2)));
++    __WORDSPLIT_ATTRIBUTE_FORMAT ((__printf__, 1, 2));
+   void (*ws_debug) (const char *, ...)
+-                   __attribute__ ((__format__ (__printf__, 1, 2)));
++    __WORDSPLIT_ATTRIBUTE_FORMAT ((__printf__, 1, 2));
+ 
+   const char **ws_env;
+   const char *(*ws_getvar) (const char *, size_t, void *);
+-- 
+2.1.0
+

Added: csw/mgar/pkg/gtar/trunk/files/0001-tar-port-xattr-at.c-to-Solaris-10.patch
===================================================================
--- csw/mgar/pkg/gtar/trunk/files/0001-tar-port-xattr-at.c-to-Solaris-10.patch	                        (rev 0)
+++ csw/mgar/pkg/gtar/trunk/files/0001-tar-port-xattr-at.c-to-Solaris-10.patch	2017-12-18 09:50:21 UTC (rev 26306)
@@ -0,0 +1,34 @@
+From 75c83ce5972f34c65fa9b3b369e5239390105aa1 Mon Sep 17 00:00:00 2001
+From: Paul Eggert <eggert at cs.ucla.edu>
+Date: Mon, 5 Jan 2015 20:24:18 -0800
+Subject: [PATCH] tar: port xattr-at.c to Solaris 10
+
+* lib/xattr-at.c (setxattrat, lsetxattrat, getxattrat, lgetxattrat)
+(listxattrat, llistxattrat): Compile only if HAVE_XATTRS, so that
+the code doesn't call functions that are not declared.
+---
+ lib/xattr-at.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/lib/xattr-at.c b/lib/xattr-at.c
+index 443ccae..66427e9 100644
+--- a/lib/xattr-at.c
++++ b/lib/xattr-at.c
+@@ -31,6 +31,8 @@
+ 
+ #include "openat-priv.h"
+ 
++#ifdef HAVE_XATTRS
++
+ /* setxattrat */
+ #define AT_FUNC_NAME setxattrat
+ #define AT_FUNC_F1 setxattr
+@@ -108,3 +110,5 @@
+ #undef AT_FUNC_RESULT
+ #undef AT_FUNC_POST_FILE_PARAM_DECLS
+ #undef AT_FUNC_POST_FILE_ARGS
++
++#endif /* HAVE_XATTRS */
+-- 
+2.1.0
+

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