diff options
author | hans <hans@pkgsrc.org> | 2012-02-29 18:14:31 +0000 |
---|---|---|
committer | hans <hans@pkgsrc.org> | 2012-02-29 18:14:31 +0000 |
commit | 9c8d107dd5b04edf0b2bc7da1c8f53ab76fddba6 (patch) | |
tree | 35e8f64eb869646e9c3c9babcf94136cc76d1867 | |
parent | b0ea3a410e4fc25b89ef38dcd767c27083159860 (diff) | |
download | pkgsrc-9c8d107dd5b04edf0b2bc7da1c8f53ab76fddba6.tar.gz |
Fix build on SunOS.
-rw-r--r-- | archivers/mousetar/Makefile | 5 | ||||
-rw-r--r-- | archivers/mousetar/distinfo | 4 | ||||
-rw-r--r-- | archivers/mousetar/patches/patch-aa | 19 |
3 files changed, 23 insertions, 5 deletions
diff --git a/archivers/mousetar/Makefile b/archivers/mousetar/Makefile index 0f8d9aa6d66..38a5ec9662e 100644 --- a/archivers/mousetar/Makefile +++ b/archivers/mousetar/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 2008/03/02 03:48:36 jlam Exp $ +# $NetBSD: Makefile,v 1.18 2012/02/29 18:14:31 hans Exp $ # DISTNAME= mousetar-20021217 @@ -19,6 +19,9 @@ WRKSRC= ${WRKDIR} .include "../../mk/bsd.prefs.mk" +CPPFLAGS.SunOS+= -DTAR_INODE_NONE -DDIRENT_FIXUP -DLINUX_NAMLEN +CPPFLAGS.SunOS+= -DL_SET=SEEK_SET -DL_INCR=SEEK_CUR -DL_XTND=SEEK_END + .if ${MACHINE_PLATFORM:MNetBSD-[2-9].*-*} != "" CPPFLAGS+= -DTAR_INODE_INTERNAL .endif diff --git a/archivers/mousetar/distinfo b/archivers/mousetar/distinfo index 7f3d63dce22..774c8b818a0 100644 --- a/archivers/mousetar/distinfo +++ b/archivers/mousetar/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.4 2005/02/23 14:45:24 agc Exp $ +$NetBSD: distinfo,v 1.5 2012/02/29 18:14:31 hans Exp $ SHA1 (tar.c) = 0fcce941a7e5beee2646b3b7d7dee5d6cf22f455 RMD160 (tar.c) = 78561e1ef3a55f1b77c8949a7b7a6efb4904d7ef @@ -6,4 +6,4 @@ Size (tar.c) = 286925 bytes SHA1 (tar.man) = a43498f78f3122edf1970a471c9bd313c0ace2f1 RMD160 (tar.man) = 3a295603a2381ea8417b4ce77b73b50ca42fd5e6 Size (tar.man) = 49336 bytes -SHA1 (patch-aa) = c0c3d8a1f2262d03d5e827a8f7eb90462895704a +SHA1 (patch-aa) = ec66de535056119c1f5a65266436486b59a3422c diff --git a/archivers/mousetar/patches/patch-aa b/archivers/mousetar/patches/patch-aa index 6cef5f5e59f..5c7390dca92 100644 --- a/archivers/mousetar/patches/patch-aa +++ b/archivers/mousetar/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.2 2004/08/18 18:40:36 minskim Exp $ +$NetBSD: patch-aa,v 1.3 2012/02/29 18:14:31 hans Exp $ --- tar.c.orig 2004-08-06 16:27:58.000000000 -0500 +++ tar.c @@ -12,7 +12,22 @@ $NetBSD: patch-aa,v 1.2 2004/08/18 18:40:36 minskim Exp $ #include <errno.h> #include <ctype.h> #include <setjmp.h> -@@ -471,8 +474,8 @@ extern char *valloc(); +@@ -247,8 +250,13 @@ standards: gwoods sez IEEE Std 1003.1-19 + #include <sys/file.h> + #include <sys/stat.h> + #include <sys/time.h> +-#include <sys/dir.h> ++#include <sys/dirent.h> ++#include <dirent.h> + #include <unistd.h> ++#include <fcntl.h> ++#ifdef __sun ++#include <sys/mkdev.h> ++#endif + + /* If none of the TAR_MAP_* symbols are defined, guess */ + #if !defined(TAR_MAP_SUN) && \ +@@ -471,8 +479,8 @@ extern char *valloc(); /* NetBSD: fix up itoo/itod and the fs_q?mask fields, and BIG* */ #ifdef TAR_INODE_NETBSD #include <sys/param.h> |