--- /dev/null
+From 9dbee4329ffd0474b939927f6d337959fb72318a Mon Sep 17 00:00:00 2001
+From: Stephan Hartmann <stha09@googlemail.com>
+Date: Fri, 31 Mar 2023 16:01:44 +0000
+Subject: [PATCH] tflite: add stdint.h for int types in internal::Spectrogram
+
+---
+ tensorflow/lite/kernels/internal/spectrogram.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tensorflow/lite/kernels/internal/spectrogram.cc b/tensorflow/lite/kernels/internal/spectrogram.cc
+index a832962a38d..919eebeb3e7 100644
+--- a/tensorflow/lite/kernels/internal/spectrogram.cc
++++ b/tensorflow/lite/kernels/internal/spectrogram.cc
+@@ -17,6 +17,7 @@ limitations under the License.
+
+ #include <assert.h>
+ #include <math.h>
++#include <stdint.h>
+
+ #include "third_party/fft2d/fft.h"
+
+--
+2.25.1
+
Source10060: gemmlowp.tar.gz
# Security vulnerability patch
+Patch1000: add-stdint.h-for-int-types-in-internal.patch
Patch1001: CVE-2020-15266.patch
Patch1002: CVE-2020-15265.patch
Patch1003: CVE-2020-26267.patch
cp %{SOURCE1001} .
+%patch1000 -p1
%patch1001 -p1
%patch1002 -p1
%patch1003 -p1
CXXFLAGS="${CXXFLAGS} -fno-lto"
%endif
+# To fix the buildbreak issue on gcc 11 or higher, '-Wno-error=stringop-overflow' option is added to CFLAGS and CXXFLAGS.
+CFLAGS="${CFLAGS} -Wno-error=stringop-overflow"
+CXXFLAGS="${CXXFLAGS} -Wno-error=stringop-overflow"
+
cp %{SOURCE1002} .
gcc gcc_version_check.c -Wno-error=class-memaccess && export CFLAGS="$CFLAGS -Wno-error=class-memaccess" && export CXXFLAGS="$CXXFLAGS -Wno-error=class-memaccess" && echo "Applying Wno-error=class-memaccess"|| echo "OLD GCC. Don't Add Wno-error=class-memaccess"