diff options
author | apb <apb@pkgsrc.org> | 2009-03-10 14:06:06 +0000 |
---|---|---|
committer | apb <apb@pkgsrc.org> | 2009-03-10 14:06:06 +0000 |
commit | 63e5cb337b1cf2576ad1fc390bc5496e42f38567 (patch) | |
tree | 561339d030e8549b26b01dd9f15997da0ca749ed /devel/diffutils | |
parent | 3660a3d870af91a4a934be7a9287e3697dfeb80a (diff) | |
download | pkgsrc-63e5cb337b1cf2576ad1fc390bc5496e42f38567.tar.gz |
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 (limited to 'devel/diffutils')
-rw-r--r-- | devel/diffutils/Makefile | 4 | ||||
-rw-r--r-- | devel/diffutils/distinfo | 3 | ||||
-rw-r--r-- | devel/diffutils/patches/patch-ab | 16 |
3 files changed, 20 insertions, 3 deletions
diff --git a/devel/diffutils/Makefile b/devel/diffutils/Makefile index 71d0cf802e8..a414e957a5e 100644 --- a/devel/diffutils/Makefile +++ b/devel/diffutils/Makefile @@ -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 --git a/devel/diffutils/distinfo b/devel/diffutils/distinfo index 269088aa6c0..aca9861529a 100644 --- a/devel/diffutils/distinfo +++ b/devel/diffutils/distinfo @@ -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 --git a/devel/diffutils/patches/patch-ab b/devel/diffutils/patches/patch-ab new file mode 100644 index 00000000000..d3ec38f951d --- /dev/null +++ b/devel/diffutils/patches/patch-ab @@ -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); + } |