mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
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:
parent
9712bec229
commit
0dc411b8d8
13
sys-apps/stroke/files/stroke-0.1.3-gcc15.patch
Normal file
13
sys-apps/stroke/files/stroke-0.1.3-gcc15.patch
Normal 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;
|
||||
|
||||
@ -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)"
|
||||
Loading…
x
Reference in New Issue
Block a user