--- /dev/null
+From a5161fa887579178e09f770e7065becfef1e4bf2 Mon Sep 17 00:00:00 2001
+From: Wook Song <wook16.song@samsung.com>
+Date: Thu, 15 Jun 2023 23:57:31 +0900
+Subject: [PATCH 1/1] [Tizen] Fix build breaks on Tizen GCC 13
+
+To fix build breaks on Tizen GCC 13, this patch removes -Wuninitialized
+from os_flags.cmake and adds #include <time.h> to the file_util.hpp.
+
+Change-Id: Ic5dfbc8c688393161567dccc01294fbf94bca6bd
+Signed-off-by: Wook Song <wook16.song@samsung.com>
+---
+ inference-engine/cmake/os_flags.cmake | 2 +-
+ inference-engine/src/inference_engine/file_utils.h | 1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/inference-engine/cmake/os_flags.cmake b/inference-engine/cmake/os_flags.cmake
+index ad1585997..bd27df6a9 100644
+--- a/inference-engine/cmake/os_flags.cmake
++++ b/inference-engine/cmake/os_flags.cmake
+@@ -56,7 +56,7 @@ else()
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-reorder")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wswitch")
+ elseif(UNIX)
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wuninitialized -Winit-self")
++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Winit-self")
+ if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-switch")
+ else()
+diff --git a/inference-engine/src/inference_engine/file_utils.h b/inference-engine/src/inference_engine/file_utils.h
+index ce79a9f17..591335491 100644
+--- a/inference-engine/src/inference_engine/file_utils.h
++++ b/inference-engine/src/inference_engine/file_utils.h
+@@ -23,6 +23,7 @@
+ # include <mach/mach.h>
+ #endif
+
++#include <time.h>
+ #include "ie_api.h"
+
+ namespace FileUtils {
+--
+2.25.1
+
Patch0: 0001-CMake-Do-not-call-get_linux_name-when-LINUX_OS_NAME-.patch
Patch1: 0002-CMake-Add-a-variable-to-resolve-dependency-on-TBB-us.patch
Patch2: 0003-VPU-CMake-Add-a-cmake-option-to-skip-downloading-MVN.patch
+Patch3: 0004-Tizen-Fix-build-breaks-on-Tizen-GCC-13.patch
BuildRequires: cmake
BuildRequires: pkgconfig(libtbb)
BuildRequires: pkgconfig(libusb-1.0)
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
cp %{SOURCE1} .
cp %{SOURCE1001} ./inference-engine/thirdparty
cp %{SOURCE1002} ./inference-engine/thirdparty
rm -rf build && mkdir -p build
pushd build
CFLAGS="${CFLAGS:-%optflags}"; export CFLAGS=${CFLAGS/-Wall/};
+CFLAGS=`echo ${CFLAGS} -Wno-format-truncation`
CXXFLAGS="${CXXFLAGS:-%optflags}"; export CXXFLAGS=${CXXFLAGS/-Wall/};
+CXXFLAGS=`echo ${CXXFLAGS} -Wno-format-truncation -Wno-unused-const-variable -Wno-free-nonheap-object -Wno-deprecated-declarations -Wno-array-bounds`
FFLAGS="${FFLAGS:-%optflags}"; export FFLAGS=${FFLAGS/-Wall/};
cmake .. \
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \