Date: Thu, 29 Jul 2004 13:59:20 +0200 (CEST) From: Barry Bouwsma <freebsd-misuser@remove-NOSPAM-to-reply.NOSPAM.dyndns.dk> To: Tim Kientzle <kientzle@freebsd.org> Cc: current@freebsd.org Subject: Re: NEW TAR Message-ID: <200407291159.i6TBxKj01347@Mail.NOSPAM.DynDNS.dK> References: <40F963D8.6010201@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407291159.i6TBxKj01347>