Patch for x86 67/138867/2
authorSunmin Lee <sunm.lee@samsung.com>
Wed, 24 May 2017 06:17:24 +0000 (15:17 +0900)
committerSunmin Lee <sunm.lee@samsung.com>
Fri, 14 Jul 2017 07:04:10 +0000 (16:04 +0900)
Resolve issues of building libtota in x86, x86_64 architecture.

Change-Id: I70331c9d9246ca72d57e6d3928bf03ee9a65ae94
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
CMakeLists.txt
packaging/libtota.spec
ss_engine/fota_common.h

index 6a0f93e28c2998b65262175179e869862274084a..fe4c89d35d8d553231db7b38bdc5a4cbdb2704ca 100755 (executable)
@@ -77,7 +77,7 @@ TARGET_LINK_LIBRARIES(${LIBNAME} ${packages_LDFLAGS})
 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libtota.a DESTINATION ${LIB_INSTALL_DIR})
 #CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/modulename-api.pc.in ${CMAKE_CURRENT_BINARY_DIR}/modulename-api.pc @ONLY)
 #INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/modulename-api.pc DESTINATION lib/pkgconfig)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/tota.pc DESTINATION lib/pkgconfig)
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/tota.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 FOREACH(hfile ${HEADERS})
         INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${hfile} DESTINATION include)
 ENDFOREACH(hfile)
index a873d506abb4ebf777f007ea2d9b38338f486bd6..5f4c48875ab3012754d345a7699a0a7ca9a49f1a 100755 (executable)
@@ -1,8 +1,7 @@
 Name:          libtota
 Summary:       fota update library
-ExclusiveArch:         %{arm}
-Version:       0.2.1
-Release:       2
+Version:       0.2.2
+Release:       3
 Group:         System
 License:       Apache-2.0 and BSD-2-Clause and BSD-3-Clause and PD
 Source0:       %{name}-%{version}.tar.gz
index 8424a4516a7255fe54f7b7c40f34b250889e6f5a..f9beb06978407591a639b9d0f34573666c41356d 100755 (executable)
@@ -30,7 +30,10 @@ typedef unsigned short u16;
 
 typedef signed int s32;
 typedef unsigned int u32;
+#ifndef __size_t /* typedef check for x86 env: stddef.h */
+#define __size_t
 typedef u32 size_t;
+#endif /* __size_t */
 
 typedef signed long sl32;
 typedef unsigned long ul32;