sys-apps/dog: Fix implicit declaration of function strfry

[arthurzam]: undo revbump since this is build only issue

Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Bug: https://bugs.gentoo.org/717252
Bug: https://bugs.gentoo.org/938613
Closes: https://github.com/gentoo/gentoo/pull/38355
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Brahmajit Das
2024-08-31 12:51:05 +00:00
committed by Arthur Zamarin
parent 08b9268150
commit e543afc2c1
3 changed files with 17 additions and 5 deletions

View File

@@ -28,10 +28,6 @@ kde-misc/krunner-vscodeprojects
# would require a patch to get past the configure step
net-fs/openafs
# Sam James <sam@gentoo.org> (2024-11-19)
# Not ported to musl (bug #717252, bug #938613)
sys-apps/dog
# Robert Siebeck <gentoo.2019@r123.de> (2024-10-30)
# musl not supported by upstream
app-editors/zed

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -18,6 +18,7 @@ PATCHES=(
"${FILESDIR}"/${PV}-manpage-touchup.patch
"${FILESDIR}"/${P}-64bit-goodness.patch
"${FILESDIR}"/${P}-strfry.patch
"${FILESDIR}"/${P}-musl-strfry-fix.patch
)
src_prepare() {

View File

@@ -0,0 +1,15 @@
See bug #938613
--- a/dog.c
+++ b/dog.c
@@ -77,9 +77,11 @@
#endif
#if ALLOW_LINUX_EXTENSIONS
+#if defined(__GLIBC__)
#define ALLOW_STRFRY 1
extern char *strfry __P ((char *__string));
#else
+#endif
#define ALLOW_STRFRY 0
#endif