sys-apps/stroke: fix build with gcc 15

Closes: https://bugs.gentoo.org/880509
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Part-of: https://github.com/gentoo/gentoo/pull/43448
Closes: https://github.com/gentoo/gentoo/pull/43448
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alexey Sokolov 2025-08-14 21:37:53 +01:00 committed by Sam James
parent 9712bec229
commit 0dc411b8d8
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 18 additions and 2 deletions

View File

@ -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;

View File

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