pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/samurai samurai: fix SunOS build



details:   https://anonhg.NetBSD.org/pkgsrc/rev/76b23fa83242
branches:  trunk
changeset: 441838:76b23fa83242
user:      gutteridge <gutteridge%pkgsrc.org@localhost>
date:      Thu Nov 12 01:24:35 2020 +0000

description:
samurai: fix SunOS build

diffstat:

 devel/samurai/distinfo              |   3 ++-
 devel/samurai/patches/patch-graph.c |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 05f7f025d6c4 -r 76b23fa83242 devel/samurai/distinfo
--- a/devel/samurai/distinfo    Thu Nov 12 01:20:02 2020 +0000
+++ b/devel/samurai/distinfo    Thu Nov 12 01:24:35 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2020/06/13 17:50:40 nia Exp $
+$NetBSD: distinfo,v 1.4 2020/11/12 01:24:35 gutteridge Exp $
 
 SHA1 (samurai-1.1.tar.gz) = 22e9f7ed5e96db903b903660bf8dc0bee955cc16
 RMD160 (samurai-1.1.tar.gz) = 382a2f7b35500e875b2500446f710a800091dd26
 SHA512 (samurai-1.1.tar.gz) = b27302c34d736f483909e57c8b162609eaa4c86571c1167b71a5564b521cc3af2861307a16bb6dca55e80952088989e9526b103160d2ea054d15f4ed85b1cedb
 Size (samurai-1.1.tar.gz) = 32023 bytes
+SHA1 (patch-graph.c) = 5ac00930eca760beb787a8b950eb2c3ca577d78a
diff -r 05f7f025d6c4 -r 76b23fa83242 devel/samurai/patches/patch-graph.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/samurai/patches/patch-graph.c       Thu Nov 12 01:24:35 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-graph.c,v 1.1 2020/11/12 01:24:36 gutteridge Exp $
+
+Fix SunOS build. https://github.com/michaelforney/samurai/pull/59
+
+--- graph.c.orig       2020-03-29 00:40:58.000000000 +0000
++++ graph.c
+@@ -93,6 +93,8 @@ nodestat(struct node *n)
+       } else {
+ #ifdef __APPLE__
+               n->mtime = (int64_t)st.st_mtime * 1000000000 + st.st_mtimensec;
++#elif defined(__sun)
++              n->mtime = (int64_t)st.st_mtim.__tv_sec * 1000000000 + st.st_mtim.__tv_nsec;
+ #else
+               n->mtime = (int64_t)st.st_mtim.tv_sec * 1000000000 + st.st_mtim.tv_nsec;
+ #endif



Home | Main Index | Thread Index | Old Index