pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/archivers/arc MAke build on Interix.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f95a5daa117f
branches:  trunk
changeset: 487534:f95a5daa117f
user:      tv <tv%pkgsrc.org@localhost>
date:      Sun Jan 16 16:39:08 2005 +0000

description:
MAke build on Interix.

diffstat:

 archivers/arc/distinfo         |   4 ++--
 archivers/arc/patches/patch-ab |  40 +++++++++++++++++++++++++++++++---------
 2 files changed, 33 insertions(+), 11 deletions(-)

diffs (80 lines):

diff -r 167ff5405563 -r f95a5daa117f archivers/arc/distinfo
--- a/archivers/arc/distinfo    Sun Jan 16 15:47:07 2005 +0000
+++ b/archivers/arc/distinfo    Sun Jan 16 16:39:08 2005 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.5 2005/01/01 11:43:27 kristerw Exp $
+$NetBSD: distinfo,v 1.6 2005/01/16 16:39:08 tv Exp $
 
 SHA1 (arc521e.pl8.tar.Z) = 34210f9aeaac39a15b34e6aa400b38127b6a2a20
 Size (arc521e.pl8.tar.Z) = 100821 bytes
 SHA1 (patch-aa) = 62324f346559b2997eba56698b1c0c1c29a328c3
-SHA1 (patch-ab) = 431f3581ed6cfce2e760da9aa2f2b8b59fc4eb56
+SHA1 (patch-ab) = 64fba2f0b5d03f26e427ecddc70e2a9b6b2fc521
 SHA1 (patch-ac) = 64d87af431c6bc0ded0b26167782309a7bfadd8a
diff -r 167ff5405563 -r f95a5daa117f archivers/arc/patches/patch-ab
--- a/archivers/arc/patches/patch-ab    Sun Jan 16 15:47:07 2005 +0000
+++ b/archivers/arc/patches/patch-ab    Sun Jan 16 16:39:08 2005 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-ab,v 1.3 2004/04/10 23:31:27 minskim Exp $
+$NetBSD: patch-ab,v 1.4 2005/01/16 16:39:08 tv Exp $
 
---- arcdos.c.orig      1992-04-14 17:58:21.000000000 -0500
+--- arcdos.c.orig      1992-04-14 18:58:21.000000000 -0400
 +++ arcdos.c
 @@ -31,7 +31,11 @@
  #include <sys/types.h>
@@ -14,25 +14,47 @@
  #else 
  #include <time.h>             /* Sys V. Bleah. */
  struct        timeval {
-@@ -173,14 +177,21 @@ setstamp(f, date, time)          /* set a file's
+@@ -50,6 +54,11 @@ struct      timeval {
+ char  *malloc();
+ #endif
+ 
++#if defined(__INTERIX)
++#define NO_UTIMES
++#include <utime.h>
++#endif
++
+ VOID
+ getstamp(f, date, time)               /* get a file's date/time stamp */
+ #if   !_MTS
+@@ -171,20 +180,29 @@ setstamp(f, date, time)          /* set a file's
+ #endif
+ #if   UNIX
        struct tm       tm;
++#ifdef        NO_UTIMES
++      struct utimbuf utb;
++#else
        struct timeval  tvp[2];
++#endif
        int     utimes();
-+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) && !defined(__linux__) && !defined(__sgi__)
-       long    tmclock();
-+#endif
+-      long    tmclock();
        tm.tm_sec = (time & 31) * 2;
        tm.tm_min = (time >> 5) & 63;
        tm.tm_hour = (time >> 11);
        tm.tm_mday = date & 31;
        tm.tm_mon = ((date >> 5) & 15) - 1;
        tm.tm_year = (date >> 9) + 80;
+-      tvp[0].tv_sec = tmclock(&tm);
 +      tm.tm_isdst = -1;
-+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__) && !defined(__linux__) && !defined(__sgi__)
-       tvp[0].tv_sec = tmclock(&tm);
++#ifdef        NO_UTIMES
++      utb.actime = utb.modtime = mktime(&tm);
++      utime(f, &utb);
 +#else
 +      tvp[0].tv_sec = mktime(&tm);
-+#endif
        tvp[1].tv_sec = tvp[0].tv_sec;
        tvp[0].tv_usec = tvp[1].tv_usec = 0;
        utimes(f, tvp);
+ #endif
++#endif
+ }
+ 
+ #if   MSDOS



Home | Main Index | Thread Index | Old Index