diff options
author | ryoon <ryoon@pkgsrc.org> | 2012-12-19 13:50:35 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2012-12-19 13:50:35 +0000 |
commit | 8548eb105d1661d373b9e6bee92ca8974acd9951 (patch) | |
tree | 4b2bce71140bae61b0457aeb4150eb6e6f1e3474 /graphics/gource | |
parent | 242e02c2e81877761c5156a075797700b4d8636f (diff) | |
download | pkgsrc-8548eb105d1661d373b9e6bee92ca8974acd9951.tar.gz |
Fix build again on gcc 4.5.4.
Diffstat (limited to 'graphics/gource')
-rw-r--r-- | graphics/gource/distinfo | 4 | ||||
-rw-r--r-- | graphics/gource/patches/patch-src_dirnode.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/graphics/gource/distinfo b/graphics/gource/distinfo index 0f61e697897..14cbb512321 100644 --- a/graphics/gource/distinfo +++ b/graphics/gource/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.5 2012/12/19 13:42:04 ryoon Exp $ +$NetBSD: distinfo,v 1.6 2012/12/19 13:50:35 ryoon Exp $ SHA1 (gource-0.38.tar.gz) = 78f8c2064114313851f53b657d12db28abb89fae RMD160 (gource-0.38.tar.gz) = bfeb1de7d1d71dd8cb4d2f9e3fa4ecfc43a00191 Size (gource-0.38.tar.gz) = 850811 bytes -SHA1 (patch-src_dirnode.cpp) = 7a396d1a842f1f027ec9ac77019f5c0ab6c82ea4 +SHA1 (patch-src_dirnode.cpp) = b692c7c3cf9a9cb8e47d32cf7864cbb0a293802c SHA1 (patch-src_logmill.cpp) = fed1b3aedb862b9d24a4cd4e7e26bb8ba72068f0 diff --git a/graphics/gource/patches/patch-src_dirnode.cpp b/graphics/gource/patches/patch-src_dirnode.cpp index cb82a854e42..4d5f8b0822c 100644 --- a/graphics/gource/patches/patch-src_dirnode.cpp +++ b/graphics/gource/patches/patch-src_dirnode.cpp @@ -1,6 +1,6 @@ -$NetBSD: patch-src_dirnode.cpp,v 1.1 2012/12/19 13:42:04 ryoon Exp $ +$NetBSD: patch-src_dirnode.cpp,v 1.2 2012/12/19 13:50:35 ryoon Exp $ -* Fix build failure with gcc 4.7 +* Fix build failure with gcc 4.7 (and 5.4.4) --- src/dirnode.cpp.orig 2012-04-20 01:52:29.000000000 +0000 +++ src/dirnode.cpp @@ -9,7 +9,7 @@ $NetBSD: patch-src_dirnode.cpp,v 1.1 2012/12/19 13:42:04 ryoon Exp $ // this->parent_radius = std::max(1.0, parent_circ / PI); - this->parent_radius = std::max(1.0, sqrt(total_file_area) * gGourceDirPadding); -+ this->parent_radius = std::max(1.0f, sqrt(total_file_area) * gGourceDirPadding); ++ this->parent_radius = std::max(1.0f, (float) (sqrt(total_file_area) * gGourceDirPadding)); } float RDirNode::distanceToParent() const{ |