From 0dc411b8d83023c7d16efd95e66a800f955a1cfd Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Thu, 14 Aug 2025 21:37:53 +0100 Subject: [PATCH] sys-apps/stroke: fix build with gcc 15 Closes: https://bugs.gentoo.org/880509 Signed-off-by: Alexey Sokolov Part-of: https://github.com/gentoo/gentoo/pull/43448 Closes: https://github.com/gentoo/gentoo/pull/43448 Signed-off-by: Sam James --- sys-apps/stroke/files/stroke-0.1.3-gcc15.patch | 13 +++++++++++++ ...troke-0.1.3-r2.ebuild => stroke-0.1.3-r3.ebuild} | 7 +++++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 sys-apps/stroke/files/stroke-0.1.3-gcc15.patch rename sys-apps/stroke/{stroke-0.1.3-r2.ebuild => stroke-0.1.3-r3.ebuild} (76%) diff --git a/sys-apps/stroke/files/stroke-0.1.3-gcc15.patch b/sys-apps/stroke/files/stroke-0.1.3-gcc15.patch new file mode 100644 index 0000000000000..133060953cd71 --- /dev/null +++ b/sys-apps/stroke/files/stroke-0.1.3-gcc15.patch @@ -0,0 +1,13 @@ +https://bugs.gentoo.org/880509 + +--- a/src/aux.c ++++ b/src/aux.c +@@ -292,7 +292,7 @@ lutime_symlink(const char *filename, const struct utimbuf *times) + {times->modtime, 0} + }; + +- if(!(cwd = scwd(cwd)) || ++ if(!(cwd = scwd()) || + chdir(dirname(new_str(filename))) < 0) + goto error; + diff --git a/sys-apps/stroke/stroke-0.1.3-r2.ebuild b/sys-apps/stroke/stroke-0.1.3-r3.ebuild similarity index 76% rename from sys-apps/stroke/stroke-0.1.3-r2.ebuild rename to sys-apps/stroke/stroke-0.1.3-r3.ebuild index 836231099315e..d41523b9fb26f 100644 --- a/sys-apps/stroke/stroke-0.1.3-r2.ebuild +++ b/sys-apps/stroke/stroke-0.1.3-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -13,7 +13,10 @@ LICENSE="GPL-2+ GPL-3+" SLOT="0" KEYWORDS="~amd64 ~arm64 ~x86" -PATCHES=( "${FILESDIR}/${P}-missing-header.patch" ) +PATCHES=( + "${FILESDIR}/${P}-missing-header.patch" + "${FILESDIR}/${P}-gcc15.patch" +) src_compile() { emake AR="$(tc-getAR)"