[oe-commits] org.oe.dev gnash-minimal cvs: fix missing trunc() definition, https://savannah.gnu.org/bugs/?24188

koen commit oe at amethyst.openembedded.net
Tue Sep 2 14:54:21 UTC 2008


gnash-minimal cvs: fix missing trunc() definition, https://savannah.gnu.org/bugs/?24188

Author: koen at openembedded.org
Branch: org.openembedded.dev
Revision: c3a62b48d02d062aec8549178e465cc1d3720e85
ViewMTN: http://monotone.openembedded.org/revision/info/c3a62b48d02d062aec8549178e465cc1d3720e85
Files:
1
packages/gnash/files/fix-trunc.diff
packages/gnash/gnash-minimal_cvs.bb
Diffs:

#
# mt diff -r6e8b3cd541933d9acf230ba09b3ce85f2b2e3b9b -rc3a62b48d02d062aec8549178e465cc1d3720e85
#
#
#
# add_file "packages/gnash/files/fix-trunc.diff"
#  content [71edebd003d1722ca32087d3e320d7b721885aa4]
# 
# patch "packages/gnash/gnash-minimal_cvs.bb"
#  from [fdecc6cfe242539023946edeea322beddd20342d]
#    to [66cd92f9d310f939a8073eaa9cd0baff98b76d13]
#
============================================================
--- packages/gnash/files/fix-trunc.diff	71edebd003d1722ca32087d3e320d7b721885aa4
+++ packages/gnash/files/fix-trunc.diff	71edebd003d1722ca32087d3e320d7b721885aa4
@@ -0,0 +1,13 @@
+--- /tmp/utility.h	2008-09-02 16:35:44.000000000 +0200
++++ gnash/libbase/utility.h	2008-09-02 16:36:10.000000000 +0200
+@@ -327,6 +327,10 @@
+ #endif
+ }
+ 
++#ifndef HAVE_TRUNC
++inline double trunc(double x) { return (x < 0 ?  -(std::floor(-x)) : std::floor(x)); }
++#endif
++
+ #endif // UTILITY_H
+ 
+ 
============================================================
--- packages/gnash/gnash-minimal_cvs.bb	fdecc6cfe242539023946edeea322beddd20342d
+++ packages/gnash/gnash-minimal_cvs.bb	66cd92f9d310f939a8073eaa9cd0baff98b76d13
@@ -6,5 +6,15 @@ SRC_URI = "cvs://anonymous:anonymous@cvs
 PV = "0.8.3+cvs${SRCDATE}"
 
 SRC_URI = "cvs://anonymous:anonymous@cvs.sv.gnu.org/sources/gnash;module=gnash"
-SRC_URI += "file://libtool-2.2.patch;patch=1 file://libintl.patch;patch=1"
+SRC_URI += "file://libtool-2.2.patch;patch=1 \
+            file://libintl.patch;patch=1 \
+            file://fix-trunc.diff;patch=1"
+
 S = ${WORKDIR}/gnash
+
+
+do_configure_prepend() {
+	sed -i -e 's:dnl AC_CHECK_LIB(m, trunc:AC_CHECK_LIB(m, trunc:g' ${S}/configure.ac
+}
+
+






More information about the Openembedded-commits mailing list