Accepting request 1074899 from home:frispete:ML

- Apply fix-gcc13-fallout.patch to fix the gcc 13 fallout
- Use python3 as the python script interpreter

OBS-URL: https://build.opensuse.org/request/show/1074899
OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/ComputeLibrary?expand=0&rev=34
This commit is contained in:
Guillaume GARDET 2023-03-28 18:12:43 +00:00 committed by Git OBS Bridge
parent cd04e25fa7
commit b1bde32d05
3 changed files with 56 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Mar 27 21:36:33 UTC 2023 - Hans-Peter Jansen <hpj@urpla.net>
- Apply fix-gcc13-fallout.patch to fix the gcc 13 fallout
- Use python3 as the python script interpreter
-------------------------------------------------------------------
Tue Mar 14 13:24:45 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>

View File

@ -26,6 +26,7 @@ Summary: ARM Compute Library
License: MIT
URL: https://developer.arm.com/technologies/compute-library
Source: https://github.com/ARM-software/ComputeLibrary/archive/v%{version}.tar.gz#/ComputeLibrary-%{version}.tar.gz
Patch: fix-gcc13-fallout.patch
BuildRequires: gcc-c++
BuildRequires: git-core
BuildRequires: ocl-icd-devel
@ -132,7 +133,7 @@ install -Dm0755 scripts/* %{buildroot}%{_bindir}
rm -f %{buildroot}%{_bindir}/*.h
# Fix Python scripts interpreter
for pyfile in `ls %{buildroot}%{_bindir}/*.py`; do
sed -i -e 's|#!%{_bindir}/env python|#!%{_bindir}/python|' $pyfile
sed -i -e 's|#!%{_bindir}/env python|#!%{_bindir}/python3|' $pyfile
done
%post -n libarm_compute%{so_ver} -p /sbin/ldconfig

48
fix-gcc13-fallout.patch Normal file
View File

@ -0,0 +1,48 @@
Index: b/src/common/cpuinfo/CpuInfo.h
===================================================================
--- a/src/common/cpuinfo/CpuInfo.h
+++ b/src/common/cpuinfo/CpuInfo.h
@@ -27,6 +27,7 @@
#include "src/common/cpuinfo/CpuIsaInfo.h"
#include "src/common/cpuinfo/CpuModel.h"
+#include <cstdint>
#include <string>
#include <vector>
Index: b/arm_compute/core/TensorInfo.h
===================================================================
--- a/arm_compute/core/TensorInfo.h
+++ b/arm_compute/core/TensorInfo.h
@@ -35,6 +35,7 @@
#include "arm_compute/core/Utils.h"
#include <cstddef>
+#include <cstdint>
#include <memory>
namespace arm_compute
Index: b/arm_compute/core/Strides.h
===================================================================
--- a/arm_compute/core/Strides.h
+++ b/arm_compute/core/Strides.h
@@ -30,6 +30,7 @@
#include <algorithm>
#include <array>
#include <cstddef>
+#include <cstdint>
namespace arm_compute
{
Index: b/arm_compute/core/utils/misc/Utility.h
===================================================================
--- a/arm_compute/core/utils/misc/Utility.h
+++ b/arm_compute/core/utils/misc/Utility.h
@@ -28,6 +28,7 @@
#include <algorithm>
#include <array>
+#include <cstdint>
#include <limits>
#include <numeric>
#include <vector>