pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libuv Fix build problem on NetBSD 6.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c1c95de1879b
branches:  trunk
changeset: 360103:c1c95de1879b
user:      taca <taca%pkgsrc.org@localhost>
date:      Wed Mar 22 01:45:07 2017 +0000

description:
Fix build problem on NetBSD 6.

diffstat:

 devel/libuv/distinfo                    |   3 ++-
 devel/libuv/patches/patch-src_unix_fs.c |  33 +++++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+), 1 deletions(-)

diffs (50 lines):

diff -r 9f7c7f3940ca -r c1c95de1879b devel/libuv/distinfo
--- a/devel/libuv/distinfo      Tue Mar 21 22:52:52 2017 +0000
+++ b/devel/libuv/distinfo      Wed Mar 22 01:45:07 2017 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.11 2017/02/07 12:59:33 wiz Exp $
+$NetBSD: distinfo,v 1.12 2017/03/22 01:45:07 taca Exp $
 
 SHA1 (libuv-1.11.0.tar.gz) = 54f0972aa0d3f6a6036d477b381c01f030f9a2b5
 RMD160 (libuv-1.11.0.tar.gz) = f2ed5e5c457a66625875d9fcd56584feebc94268
 SHA512 (libuv-1.11.0.tar.gz) = fb0415d62a32cfc658bad6c849263ac236d27e9188fac603467173a5ae34fb3ad3e3bfd333e543ebd98b4fd59e0a58a93275e830c4365c058b62bb0c2c802732
 Size (libuv-1.11.0.tar.gz) = 1083067 bytes
 SHA1 (patch-autogen.sh) = a5f48189bfb17624c545a80626ea311b7755d232
+SHA1 (patch-src_unix_fs.c) = 21fffa99df9528aedee0c6fe299d28ff5110d2ba
diff -r 9f7c7f3940ca -r c1c95de1879b devel/libuv/patches/patch-src_unix_fs.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libuv/patches/patch-src_unix_fs.c   Wed Mar 22 01:45:07 2017 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-src_unix_fs.c,v 1.1 2017/03/22 01:45:08 taca Exp $
+
+* Fix portability on NetBSD.
+
+--- src/unix/fs.c.orig 2017-02-01 00:38:56.000000000 +0000
++++ src/unix/fs.c
+@@ -778,7 +778,7 @@ static void uv__to_stat(struct stat* src
+   dst->st_blksize = src->st_blksize;
+   dst->st_blocks = src->st_blocks;
+ 
+-#if defined(__APPLE__)
++#if defined(__APPLE__) || defined(__NetBSD__)
+   dst->st_atim.tv_sec = src->st_atimespec.tv_sec;
+   dst->st_atim.tv_nsec = src->st_atimespec.tv_nsec;
+   dst->st_mtim.tv_sec = src->st_mtimespec.tv_sec;
+@@ -804,7 +804,6 @@ static void uv__to_stat(struct stat* src
+     defined(__DragonFly__)   || \
+     defined(__FreeBSD__)     || \
+     defined(__OpenBSD__)     || \
+-    defined(__NetBSD__)      || \
+     defined(_GNU_SOURCE)     || \
+     defined(_BSD_SOURCE)     || \
+     defined(_SVID_SOURCE)    || \
+@@ -816,8 +815,7 @@ static void uv__to_stat(struct stat* src
+   dst->st_mtim.tv_nsec = src->st_mtim.tv_nsec;
+   dst->st_ctim.tv_sec = src->st_ctim.tv_sec;
+   dst->st_ctim.tv_nsec = src->st_ctim.tv_nsec;
+-# if defined(__FreeBSD__)    || \
+-     defined(__NetBSD__)
++# if defined(__FreeBSD__)
+   dst->st_birthtim.tv_sec = src->st_birthtim.tv_sec;
+   dst->st_birthtim.tv_nsec = src->st_birthtim.tv_nsec;
+   dst->st_flags = src->st_flags;



Home | Main Index | Thread Index | Old Index