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 6a0f93e..fe4c89d 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 a873d50..5f4c488 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 8424a45..f9beb06 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;