pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/qemu Provided a simple trunc() implementatio...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/318ba9d6dbcd
branches:  trunk
changeset: 533935:318ba9d6dbcd
user:      heinz <heinz%pkgsrc.org@localhost>
date:      Sun Oct 07 21:21:00 2007 +0000

description:
Provided a simple trunc() implementation for NetBSD < 3 and Dragonfly <
1.10 (thanks to Joerg Sonneberger).
This fix should solve PR pkg/36602 by Pierre Pronchery.

diffstat:

 emulators/qemu/distinfo         |   3 ++-
 emulators/qemu/patches/patch-av |  27 +++++++++++++++++++++++++++
 2 files changed, 29 insertions(+), 1 deletions(-)

diffs (48 lines):

diff -r c5053a65c7bf -r 318ba9d6dbcd emulators/qemu/distinfo
--- a/emulators/qemu/distinfo   Sun Oct 07 20:49:57 2007 +0000
+++ b/emulators/qemu/distinfo   Sun Oct 07 21:21:00 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.32 2007/05/21 20:24:44 xtraeme Exp $
+$NetBSD: distinfo,v 1.33 2007/10/07 21:21:00 heinz Exp $
 
 SHA1 (qemu-0.9.0.tar.gz) = 1e57e48a06eb8729913d92601000466eecef06cb
 RMD160 (qemu-0.9.0.tar.gz) = 4296542b6da18a6ac93d20787330d3c1c2ac0a19
@@ -10,6 +10,7 @@
 SHA1 (patch-am) = a22a3b23284c377afa8113768d68c8ef40c514f9
 SHA1 (patch-ao) = e92d56f991cf29f83e39464f9e695caa86fe5fe0
 SHA1 (patch-au) = afe7e210b7158064b8f64452c5e5ab95631bf9eb
+SHA1 (patch-av) = 715e9680d70c1aa1c83bda0270125144a26d6140
 SHA1 (patch-aw) = 3b1472a95a2312f9e49ea1a6aa517ad81328324c
 SHA1 (patch-ax) = 66b060005ecbf9fd0451f7960e81eccbabf959ca
 SHA1 (patch-ay) = 2d3051685878abe077abdbba9681bd04e04c7fb3
diff -r c5053a65c7bf -r 318ba9d6dbcd emulators/qemu/patches/patch-av
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/qemu/patches/patch-av   Sun Oct 07 21:21:00 2007 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-av,v 1.3 2007/10/07 21:21:00 heinz Exp $
+
+  Provide trunc() implementation for NetBSD 3 and Dragonfly
+
+--- fpu/softfloat-native.c.orig        2007-02-06 00:01:54.000000000 +0100
++++ fpu/softfloat-native.c
+@@ -3,6 +3,20 @@
+ #include "softfloat.h"
+ #include <math.h>
+ 
++#if defined(__DragonFly__) || defined(__NetBSD__)
++# include <sys/param.h>
++#endif
++
++#if (defined(__DragonFly__) && __DragonFly_version < 195000) || (defined(__NetBSD__) && __NetBSD_Version__ <= 399001700)
++static double trunc( double val )
++{
++    if (val > 0)
++        return floor(val);
++    else
++        return ceil(val);
++}
++#endif
++
+ void set_float_rounding_mode(int val STATUS_PARAM)
+ {
+     STATUS(float_rounding_mode) = val;



Home | Main Index | Thread Index | Old Index