From owner-freebsd-stable@FreeBSD.ORG Thu Jul 29 12:00:00 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 545F616A4CE; Thu, 29 Jul 2004 12:00:00 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (80-219-174-97.dclient.hispeed.ch [80.219.174.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52B3843D48; Thu, 29 Jul 2004 11:59:58 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [2002:50db:ae61:0:220:afff:fed4:dbcb]) (8.11.6/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id i6TBxKp01348 verified NO); Thu, 29 Jul 2004 13:59:24 +0200 (CEST) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.11.6/FNORD) id i6TBxKj01347; Thu, 29 Jul 2004 13:59:20 +0200 (CEST) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Thu, 29 Jul 2004 13:59:20 +0200 (CEST) Message-Id: <200407291159.i6TBxKj01347@Mail.NOSPAM.DynDNS.dK> X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: beer set sender to bounce@NOSPAM.dyndns.dk using -f X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed from queue /tmp X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed by beer with -C /etc/mail/sendmail.cf-LOCAL From: Barry Bouwsma References: <40F963D8.6010201@freebsd.org> To: Tim Kientzle cc: stable@freebsd.org cc: current@freebsd.org Subject: Re: NEW TAR X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2004 12:00:00 -0000 [introduced to freebsd-stable@ , don't bother replying directly to me] On Sat, 17 Jul 2004 10:37:28 -0700, Tim Kientzle proclaimed: > By default, /usr/bin/tar is now a symlink pointing > to /usr/bin/bsdtar. [in -current] [...] > * Portability: gtar is portable to many different Unix and non-Unix > systems. bsdtar supports standard file formats that are widely > supported by other implementations. There are efforts to port > bsdtar to other platforms. Would it be possible to include patches similar to (or based upon) the following diffs, in order to get `bsdtar' to compile cleanly under my (older) 4.x -- based on checking out HEAD of libarchive and bsdtar from the CVS repository? (I haven't looked for source otherwise, sorry; this is to make an future MFC more compatible with older 4.x) --- bsdtar_platform.h-ORIG Sun Jul 25 10:51:11 2004 +++ bsdtar_platform.h Sun Jul 25 11:48:16 2004 @@ -43,8 +43,10 @@ #define HAVE_CHFLAGS 1 #define ARCHIVE_STAT_MTIME_NANOS(st) (st)->st_mtimespec.tv_nsec +#if __FreeBSD_version >= 450002 /* nl_langinfo introduced */ /* nl_langinfo supports D_MD_ORDER (FreeBSD extension) */ #define HAVE_NL_LANGINFO_D_MD_ORDER 1 +#endif #if __FreeBSD__ > 4 #define HAVE_GETOPT_LONG 1 --- write.c-ORIG Sun Jul 25 10:51:11 2004 +++ write.c Sun Jul 25 11:56:30 2004 @@ -52,6 +52,13 @@ #include "bsdtar.h" +/* #if __FreeBSD_version < ??? XXX not present in my 4.x ... */ +#ifndef _ID_T_DECLARED +typedef __int64_t id_t; +#define _ID_T_DECLARED +#endif /* XXXX HACK how to do this right? what about other OSen?? */ + + /* Fixed size of uname/gname caches. */ #define name_cache_size 101 As you see, I'm not sure how to best handle id_t above. My source may be outdated, being some ten days old. thanks, barry bouwsma