From efae1fa1df0f06a535cf0cb1f09df4dc33392cf8 Mon Sep 17 00:00:00 2001 From: ryoon Date: Wed, 19 Dec 2012 13:42:04 +0000 Subject: Fix build with gcc 4.7. --- graphics/gource/distinfo | 3 ++- graphics/gource/patches/patch-src_dirnode.cpp | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 graphics/gource/patches/patch-src_dirnode.cpp (limited to 'graphics/gource') diff --git a/graphics/gource/distinfo b/graphics/gource/distinfo index 1e720f65102..0f61e697897 100644 --- a/graphics/gource/distinfo +++ b/graphics/gource/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.4 2012/09/21 11:28:43 ryoon Exp $ +$NetBSD: distinfo,v 1.5 2012/12/19 13:42:04 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_logmill.cpp) = fed1b3aedb862b9d24a4cd4e7e26bb8ba72068f0 diff --git a/graphics/gource/patches/patch-src_dirnode.cpp b/graphics/gource/patches/patch-src_dirnode.cpp new file mode 100644 index 00000000000..cb82a854e42 --- /dev/null +++ b/graphics/gource/patches/patch-src_dirnode.cpp @@ -0,0 +1,15 @@ +$NetBSD: patch-src_dirnode.cpp,v 1.1 2012/12/19 13:42:04 ryoon Exp $ + +* Fix build failure with gcc 4.7 + +--- src/dirnode.cpp.orig 2012-04-20 01:52:29.000000000 +0000 ++++ src/dirnode.cpp +@@ -577,7 +577,7 @@ void RDirNode::calcRadius() { + //this->dir_radius_sqrt = sqrt(dir_radius); //dir_radius_sqrt is not used + + // 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); + } + + float RDirNode::distanceToParent() const{ -- cgit v1.2.3