pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/mousetar Make this package build on Linux.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6934ded4620f
branches:  trunk
changeset: 479637:6934ded4620f
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Wed Aug 18 18:40:36 2004 +0000

description:
Make this package build on Linux.
  - Include time.h to use struct tm.
  - Define LINUX_NAMLEN on Linux to avoid using d_namlen in struct dirent.

diffstat:

 archivers/mousetar/Makefile         |   6 +++++-
 archivers/mousetar/distinfo         |   4 ++--
 archivers/mousetar/patches/patch-aa |  18 ++++++++++++++----
 3 files changed, 21 insertions(+), 7 deletions(-)

diffs (59 lines):

diff -r 6914d3e410f8 -r 6934ded4620f archivers/mousetar/Makefile
--- a/archivers/mousetar/Makefile       Wed Aug 18 17:52:25 2004 +0000
+++ b/archivers/mousetar/Makefile       Wed Aug 18 18:40:36 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2004/07/30 14:53:43 minskim Exp $
+# $NetBSD: Makefile,v 1.11 2004/08/18 18:40:36 minskim Exp $
 #
 
 DISTNAME=      mousetar-20021217
@@ -21,6 +21,10 @@
 CPPFLAGS+=     -DTAR_INODE_INTERNAL
 .endif
 
+.if ${OPSYS} == "Linux"
+CPPFLAGS+=     -DLINUX_NAMLEN
+.endif
+
 INSTALLATION_DIRS=     bin man/man1
 
 do-extract:
diff -r 6914d3e410f8 -r 6934ded4620f archivers/mousetar/distinfo
--- a/archivers/mousetar/distinfo       Wed Aug 18 17:52:25 2004 +0000
+++ b/archivers/mousetar/distinfo       Wed Aug 18 18:40:36 2004 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.2 2003/01/02 09:45:48 agc Exp $
+$NetBSD: distinfo,v 1.3 2004/08/18 18:40:36 minskim Exp $
 
 SHA1 (tar.c) = 0fcce941a7e5beee2646b3b7d7dee5d6cf22f455
 Size (tar.c) = 286925 bytes
 SHA1 (tar.man) = a43498f78f3122edf1970a471c9bd313c0ace2f1
 Size (tar.man) = 49336 bytes
-SHA1 (patch-aa) = fcc8cb946c1649c0510cb503c8a2ce1dcf491abb
+SHA1 (patch-aa) = c0c3d8a1f2262d03d5e827a8f7eb90462895704a
diff -r 6914d3e410f8 -r 6934ded4620f archivers/mousetar/patches/patch-aa
--- a/archivers/mousetar/patches/patch-aa       Wed Aug 18 17:52:25 2004 +0000
+++ b/archivers/mousetar/patches/patch-aa       Wed Aug 18 18:40:36 2004 +0000
@@ -1,8 +1,18 @@
-$NetBSD: patch-aa,v 1.1.1.1 2002/10/28 12:41:55 agc Exp $
+$NetBSD: patch-aa,v 1.2 2004/08/18 18:40:36 minskim Exp $
 
---- tar.c      2002/10/16 09:25:24     1.1
-+++ tar.c      2002/10/16 09:25:38
-@@ -472,8 +472,8 @@
+--- tar.c.orig 2004-08-06 16:27:58.000000000 -0500
++++ tar.c
+@@ -235,6 +235,9 @@ standards: gwoods sez IEEE Std 1003.1-19
+ 
+ #include <stdio.h>
+ /* #include <time.h> grrr... */
++#ifdef __linux__
++#include <time.h>
++#endif
+ #include <errno.h>
+ #include <ctype.h>
+ #include <setjmp.h>
+@@ -471,8 +474,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>



Home | Main Index | Thread Index | Old Index