Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Mar 2006 10:36:13 +0900
From:      Tod McQuillin <devin@spamcop.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        naddy@FreeBSD.org
Subject:   ports/94084: [PATCH] archivers/gtar: [Fix build on 4.x]
Message-ID:  <E1FFiAP-000Kpx-Lk@mail.distalzou.net>
Resent-Message-ID: <200603050140.k251e5qj064113@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         94084
>Category:       ports
>Synopsis:       [PATCH] archivers/gtar: [Fix build on 4.x]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 05 01:40:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Tod McQuillin
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD plexi.pun-pun.prv 4.11-STABLE FreeBSD 4.11-STABLE #0: Thu Dec 15 19:04:55 JST 2005
>Description:
FreeBSD 4.x does not have SIZE_MAX in stdint.h, so define it if
not already defined in xheader.c

Port maintainer (naddy@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- gtar-1.15.1_2.patch begins here ---
Index: files/patch-src_xheader.c
===================================================================
RCS file: /usr/src/cvs-repo/ports/archivers/gtar/files/patch-src_xheader.c,v
retrieving revision 1.1
diff -u -u -r1.1 patch-src_xheader.c
--- files/patch-src_xheader.c	4 Mar 2006 14:59:42 -0000	1.1
+++ files/patch-src_xheader.c	5 Mar 2006 01:27:24 -0000
@@ -1,8 +1,5 @@
-
-$FreeBSD: ports/archivers/gtar/files/patch-src_xheader.c,v 1.1 2006/03/04 14:59:42 naddy Exp $
-
---- src/xheader.c.orig
-+++ src/xheader.c
+--- src/xheader.c.orig	Mon Sep  6 20:31:14 2004
++++ src/xheader.c	Sun Mar  5 10:27:09 2006
 @@ -783,6 +783,32 @@
    xheader_print (xhdr, keyword, sbuf);
  }
@@ -72,7 +69,15 @@
      st->stat.st_size = u;
  }
  
-@@ -962,10 +988,10 @@
+@@ -958,14 +984,18 @@
+   code_num (st->sparse_map_avail, keyword, xhdr);
+ }
+ 
++#ifndef SIZE_MAX
++#define SIZE_MAX ((size_t) -1)
++#endif
++
+ static void
  sparse_numblocks_decoder (struct tar_stat_info *st, char const *arg)
  {
    uintmax_t u;
@@ -85,7 +90,7 @@
        st->sparse_map_avail = 0;
      }
  }
-@@ -982,8 +1008,14 @@
+@@ -982,8 +1012,14 @@
  sparse_offset_decoder (struct tar_stat_info *st, char const *arg)
  {
    uintmax_t u;
@@ -101,7 +106,7 @@
  }
  
  static void
-@@ -998,15 +1030,13 @@
+@@ -998,15 +1034,13 @@
  sparse_numbytes_decoder (struct tar_stat_info *st, char const *arg)
  {
    uintmax_t u;
--- gtar-1.15.1_2.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1FFiAP-000Kpx-Lk>