From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1592605-garchives=archives.gentoo.org@lists.gentoo.org> 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 A4CB015838C for <garchives@archives.gentoo.org>; Sat, 20 Jan 2024 13:33:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 47B4DE29FE; Sat, 20 Jan 2024 13:33:55 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 22B74E29FD for <gentoo-commits@lists.gentoo.org>; Sat, 20 Jan 2024 13:33:55 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6BD203431A0 for <gentoo-commits@lists.gentoo.org>; Sat, 20 Jan 2024 13:33:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8D49A14CF for <gentoo-commits@lists.gentoo.org>; Sat, 20 Jan 2024 13:33:50 +0000 (UTC) From: "Sam James" <sam@gentoo.org> 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" <sam@gentoo.org> Message-ID: <1705757456.f28f669cfbdc20cb94f4d32e8441e996ddda8384.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/micropython/files/, dev-lang/micropython/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/micropython/files/micropython-1.17-gcc13-build-fix.patch dev-lang/micropython/micropython-1.17.ebuild X-VCS-Directories: dev-lang/micropython/files/ dev-lang/micropython/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: f28f669cfbdc20cb94f4d32e8441e996ddda8384 X-VCS-Branch: master Date: Sat, 20 Jan 2024 13:33:50 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cd3df518-0eb0-480f-9486-ac85eb4ca58f X-Archives-Hash: 9c024b93d5c4a900eb0d26f6d95656d9 commit: f28f669cfbdc20cb94f4d32e8441e996ddda8384 Author: Kristaps Kaupe <kristaps <AT> blogiem <DOT> lv> AuthorDate: Sun Jan 14 16:34:25 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Jan 20 13:30:56 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f28f669c dev-lang/micropython: Fix building with GCC13 Closes: https://bugs.gentoo.org/916499 Closes: https://bugs.gentoo.org/895156 Signed-off-by: Kristaps Kaupe <kristaps <AT> blogiem.lv> Closes: https://github.com/gentoo/gentoo/pull/34801 Signed-off-by: Sam James <sam <AT> gentoo.org> .../files/micropython-1.17-gcc13-build-fix.patch | 59 ++++++++++++++++++++++ dev-lang/micropython/micropython-1.17.ebuild | 1 + 2 files changed, 60 insertions(+) diff --git a/dev-lang/micropython/files/micropython-1.17-gcc13-build-fix.patch b/dev-lang/micropython/files/micropython-1.17-gcc13-build-fix.patch new file mode 100644 index 000000000000..d791227a9a3c --- /dev/null +++ b/dev-lang/micropython/files/micropython-1.17-gcc13-build-fix.patch @@ -0,0 +1,59 @@ +From f1c6cb7725960487195daa5c5c196fd8d3563811 Mon Sep 17 00:00:00 2001 +From: Damien George <damien@micropython.org> +Date: Wed, 3 May 2023 15:23:24 +1000 +Subject: [PATCH] py/stackctrl: Add gcc pragmas to ignore dangling-pointer + warning. + +This warning became apparent in gcc 13. + +Signed-off-by: Damien George <damien@micropython.org> +--- + py/stackctrl.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/py/stackctrl.c b/py/stackctrl.c +index c2f3adb5eedc..c2566ebad92b 100644 +--- a/py/stackctrl.c ++++ b/py/stackctrl.c +@@ -28,8 +28,15 @@ + #include "py/stackctrl.h" + + void mp_stack_ctrl_init(void) { ++ #if __GNUC__ >= 13 ++ #pragma GCC diagnostic push ++ #pragma GCC diagnostic ignored "-Wdangling-pointer" ++ #endif + volatile int stack_dummy; + MP_STATE_THREAD(stack_top) = (char *)&stack_dummy; ++ #if __GNUC__ >= 13 ++ #pragma GCC diagnostic pop ++ #endif + } + + void mp_stack_set_top(void *top) { + +From 32572439984e5640c6af46fbe7c27400c30112ce Mon Sep 17 00:00:00 2001 +From: Damien George <damien@micropython.org> +Date: Tue, 7 Mar 2023 14:46:22 +1100 +Subject: [PATCH] mpy-cross/main: Fix return type of mp_import_stat. + +Fixes issue #10951. + +Signed-off-by: Damien George <damien@micropython.org> +--- + mpy-cross/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/mpy-cross/main.c b/mpy-cross/main.c +index 13bb17b13dba..8a4dd5bcbed5 100644 +--- a/mpy-cross/main.c ++++ b/mpy-cross/main.c +@@ -344,7 +344,7 @@ int main(int argc, char **argv) { + return main_(argc, argv); + } + +-uint mp_import_stat(const char *path) { ++mp_import_stat_t mp_import_stat(const char *path) { + (void)path; + return MP_IMPORT_STAT_NO_EXIST; + } diff --git a/dev-lang/micropython/micropython-1.17.ebuild b/dev-lang/micropython/micropython-1.17.ebuild index 352bc9cfea11..16620cf90890 100644 --- a/dev-lang/micropython/micropython-1.17.ebuild +++ b/dev-lang/micropython/micropython-1.17.ebuild @@ -22,6 +22,7 @@ DEPEND=" PATCHES=( "${FILESDIR}/${P}-prevent-stripping.patch" "${FILESDIR}/${P}-exclude-float-parse-tests.patch" + "${FILESDIR}/${P}-gcc13-build-fix.patch" ) src_prepare() {