pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/gnome-system-monitor FreeBSD doesn't have log...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6d944317f66c
branches: trunk
changeset: 399499:6d944317f66c
user: sno <sno%pkgsrc.org@localhost>
date: Sun Sep 20 19:55:40 2009 +0000
description:
FreeBSD doesn't have log2() - use patch from ports to get it working anyway
diffstat:
sysutils/gnome-system-monitor/distinfo | 3 ++-
sysutils/gnome-system-monitor/patches/patch-ac | 17 +++++++++++++++++
2 files changed, 19 insertions(+), 1 deletions(-)
diffs (34 lines):
diff -r c1bd774e759d -r 6d944317f66c sysutils/gnome-system-monitor/distinfo
--- a/sysutils/gnome-system-monitor/distinfo Sun Sep 20 19:17:21 2009 +0000
+++ b/sysutils/gnome-system-monitor/distinfo Sun Sep 20 19:55:40 2009 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.12 2009/05/26 19:11:55 wiz Exp $
+$NetBSD: distinfo,v 1.13 2009/09/20 19:55:40 sno Exp $
SHA1 (gnome-system-monitor-2.26.2.tar.bz2) = a24d042ac3eefc77970a2ebdf56a94d77df96e34
RMD160 (gnome-system-monitor-2.26.2.tar.bz2) = 31cc3c0e531275254bf9ba33cb94ad5258ea936c
Size (gnome-system-monitor-2.26.2.tar.bz2) = 2188963 bytes
SHA1 (patch-aa) = 46ed47a4f87551a30d572d931fb7bc9114850192
SHA1 (patch-ab) = d0398e6309aa979ef270656ba61eac5d8f47aca2
+SHA1 (patch-ac) = d9b786191c064c38576f2650376d1cc7a15fe81b
diff -r c1bd774e759d -r 6d944317f66c sysutils/gnome-system-monitor/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/gnome-system-monitor/patches/patch-ac Sun Sep 20 19:55:40 2009 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-ac,v 1.1 2009/09/20 19:55:40 sno Exp $
+
+--- src/load-graph.cpp.orig 2009-09-20 21:16:41.000000000 +0200
++++ src/load-graph.cpp 2009-09-20 21:18:27.000000000 +0200
+@@ -395,8 +395,11 @@
+ //
+ // e.g: ceil(100.5 KiB) = 101 KiB = 101 * 2**(1 * 10)
+ // where base10 = 1, coef10 = 101, pow2 = 16
+-
++#ifdef __FreeBSD__
++ unsigned pow2 = std::floor(log(new_max) / log(2));
++#else
+ unsigned pow2 = std::floor(log2(new_max));
++#endif
+ unsigned base10 = pow2 / 10;
+ unsigned coef10 = std::ceil(new_max / double(1UL << (base10 * 10)));
+ g_assert(new_max <= (coef10 * (1UL << (base10 * 10))));
Home |
Main Index |
Thread Index |
Old Index