From 2327571ba5ef96ce6d2828cea15a4e9495721667 Mon Sep 17 00:00:00 2001 From: Lin Jiaxin Date: Mon, 2 Aug 2021 16:43:15 +0800 Subject: [PATCH] fix for gcc 10 error after updating to gcc 10.3.1: src/zimg/colorspace/matrix3.cpp:45:7: error: 'size_t' was not declared in this scope; did you mean 'std::size_t'? 45 | for (size_t i = 0; i < 3; ++i) { | ^~~~~~ | std::size_t In file included from /usr/include/c++/10.3.1/utility:68, from /usr/include/c++/10.3.1/array:38, from src/zimg/colorspace/matrix3.h:6, from src/zimg/colorspace/matrix3.cpp:1: refer to: https://bugs.gentoo.org/721676 --- gcc-10.patch | 7 +++++++ zimg.spec | 8 ++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 gcc-10.patch diff --git a/gcc-10.patch b/gcc-10.patch new file mode 100644 index 0000000..25c30d3 --- /dev/null +++ b/gcc-10.patch @@ -0,0 +1,7 @@ +--- src/zimg/colorspace/matrix3.cpp_old 2021-08-02 16:27:28.737949184 +0800 ++++ src/zimg/colorspace/matrix3.cpp 2021-08-02 16:27:48.394167745 +0800 +@@ -1,3 +1,4 @@ ++#include + #include "matrix3.h" + + namespace zimg { diff --git a/zimg.spec b/zimg.spec index 2b11c65..925679e 100644 --- a/zimg.spec +++ b/zimg.spec @@ -1,11 +1,12 @@ Name: zimg Version: 2.9.3 -Release: 1 +Release: 2 Summary: Scaling, color space conversion, and dithering library License: WTFPL URL: https://github.com/sekrit-twc/zimg Source0: %{url}/archive/release-%{version}/%{name}-%{version}.tar.gz +Patch0: gcc-10.patch BuildRequires: autoconf automake gcc-c++ libtool @@ -27,7 +28,7 @@ The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep -%autosetup -n zimg-release-%{version} +%autosetup -n zimg-release-%{version} -p0 %build autoreconf -vif @@ -60,5 +61,8 @@ rm -fr %{buildroot}%{_docdir}/%{name} %{_libdir}/pkgconfig/%{name}.pc %changelog +* Mon Aug 02 2021 linjiaxin5 - 2.9.3-2 +- Fix failure caused by GCC upgrade to 10 + * Fri May 07 2021 weidong - 2.9.3-1 - Initial package. -- Gitee