packages: LiTE/LiTE.spec, LiTE/LiTE-stat.patch (NEW) - added stat patch (fi...

qboosh qboosh at pld-linux.org
Sun Jan 1 11:09:38 CET 2012


Author: qboosh                       Date: Sun Jan  1 10:09:38 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added stat patch (fixes build in current environment)
- release 2

---- Files affected:
packages/LiTE:
   LiTE.spec (1.11 -> 1.12) , LiTE-stat.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/LiTE/LiTE.spec
diff -u packages/LiTE/LiTE.spec:1.11 packages/LiTE/LiTE.spec:1.12
--- packages/LiTE/LiTE.spec:1.11	Thu Nov 18 09:00:54 2010
+++ packages/LiTE/LiTE.spec	Sun Jan  1 11:09:33 2012
@@ -7,11 +7,12 @@
 Summary(pl.UTF-8):	LiTE - silnik toolkitu
 Name:		LiTE
 Version:	0.8.10
-Release:	1
+Release:	2
 License:	LGPL v2+
 Group:		Libraries
 Source0:	http://www.directfb.org/downloads/Libs/%{name}-%{version}.tar.gz
 # Source0-md5:	b9a28007d38c2b1c51ba1c3841df29ad
+Patch0:		%{name}-stat.patch
 URL:		http://www.directfb.org/index.php?path=Platform/LiTE
 BuildRequires:	DirectFB-devel >= 1:1.0.0
 BuildRequires:	autoconf >= 2.52
@@ -56,6 +57,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -145,6 +147,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.12  2012/01/01 10:09:33  qboosh
+- added stat patch (fixes build in current environment)
+- release 2
+
 Revision 1.11  2010/11/18 08:00:54  qboosh
 - updated to 0.8.10
 

================================================================
Index: packages/LiTE/LiTE-stat.patch
diff -u /dev/null packages/LiTE/LiTE-stat.patch:1.1
--- /dev/null	Sun Jan  1 11:09:38 2012
+++ packages/LiTE/LiTE-stat.patch	Sun Jan  1 11:09:33 2012
@@ -0,0 +1,38 @@
+stat already declared as different kind of symbol
+--- LiTE-0.8.10/examples/dfbspy.c.orig	2008-06-21 01:22:49.000000000 +0200
++++ LiTE-0.8.10/examples/dfbspy.c	2012-01-01 11:01:33.872553222 +0100
+@@ -89,9 +89,9 @@
+ 
+ /**************************************************************************************************/
+ 
+-#define CALC(x)     stat.x = (int)(((s.x - last_stat.x) * 1000 / (float) diff) + 0.5f)
++#define CALC(x)     cur_stat.x = (int)(((s.x - last_stat.x) * 1000 / (float) diff) + 0.5f)
+ 
+-static FusionStat last_stat, stat;
++static FusionStat last_stat, cur_stat;
+ static long long  last_millis;
+ 
+ static int
+@@ -145,14 +145,14 @@
+      void          (*update)( LiteLabel *label, void *ctx );
+      void           *ctx;
+ } list[] = {
+-     { "lease/purchase", update_number, &stat.lease_purchase },
+-     { "cede",           update_number, &stat.cede },
+-     { "attach",         update_number, &stat.attach },
+-     { "detach",         update_number, &stat.detach },
+-     { "ref up",         update_number, &stat.ref_up },
+-     { "ref down",       update_number, &stat.ref_down },
+-     { "prevail/swoop",  update_number, &stat.prevail_swoop },
+-     { "dismiss",        update_number, &stat.dismiss }
++     { "lease/purchase", update_number, &cur_stat.lease_purchase },
++     { "cede",           update_number, &cur_stat.cede },
++     { "attach",         update_number, &cur_stat.attach },
++     { "detach",         update_number, &cur_stat.detach },
++     { "ref up",         update_number, &cur_stat.ref_up },
++     { "ref down",       update_number, &cur_stat.ref_down },
++     { "prevail/swoop",  update_number, &cur_stat.prevail_swoop },
++     { "dismiss",        update_number, &cur_stat.dismiss }
+ };
+ 
+ #define NUM_LIST    (sizeof(list)/sizeof(list[0]))
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/LiTE/LiTE.spec?r1=1.11&r2=1.12&f=u



More information about the pld-cvs-commit mailing list