[oe-commits] org.oe.dev cairo: Add 1.4.10 with cairo-perf stat patch.

likewise commit openembedded-commits at lists.openembedded.org
Thu Oct 25 00:03:49 UTC 2007


cairo: Add 1.4.10 with cairo-perf stat patch.

Author: likewise at openembedded.org
Branch: org.openembedded.dev
Revision: f404eeaff12f4a005212507219029f6899cf3bee
ViewMTN: http://monotone.openembedded.org/revision/info/f404eeaff12f4a005212507219029f6899cf3bee
Files:
1
packages/cairo/cairo-1.4.10
packages/cairo/cairo-1.4.10/stats.patch
packages/cairo/cairo_1.4.10.bb
Diffs:

#
# mt diff -r747d9b222a87399d441566cb39b1152553e4a847 -rf404eeaff12f4a005212507219029f6899cf3bee
#
# 
# 
# add_dir "packages/cairo/cairo-1.4.10"
# 
# add_file "packages/cairo/cairo-1.4.10/stats.patch"
#  content [0792c649e590d76e5c6a362a57588d657a0c105c]
# 
# patch "packages/cairo/cairo_1.4.10.bb"
#  from [0b4c4e2659b89399b3645efcdbf2bc4f3cf8dff0]
#    to [c961e977d63c2005520443dcd583ef6d58b2564e]
# 
============================================================
--- packages/cairo/cairo-1.4.10/stats.patch	0792c649e590d76e5c6a362a57588d657a0c105c
+++ packages/cairo/cairo-1.4.10/stats.patch	0792c649e590d76e5c6a362a57588d657a0c105c
@@ -0,0 +1,33 @@
+See cairo mailing list 15-10-2007 patch by Soeren Sandmann.
+Fixes unreliable results for cairo-perf.
+
+diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c
+index 360f2dd..a8d7abc 100644
+--- a/perf/cairo-perf.c
++++ b/perf/cairo-perf.c
+@@ -166,22 +166,11 @@ cairo_perf_run (cairo_perf_t		*perf,
+ 			cairo_perf_ticks_per_second () / 1000.0);
+ 	    printf (" %lld", times[i]);
+ 	} else {
+-	    if (i > 0) {
+-		_cairo_stats_compute (&stats, times, i+1);
+-
+-		if (stats.std_dev <= CAIRO_PERF_LOW_STD_DEV &&
+-		    ! perf->exact_iterations)
+-		{
+-		    low_std_dev_count++;
+-		    if (low_std_dev_count >= CAIRO_PERF_STABLE_STD_DEV_COUNT)
+-			break;
+-		} else {
+-		    low_std_dev_count = 0;
+-		}
+-	    }
+ 	}
+     }
+ 
++    _cairo_stats_compute (&stats, times, i+1);
++	    
+     if (perf->raw) {
+ 	printf ("\n");
+     } else {
+diff --git a/perf/cairo-stats.c b/perf/cairo-stats.c
============================================================
--- packages/cairo/cairo_1.4.10.bb	0b4c4e2659b89399b3645efcdbf2bc4f3cf8dff0
+++ packages/cairo/cairo_1.4.10.bb	c961e977d63c2005520443dcd583ef6d58b2564e
@@ -1,6 +1,9 @@ require cairo.inc
 require cairo.inc
 
-SRC_URI = "http://cairographics.org/releases/cairo-${PV}.tar.gz"
+DEFAULT_PREFERENCE = "-1"
 
+SRC_URI = "http://cairographics.org/releases/cairo-${PV}.tar.gz \
+file://stats.patch;patch=1;p=1"
+
 PR = "r0"
 






More information about the Openembedded-commits mailing list