Replace undefined behavior in patch with defined behavior. PKGREVISION -> 2

This commit is contained in:
dholland 2012-09-29 08:39:22 +00:00
parent 34836adeda
commit ff5c42e5c5
3 changed files with 11 additions and 8 deletions

View file

@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.8 2012/06/14 07:43:08 sbd Exp $
# $NetBSD: Makefile,v 1.9 2012/09/29 08:39:22 dholland Exp $
#
DISTNAME= libplist-1.8
PKGREVISION= 1
PKGREVISION= 2
CATEGORIES= textproc
MASTER_SITES= http://www.libimobiledevice.org/downloads/
EXTRACT_SUFX= .tar.bz2

View file

@ -1,8 +1,8 @@
$NetBSD: distinfo,v 1.5 2012/04/22 16:11:13 wiz Exp $
$NetBSD: distinfo,v 1.6 2012/09/29 08:39:22 dholland Exp $
SHA1 (libplist-1.8.tar.bz2) = dea18ac31cc497dba959bdb459a2a49fb41664c3
RMD160 (libplist-1.8.tar.bz2) = b8da55db4bec34e4c8b9126da0ea46e79f36ccf1
Size (libplist-1.8.tar.bz2) = 81278 bytes
SHA1 (patch-libcnary_node.c) = fb68624e544acee262f1440d5920cbb4288c1958
SHA1 (patch-src_base64.c) = efc37b2345e0328eb7c74be1f07487e14eb3d3f6
SHA1 (patch-swig_plist.i) = f4a375c2b96c8eb04c5f53f4753703c0bb86088d
SHA1 (patch-swig_plist.i) = 6ec7b989168e0e20da06722a97631e082cd5b05d

View file

@ -1,13 +1,16 @@
$NetBSD: patch-swig_plist.i,v 1.1 2012/01/01 14:39:33 shattered Exp $
$NetBSD: patch-swig_plist.i,v 1.2 2012/09/29 08:39:23 dholland Exp $
--- swig/plist.i.orig 2011-03-20 16:45:21.000000000 +0000
Fix build on platforms where tv_sec isn't time_t.
--- swig/plist.i.orig 2012-01-11 14:29:30.000000000 +0000
+++ swig/plist.i
@@ -34,7 +34,7 @@
@@ -35,7 +35,8 @@
}
%typemap(out) timeval {
- struct tm* t = gmtime ( &$1.tv_sec );
+ struct tm* t = gmtime ( (time_t*)&$1.tv_sec );
+ time_t mytime = $1.tv_sec;
+ struct tm* t = gmtime ( &mytime );
if (t)
{
PyDateTime_IMPORT;