Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build on illumos (SmartOS) #9

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions time/taskwarrior/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ INSTALLATION_DIRS+= ${PKGMANDIR}/man1 ${PKGMANDIR}/man5

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"

Expand Down
1 change: 1 addition & 0 deletions time/taskwarrior/distinfo
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ 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
15 changes: 15 additions & 0 deletions time/taskwarrior/patches/patch-src_commands_CmdBurndown.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$NetBSD$

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;