commit: 7143f4a01836f8991d6c90b61fa919e88bf9a0fd Author: Z. Liu <zhixu.liu <AT> gmail <DOT> com> AuthorDate: Tue Dec 30 06:36:01 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Jan 1 23:49:19 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7143f4a0
app-text/opensp: fix build on musl fix error below: > dcigettext.c:154:7: error: conflicting types for 'getcwd'; have 'char *(void)' > 154 | char *getcwd (); > | ^~~~~~ Closes: https://bugs.gentoo.org/947175 Signed-off-by: Z. Liu <zhixu.liu <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/45199 Signed-off-by: Sam James <sam <AT> gentoo.org> app-text/opensp/files/opensp-1.5.2-gcc15-musl.patch | 19 +++++++++++++++++++ app-text/opensp/opensp-1.5.2-r10.ebuild | 1 + 2 files changed, 20 insertions(+) diff --git a/app-text/opensp/files/opensp-1.5.2-gcc15-musl.patch b/app-text/opensp/files/opensp-1.5.2-gcc15-musl.patch new file mode 100644 index 000000000000..fde1e680f11b --- /dev/null +++ b/app-text/opensp/files/opensp-1.5.2-gcc15-musl.patch @@ -0,0 +1,19 @@ +fix error on musl: + +dcigettext.c:154:7: error: conflicting types for 'getcwd'; have 'char *(void)' + 154 | char *getcwd (); + | ^~~~~~ + +diff --git a/intl/dcigettext.c b/intl/dcigettext.c +index c7f4506..9dad6c4 100644 +--- a/intl/dcigettext.c ++++ b/intl/dcigettext.c +@@ -151,7 +151,7 @@ char *getwd (); + # if VMS + # define getcwd(buf, max) (getcwd) (buf, max, 0) + # else +-char *getcwd (); ++char *getcwd (char *, size_t); + # endif + # endif + # ifndef HAVE_STPCPY diff --git a/app-text/opensp/opensp-1.5.2-r10.ebuild b/app-text/opensp/opensp-1.5.2-r10.ebuild index 8cbcf74a3400..b097ba776124 100644 --- a/app-text/opensp/opensp-1.5.2-r10.ebuild +++ b/app-text/opensp/opensp-1.5.2-r10.ebuild @@ -35,6 +35,7 @@ PATCHES=( "${FILESDIR}"/${P}-c11-using.patch "${FILESDIR}"/${P}-configure-clang16.patch "${FILESDIR}"/${P}-fix-ar-intl.patch + "${FILESDIR}"/${P}-gcc15-musl.patch ) src_prepare() {
