x86_64-pc-linux-gnu-g++ -pipe -march=native -fno-diagnostics-color -O2 -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -O2 -c -DCONFDIR=\"/etc/vdr\" -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"freecell"' -I/usr/include -I/usr/include -I. -o game.o game.c game.c: In member function ‘void cFreecellGame::WriteInfo(const char*)’: game.c:185:17: error: ‘max’ was not declared in this scope; did you mean ‘std::max’? 185 | int x = max((mInfo->Width() - font->Width(Text)) / 2, 0); | ^~~ | std::max In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/g++-v11/bits/specfun.h:45, ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_plasma-20210420-165442 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.1 [2] x86_64-pc-linux-gnu-11.1.0 * clang version 12.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/12/bin /usr/lib/llvm/12 12.0.0 Python 3.8.9 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby30 (with Rubygems) * Available Rust versions: [1] rust-bin-1.51.0 [2] rust-1.51.0 * The Glorious Glasgow Haskell Compilation System, version 8.10.4 [1] php7.4 [2] php8.0 * timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Fri Apr 30 21:20:18 UTC 2021 emerge -qpvO media-plugins/vdr-freecell [ebuild N ] media-plugins/vdr-freecell-0.0.2-r4
Created attachment 704739 [details] emerge-info.txt
Created attachment 704742 [details] emerge-history.txt
Created attachment 704745 [details] environment
Created attachment 704748 [details] etc.portage.tar.bz2
Created attachment 704751 [details] media-plugins:vdr-freecell-0.0.2-r4:20210430-213935.log
Created attachment 704754 [details] temp.tar.bz2
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=124a95a62c264394f08d70dc0eb66db06b8c9d04 commit 124a95a62c264394f08d70dc0eb66db06b8c9d04 Author: Martin Dummer <martin.dummer@gmx.net> AuthorDate: 2021-05-05 22:31:44 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2021-05-06 08:46:42 +0000 media-video/vdr: add gcc-11 compile fix vdr defines std:: functions "min" "max" and "swap" as Template, which collides with gcc-11. Add a patch from upstream which fixes this, and fixes also compile problems with all media-video/vdr-* plugins using this functions, too Closes: https://bugs.gentoo.org/786882 Closes: https://bugs.gentoo.org/787389 Closes: https://bugs.gentoo.org/787236 Closes: https://bugs.gentoo.org/787140 Closes: https://bugs.gentoo.org/786801 Closes: https://bugs.gentoo.org/786795 Closes: https://bugs.gentoo.org/786672 Closes: https://bugs.gentoo.org/786285 Closes: https://bugs.gentoo.org/786258 Closes: https://bugs.gentoo.org/788583 Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Martin Dummer <martin.dummer@gmx.net> Closes: https://github.com/gentoo/gentoo/pull/20695 Signed-off-by: Joonas Niilola <juippis@gentoo.org> media-video/vdr/files/vdr-2.2.0_gcc11.patch | 29 ++ media-video/vdr/files/vdr-2.4.7_gcc11.patch | 314 ++------------------- media-video/vdr/vdr-2.2.0-r7.ebuild | 302 ++++++++++++++++++++ .../vdr/{vdr-2.4.7.ebuild => vdr-2.4.7-r1.ebuild} | 8 +- 4 files changed, 359 insertions(+), 294 deletions(-)