pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/time/taskwarrior Fix build on SunOS. Patches submitte...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/77cdddfca99a
branches:  trunk
changeset: 366996:77cdddfca99a
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon Aug 21 14:39:05 2017 +0000

description:
Fix build on SunOS.  Patches submitted by Thomas Merkel in NetBSD/pkgsrc#9

diffstat:

 time/taskwarrior/Makefile                                   |   5 +++-
 time/taskwarrior/distinfo                                   |   3 +-
 time/taskwarrior/patches/patch-src_commands_CmdBurndown.cpp |  15 +++++++++++++
 3 files changed, 21 insertions(+), 2 deletions(-)

diffs (51 lines):

diff -r b2da6bfed207 -r 77cdddfca99a time/taskwarrior/Makefile
--- a/time/taskwarrior/Makefile Mon Aug 21 13:32:10 2017 +0000
+++ b/time/taskwarrior/Makefile Mon Aug 21 14:39:05 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2016/09/19 13:04:28 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2017/08/21 14:39:05 jperkin Exp $
 #
 
 DISTNAME=      task-2.5.1
@@ -22,6 +22,9 @@
 
 CMAKE_ARGS+=   -DTASK_MAN1DIR=${PREFIX}/${PKGMANDIR}/man1
 CMAKE_ARGS+=   -DTASK_MAN5DIR=${PREFIX}/${PKGMANDIR}/man5
+CMAKE_ARGS+=   -DCMAKE_BUILD_TYPE=release
+
+LDFLAGS.SunOS+=        -lsocket -lnsl
 
 .include "options.mk"
 
diff -r b2da6bfed207 -r 77cdddfca99a time/taskwarrior/distinfo
--- a/time/taskwarrior/distinfo Mon Aug 21 13:32:10 2017 +0000
+++ b/time/taskwarrior/distinfo Mon Aug 21 14:39:05 2017 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.1 2016/06/20 20:30:42 kamil Exp $
+$NetBSD: distinfo,v 1.2 2017/08/21 14:39:05 jperkin Exp $
 
 SHA1 (task-2.5.1.tar.gz) = 647faf0784aa8ebe48cba3e2061f79e1ddbf3e84
 RMD160 (task-2.5.1.tar.gz) = ae04417ff7f007c6e01d4d6bd4dede67adc1e35f
 SHA512 (task-2.5.1.tar.gz) = ec17e5cefff55ecd2c1cb717801c02683d94030906c8d86450c3c79c0bc5a18d82559a5e9e26a91411a1025a241b78ddbc1de51cafc1a2dd531e8229e5e61c10
 Size (task-2.5.1.tar.gz) = 903428 bytes
+SHA1 (patch-src_commands_CmdBurndown.cpp) = 36b7a4c1ce72652902705d80477b61dbd87b347e
 SHA1 (patch-src_commands_CmdEdit.cpp) = 07c33f7cb07e7459cc5eabacbe3b003afa8db060
diff -r b2da6bfed207 -r 77cdddfca99a time/taskwarrior/patches/patch-src_commands_CmdBurndown.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/taskwarrior/patches/patch-src_commands_CmdBurndown.cpp       Mon Aug 21 14:39:05 2017 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_commands_CmdBurndown.cpp,v 1.1 2017/08/21 14:39:05 jperkin Exp $
+
+Call of overloaded 'log10(unsigned int)' is ambiguous
+
+--- src/commands/CmdBurndown.cpp.orig  2016-02-24 22:18:11.000000000 +0000
++++ src/commands/CmdBurndown.cpp
+@@ -902,7 +902,7 @@ unsigned Chart::burndown_size (unsigned
+ 
+   // Choose the number from here rounded up to the nearest 10% of the next
+   // highest power of 10 or half of power of 10.
+-  const unsigned count = (unsigned) log10 (std::numeric_limits<unsigned>::max ());
++  const unsigned count = (unsigned) log10 ((double)std::numeric_limits<unsigned>::max ());
+   unsigned half = 500;
+   unsigned full = 1000;
+ 



Home | Main Index | Thread Index | Old Index