From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/zimg/files/, media-libs/zimg/
Date: Sat, 9 May 2020 09:36:40 +0000 (UTC) [thread overview]
Message-ID: <1589016993.7a49f4df7f6bc0e0ab953c10ec1cd4a25558cb4b.slyfox@gentoo> (raw)
commit: 7a49f4df7f6bc0e0ab953c10ec1cd4a25558cb4b
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat May 9 09:36:19 2020 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat May 9 09:36:33 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a49f4df
media-libs/zimg: tweak for gcc-10, bug #721676
The build fails as:
```
src/zimg/colorspace/matrix3.cpp:20:7:
error: 'size_t' was not declared in this scope; did you mean 'std::size_t'?
20 | for (size_t i = 0; i < 3; ++i) {
| ^~~~~~
| std::size_t
```
Direct backport of upstream 9ae36d7d5f74 ("Update matrix3.cpp")
which adds missing <cstddef> include needed for 'size_t'.
Reported-by: Patrick McLean
Closes: https://bugs.gentoo.org/721676
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
media-libs/zimg/files/zimg-2.9.2-gcc-10.patch | 18 ++++++++++++++++++
media-libs/zimg/zimg-2.9.2.ebuild | 2 ++
2 files changed, 20 insertions(+)
diff --git a/media-libs/zimg/files/zimg-2.9.2-gcc-10.patch b/media-libs/zimg/files/zimg-2.9.2-gcc-10.patch
new file mode 100644
index 00000000000..ea192f77fca
--- /dev/null
+++ b/media-libs/zimg/files/zimg-2.9.2-gcc-10.patch
@@ -0,0 +1,18 @@
+https://bugs.gentoo.org/721676
+
+From 9ae36d7d5f7420eaacd9644451933512fa13d716 Mon Sep 17 00:00:00 2001
+From: sekrit-twc <sekrit-twc@users.noreply.github.com>
+Date: Wed, 4 Dec 2019 12:01:26 -0800
+Subject: [PATCH] Update matrix3.cpp
+
+---
+ src/zimg/colorspace/matrix3.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/src/zimg/colorspace/matrix3.cpp
++++ b/src/zimg/colorspace/matrix3.cpp
+@@ -1,3 +1,4 @@
++#include <cstddef>
+ #include "matrix3.h"
+
+ namespace zimg {
diff --git a/media-libs/zimg/zimg-2.9.2.ebuild b/media-libs/zimg/zimg-2.9.2.ebuild
index c1295123848..e962d7a4b5f 100644
--- a/media-libs/zimg/zimg-2.9.2.ebuild
+++ b/media-libs/zimg/zimg-2.9.2.ebuild
@@ -20,6 +20,8 @@ LICENSE="WTFPL-2"
SLOT="0"
IUSE="cpu_flags_x86_sse debug static-libs"
+PATCHES=("${FILESDIR}"/${PN}-2.9.2-gcc-10.patch)
+
src_prepare() {
default
eautoreconf
next reply other threads:[~2020-05-09 9:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-09 9:36 Sergei Trofimovich [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-09-25 1:27 [gentoo-commits] repo/gentoo:master commit in: media-libs/zimg/files/, media-libs/zimg/ Sam James
2019-07-28 21:21 Andreas Sturmlechner
2019-05-21 19:29 Andreas Sturmlechner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1589016993.7a49f4df7f6bc0e0ab953c10ec1cd4a25558cb4b.slyfox@gentoo \
--to=slyfox@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox