pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/diffutils Fix a build failure on platforms where...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9f11be492f42
branches: trunk
changeset: 555840:9f11be492f42
user: apb <apb%pkgsrc.org@localhost>
date: Tue Mar 10 14:06:06 2009 +0000
description:
Fix a build failure on platforms where time_t is larger than long, by
using long long instead. (Not using time_t, because there's no easy and
portable printf format for time_t.) Bump PKGREVISION to 4.
diffstat:
devel/diffutils/Makefile | 4 ++--
devel/diffutils/distinfo | 3 ++-
devel/diffutils/patches/patch-ab | 16 ++++++++++++++++
3 files changed, 20 insertions(+), 3 deletions(-)
diffs (46 lines):
diff -r 8356a993fe6c -r 9f11be492f42 devel/diffutils/Makefile
--- a/devel/diffutils/Makefile Tue Mar 10 13:07:48 2009 +0000
+++ b/devel/diffutils/Makefile Tue Mar 10 14:06:06 2009 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.22 2008/11/24 08:02:16 obache Exp $
+# $NetBSD: Makefile,v 1.23 2009/03/10 14:06:06 apb Exp $
#
DISTNAME= diffutils-2.8.1
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=diffutils/}
diff -r 8356a993fe6c -r 9f11be492f42 devel/diffutils/distinfo
--- a/devel/diffutils/distinfo Tue Mar 10 13:07:48 2009 +0000
+++ b/devel/diffutils/distinfo Tue Mar 10 14:06:06 2009 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.5 2008/11/24 08:02:16 obache Exp $
+$NetBSD: distinfo,v 1.6 2009/03/10 14:06:06 apb Exp $
SHA1 (diffutils-2.8.1.tar.gz) = a4c467c3a6a08cde9f3d94d02067ec26436e7dc5
RMD160 (diffutils-2.8.1.tar.gz) = a61b15401f140097d39dfe00cd2a8062bcdfaa0e
Size (diffutils-2.8.1.tar.gz) = 780086 bytes
SHA1 (patch-aa) = a1f55c41e585a9e0ba521a6272a3f1e1df803597
+SHA1 (patch-ab) = bed6cbc99da590177612675eccececb8b34c2140
diff -r 8356a993fe6c -r 9f11be492f42 devel/diffutils/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/diffutils/patches/patch-ab Tue Mar 10 14:06:06 2009 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-ab,v 1.1 2009/03/10 14:06:06 apb Exp $
+
+--- src/context.c.orig 2002-02-28 06:22:42.000000000 +0200
++++ src/context.c
+@@ -61,9 +61,9 @@ print_context_label (char const *mark,
+ int nsec = TIMESPEC_NS (inf->stat.st_mtim);
+ if (! (tm && nstrftime (buf, sizeof buf, time_format, tm, 0, nsec)))
+ {
+- long sec = inf->stat.st_mtime;
++ long long sec = inf->stat.st_mtime; /* should really be time_t */
+ verify (info_preserved, sizeof inf->stat.st_mtime <= sizeof sec);
+- sprintf (buf, "%ld.%.9d", sec, nsec);
++ sprintf (buf, "%lld.%.9d", sec, nsec);
+ }
+ fprintf (outfile, "%s %s\t%s\n", mark, inf->name, buf);
+ }
Home |
Main Index |
Thread Index |
Old Index