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
This commit is contained in:
parent
a8d7164e1c
commit
2327571ba5
7
gcc-10.patch
Normal file
7
gcc-10.patch
Normal file
@ -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 <cstddef>
|
||||||
|
#include "matrix3.h"
|
||||||
|
|
||||||
|
namespace zimg {
|
||||||
@ -1,11 +1,12 @@
|
|||||||
Name: zimg
|
Name: zimg
|
||||||
Version: 2.9.3
|
Version: 2.9.3
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Scaling, color space conversion, and dithering library
|
Summary: Scaling, color space conversion, and dithering library
|
||||||
License: WTFPL
|
License: WTFPL
|
||||||
URL: https://github.com/sekrit-twc/zimg
|
URL: https://github.com/sekrit-twc/zimg
|
||||||
|
|
||||||
Source0: %{url}/archive/release-%{version}/%{name}-%{version}.tar.gz
|
Source0: %{url}/archive/release-%{version}/%{name}-%{version}.tar.gz
|
||||||
|
Patch0: gcc-10.patch
|
||||||
|
|
||||||
BuildRequires: autoconf automake gcc-c++ libtool
|
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}.
|
developing applications that use %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n zimg-release-%{version}
|
%autosetup -n zimg-release-%{version} -p0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -vif
|
autoreconf -vif
|
||||||
@ -60,5 +61,8 @@ rm -fr %{buildroot}%{_docdir}/%{name}
|
|||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 02 2021 linjiaxin5 <linjiaxin5@huawei.com> - 2.9.3-2
|
||||||
|
- Fix failure caused by GCC upgrade to 10
|
||||||
|
|
||||||
* Fri May 07 2021 weidong <weidong@uniontech.com> - 2.9.3-1
|
* Fri May 07 2021 weidong <weidong@uniontech.com> - 2.9.3-1
|
||||||
- Initial package.
|
- Initial package.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user