[OE-core] [PATCH 14/16] clutter-box2d: Replace use of finite macro with C99 compliant isfinite()

Saul Wold sgw at linux.intel.com
Wed Jul 20 00:45:49 UTC 2011


On 07/18/2011 05:17 PM, Khem Raj wrote:
> Signed-off-by: Khem Raj<raj.khem at gmail.com>
> ---
>   .../clutter/clutter-box2d/isfinite.patch           |   19 +++++++++++++++++++
>   meta/recipes-graphics/clutter/clutter-box2d_git.bb |    6 ++++--
>   2 files changed, 23 insertions(+), 2 deletions(-)
>   create mode 100644 meta/recipes-graphics/clutter/clutter-box2d/isfinite.patch
>
> diff --git a/meta/recipes-graphics/clutter/clutter-box2d/isfinite.patch b/meta/recipes-graphics/clutter/clutter-box2d/isfinite.patch
> new file mode 100644
> index 0000000..fd2bf74
> --- /dev/null
> +++ b/meta/recipes-graphics/clutter/clutter-box2d/isfinite.patch
> @@ -0,0 +1,19 @@
> +_finite is obsoleted and C99 has isfinite instead so we should use it
> +
> +Signed-off-by: Khem Raj<raj.khem at gmail.com>
> +
> +Upstream-Status: Pending
> +
> +Index: clutter-box2d-0.10.0/box2d/Source/Common/b2Math.h
> +===================================================================
> +--- clutter-box2d-0.10.0.orig/box2d/Source/Common/b2Math.h	2008-12-16 06:42:10.000000000 -0800
> ++++ clutter-box2d-0.10.0/box2d/Source/Common/b2Math.h	2011-07-17 02:10:29.833825198 -0700
> +@@ -60,7 +60,7 @@
> + #ifdef _MSC_VER
> + 	return _finite(x) != 0;
> + #else
> +-	return finite(x) != 0;
> ++	return std::isfinite(x) != 0;
> + #endif
> + }
> +
> diff --git a/meta/recipes-graphics/clutter/clutter-box2d_git.bb b/meta/recipes-graphics/clutter/clutter-box2d_git.bb
> index bfd46b2..06f5fa2 100644
> --- a/meta/recipes-graphics/clutter/clutter-box2d_git.bb
> +++ b/meta/recipes-graphics/clutter/clutter-box2d_git.bb
> @@ -4,9 +4,11 @@ LIC_FILES_CHKSUM = "file://box2d/License.txt;md5=e5d39ad91f7dc4692dcdb1d85139ec6
>
>   SRCREV = "4799ac10ae8cb7da936a2b999aba58fe62eb1ee3"
>   PV = "0.10.1+git${SRCPV}"
> -PR = "r0"
> +PR = "r1"
>
> -SRC_URI = "git://git.gnome.org/clutter-box2d.git"
> +SRC_URI = "git://git.gnome.org/clutter-box2d.git \
> +           file://isfinite.patch \
> +          "
>
>   S = "${WORKDIR}/git"
>

Khem,

This patch seems to have patched clutter-box2d-1.6_0.10.0.bb also, with 
the isfinite patch.  This fails to apply.  Was this intentional were you 
planning on updating the 1.6 version?

Sau!




More information about the Openembedded-core mailing list