From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Mar 5 01:40:05 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAEC916A420 for ; Sun, 5 Mar 2006 01:40:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3ADC543D48 for ; Sun, 5 Mar 2006 01:40:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k251e5FF064114 for ; Sun, 5 Mar 2006 01:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k251e5qj064113; Sun, 5 Mar 2006 01:40:05 GMT (envelope-from gnats) Resent-Date: Sun, 5 Mar 2006 01:40:05 GMT Resent-Message-Id: <200603050140.k251e5qj064113@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tod McQuillin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E57A16A422; Sun, 5 Mar 2006 01:36:15 +0000 (GMT) (envelope-from root@distalzou.net) Received: from mail.distalzou.net (203.141.139.231.user.ad.il24.net [203.141.139.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9445743D45; Sun, 5 Mar 2006 01:36:15 +0000 (GMT) (envelope-from root@distalzou.net) Received: from root by mail.distalzou.net with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1FFiAP-000Kpx-Lk; Sun, 05 Mar 2006 10:36:13 +0900 Message-Id: Date: Sun, 05 Mar 2006 10:36:13 +0900 From: Tod McQuillin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: naddy@FreeBSD.org Subject: ports/94084: [PATCH] archivers/gtar: [Fix build on 4.x] X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Mar 2006 01:40:05 -0000 >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: