From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3509715ACFB for ; Mon, 10 Apr 2023 04:53:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3227AE07E2; Mon, 10 Apr 2023 04:53:23 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8F3AAE07E2 for ; Mon, 10 Apr 2023 04:53:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6A10E340EC9 for ; Mon, 10 Apr 2023 04:53:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9B715920 for ; Mon, 10 Apr 2023 04:53:19 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1681100528.4f792949815ca8ea8bc71c2edaffed444ef3e5d1.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/fceux/files/, games-emulation/fceux/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-emulation/fceux/fceux-2.6.5.ebuild games-emulation/fceux/files/fceux-2.4.0-gcc13.patch X-VCS-Directories: games-emulation/fceux/ games-emulation/fceux/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 4f792949815ca8ea8bc71c2edaffed444ef3e5d1 X-VCS-Branch: master Date: Mon, 10 Apr 2023 04:53:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b876d2a8-673a-4e27-a114-88d6845031c6 X-Archives-Hash: baafd8077bc7f3e9481a3c91116b4ea7 commit: 4f792949815ca8ea8bc71c2edaffed444ef3e5d1 Author: Sam James gentoo org> AuthorDate: Mon Apr 10 04:22:08 2023 +0000 Commit: Sam James gentoo org> CommitDate: Mon Apr 10 04:22:08 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f792949 games-emulation/fceux: fix build w/ gcc 13 Closes: https://bugs.gentoo.org/900611 Signed-off-by: Sam James gentoo.org> games-emulation/fceux/fceux-2.6.5.ebuild | 1 + .../fceux/files/fceux-2.4.0-gcc13.patch | 31 ++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/games-emulation/fceux/fceux-2.6.5.ebuild b/games-emulation/fceux/fceux-2.6.5.ebuild index 04832332f99f..16ff86085b5c 100644 --- a/games-emulation/fceux/fceux-2.6.5.ebuild +++ b/games-emulation/fceux/fceux-2.6.5.ebuild @@ -36,6 +36,7 @@ DEPEND="${RDEPEND}" PATCHES=( "${FILESDIR}"/${PN}-2.4.0-desktop.patch "${FILESDIR}"/${PN}-2.4.0-no-git.patch + "${FILESDIR}"/${PN}-2.4.0-gcc13.patch ) src_prepare() { diff --git a/games-emulation/fceux/files/fceux-2.4.0-gcc13.patch b/games-emulation/fceux/files/fceux-2.4.0-gcc13.patch new file mode 100644 index 000000000000..5e6348281654 --- /dev/null +++ b/games-emulation/fceux/files/fceux-2.4.0-gcc13.patch @@ -0,0 +1,31 @@ +https://github.com/TASEmulators/fceux/pull/629 + +From 6ad3837eebdab597da693a39068b2c05716282be Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Mon, 10 Apr 2023 05:18:41 +0100 +Subject: [PATCH] Fix build with GCC 13 + +GCC 13 (as usual for new compiler releases) shuffles around some internal includes and so etc is no longer transitively included: +``` +In file included from /var/tmp/portage/games-emulation/fceux-2.6.5/work/fceux-2.6.5/src/drivers/Qt/AboutWindow.cpp:33: +/usr/include/x264.h:40:4: warning: #warning You must include stdint.h or inttypes.h before x264.h [-Wcpp] + 40 | # warning You must include stdint.h or inttypes.h before x264.h + | ^~~~~~~ +/usr/include/x264.h:127:5: error: uint8_t does not name a type + 127 | uint8_t *p_payload; + | ^~~~~~~ +``` + +See https://gnu.org/software/gcc/gcc-13/porting_to.html. + +Bug: https://bugs.gentoo.org/900611 +--- a/src/drivers/Qt/AboutWindow.cpp ++++ b/src/drivers/Qt/AboutWindow.cpp +@@ -30,6 +30,7 @@ + #endif + + #ifdef _USE_X264 ++#include + #include "x264.h" + #endif +