From 49d5530397d99c4741e466ae71309553b7c638c1 Mon Sep 17 00:00:00 2001 From: George Plymale II Date: Sun, 9 Feb 2025 19:18:58 -0500 Subject: [PATCH] rhyme: update fatalError signature --- textproc/rhyme/Portfile | 5 +++-- textproc/rhyme/files/patch-fatalError.diff | 24 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 textproc/rhyme/files/patch-fatalError.diff diff --git a/textproc/rhyme/Portfile b/textproc/rhyme/Portfile index c00ed8bbaba54..2de3ec14f4bdb 100644 --- a/textproc/rhyme/Portfile +++ b/textproc/rhyme/Portfile @@ -4,7 +4,7 @@ PortSystem 1.0 name rhyme version 0.9 -revision 6 +revision 7 checksums rmd160 5049ee3f2ad6d56d03fd28a7399129213f4ca808 \ sha256 11d4862cc3adfc18ea83ca233854c562fcebdc838fa7fb62de6ef3f63f992bd4 \ size 896013 @@ -26,7 +26,8 @@ depends_lib port:gdbm \ port:ncurses \ port:readline -patchfiles patch-Makefile.diff +patchfiles patch-Makefile.diff \ + patch-fatalError.diff use_configure no variant universal {} diff --git a/textproc/rhyme/files/patch-fatalError.diff b/textproc/rhyme/files/patch-fatalError.diff new file mode 100644 index 0000000000000..c6f234ae9398c --- /dev/null +++ b/textproc/rhyme/files/patch-fatalError.diff @@ -0,0 +1,24 @@ +--- setup.c.orig 2025-02-09 19:08:43 ++++ setup.c 2025-02-09 19:12:19 +@@ -16,7 +16,7 @@ + {0,0,0,0} + }; + +-void fatalError(char s[]) { ++void fatalError(const char *s) { + fprintf(stderr, s); + exit(1); + } +\ No newline at end of file +--- setup.h.orig 2025-02-09 19:14:44 ++++ setup.h 2025-02-09 19:15:17 +@@ -27,7 +27,7 @@ + #define FLAG_MERGED 4 + + /*something to print if gdbm dies horribly*/ +-void fatalError(char s[]); ++void fatalError(const char *s); + + /*The wordfile, rhymefile and multiplefile are set by this function + The flags are the bits set by the command-line arguments. +\ No newline at end of file