fixed build error 66/9966/3 accepted/tizen/ivi/genivi tizen_ivi_genivi accepted/tizen/20130916.012909 accepted/tizen/20130916.192805 accepted/tizen/20130916.192849 accepted/tizen/20130916.211500 accepted/tizen/ivi/genivi/20140131.021418 ivi_oct_m2 submit/tizen/20130916.002143 submit/tizen_ivi_genivi/20140131.021021
authorRC8_221 <rc8_221@moochangkim-Samsung-DeskTop-System.(none)>
Thu, 12 Sep 2013 05:02:22 +0000 (14:02 +0900)
committerMooChang Kim <moochang.kim@samsung.com>
Sun, 15 Sep 2013 03:25:32 +0000 (12:25 +0900)
Change-Id: I576da847691950bb0953b38e1e2bd74d99c3ef85
Signed-off-by: moochang.kim <moochang.kim@samsung.com>
dispatch-1.0/dispatch/dispatch.h
packaging/gcd.spec

index b9cee61..4a59eae 100644 (file)
 #include <stdbool.h>
 #include <stdarg.h>
 #if HAVE_UNISTD_H
+#ifdef __BLOCKS__
+#undef __block
+#endif
 #include <unistd.h>
+#ifdef __BLOCKS__
+#define __block __attribute__((__blocks__(byref)))
+#endif
 #endif
 
 #if defined(__cplusplus)
index ce90c91..ad2b3fa 100644 (file)
@@ -2,12 +2,10 @@ Name:       gcd
 Summary:    GCD(Grand Central Dispatch) library
 Version:    1.0
 Release:    1
-License:    Apache License, Version 2.0 and BSD
-Vendor:     AUTHOR
-Group:      System Environment/Libraries
+License:    Apache-2.0 and BSD-2-Clause
+Group:      System/Libraries
 Source0:    %{name}-%{version}.tar.gz
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-Provides:   libdispatch.so.0 libkqueue.so.0 libBlocksRuntime.so.0 libpthread_workqueue.so.0
+#Provides:   libdispatch.so.0 libkqueue.so.0 libBlocksRuntime.so.0 libpthread_workqueue.so.0
 BuildRequires:  clang
 
 
@@ -15,8 +13,8 @@ BuildRequires:  clang
 GCD(Grand Central Dispatch) library.
 
 %package devel  
-Summary:    GCD(Grand Central Dispatch) library.  
-Group:      TO_BE/FILLED_IN  
+Summary:    GCD(Grand Central Dispatch) library
+Group:      System/Libraries
 Requires:   %{name} = %{version}-%{release}  
   
 %description devel  
@@ -27,7 +25,7 @@ GCD(Grand Central Dispatch) library. (DEV)
 
 %build
 
-export GCCVER=$(LANG=C gcc --version | head -1 | sed 's/\([a-z+]*\) \((.*)\) \([1-9\.]*\)\(.*\)/\3/')
+export GCCVER=$(LANG=C gcc --version | head -1 | sed 's/\([a-z+]*\) \((.*)\) \([0-9\.]*\)\(.*\)/\3/')
 
 cd kqueue-1.0.4
 ./configure --prefix=/usr
@@ -48,13 +46,13 @@ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:%{_builddir}/%{name}-%{version}/BlocksR
 export CFLAGS="$CFLAGS -L%{_builddir}/%{name}-%{version}/BlocksRuntime-0.1 -lBlocksRuntime -I%{_builddir}/%{name}-%{version}/BlocksRuntime-0.1 -Xlinker --build-id"
 
 %ifarch %{ix86}
-export CC="clang -target i386-tizen-linux-gnueabi"
-export CFLAGS="$CFLAGS -Xlinker -L/usr/lib/gcc/i586-tizen-linux/$GCCVER"
-export COMPILER_PATH=/usr/lib/gcc/i586-tizen-linux/$GCCVER
+export CC="clang -target i586-tizen-linux"
+export CFLAGS="$CFLAGS -Xlinker -L/usr/lib/gcc/i586-tizen-linux/4.8"
+export COMPILER_PATH=/usr/lib/gcc/i586-tizen-linux/4.8
 %else
-export CC="clang -target arm-tizen-linux-gnueabi"
-export CFLAGS="$CFLAGS -Xlinker -L/usr/lib/gcc/armv7l-tizen-linux-gnueabi/$GCCVER"
-export COMPILER_PATH=/usr/lib/gcc/armv7l-tizen-linux-gnueabi/$GCCVER
+export CC="clang -target %{_target_cpu}-tizen-linux-gnueabi"
+export CFLAGS="$CFLAGS -Xlinker -L/usr/lib/gcc/%{_target_cpu}-tizen-linux-gnueabi/4.8"
+export COMPILER_PATH=/usr/lib/gcc/%{_target_cpu}-tizen-linux-gnueabi/4.8
 %endif
 
 ./configure --with-blocks-runtime=/usr/lib --prefix=/usr