commit: 0083223948a536495b50b6b7e78df486cae40e6c Author: Alfred Wingate <parona <AT> protonmail <DOT> com> AuthorDate: Tue Oct 28 15:38:51 2025 +0000 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> CommitDate: Tue Nov 11 19:24:01 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00832239
gnustep-apps/gspdf: fix gcc-15 Signed-off-by: Alfred Wingate <parona <AT> protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/44437 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> gnustep-apps/gspdf/files/gspdf-0.5-prototypes.patch | 18 ++++++++++++++++++ gnustep-apps/gspdf/gspdf-0.5.ebuild | 6 +++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/gnustep-apps/gspdf/files/gspdf-0.5-prototypes.patch b/gnustep-apps/gspdf/files/gspdf-0.5-prototypes.patch new file mode 100644 index 000000000000..e6a857a56d58 --- /dev/null +++ b/gnustep-apps/gspdf/files/gspdf-0.5-prototypes.patch @@ -0,0 +1,18 @@ +--- a/ps.c 2010-07-21 23:40:33.000000000 +0300 ++++ b/ps.c 2025-10-28 17:36:07.620187163 +0200 +@@ -67,10 +67,10 @@ + }; + + +-static char *readline(); +-static char *gettextline(); +-static char *gettext(); +-static int blank(); ++static char *readline(char *line, int size, FILE *fp, long *position, unsigned *line_len); ++static char *gettextline(char *line); ++static char *gettext(char *line, char **next_char); ++static int blank(char *line); + + /* + * psscan -- scan the PostScript file for document structuring comments. + diff --git a/gnustep-apps/gspdf/gspdf-0.5.ebuild b/gnustep-apps/gspdf/gspdf-0.5.ebuild index ce036fe99602..9b303e5c9d0f 100644 --- a/gnustep-apps/gspdf/gspdf-0.5.ebuild +++ b/gnustep-apps/gspdf/gspdf-0.5.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -16,3 +16,7 @@ KEYWORDS="~amd64 ~ppc ~x86" RDEPEND="app-text/ghostscript-gpl" S="${WORKDIR}/${MY_PN}-${PV}" + +PATCHES=( + "${FILESDIR}"/gspdf-0.5-prototypes.patch +)
