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)"