Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rhyme: update fatalError signature #27620

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions textproc/rhyme/Portfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

Check warning on line 1 in textproc/rhyme/Portfile

View workflow job for this annotation

GitHub Actions / macos-14

port lint rhyme: Warning: Unnecessary platforms line as darwin is the default

Check warning on line 1 in textproc/rhyme/Portfile

View workflow job for this annotation

GitHub Actions / macos-13

port lint rhyme: Warning: Unnecessary platforms line as darwin is the default

Check warning on line 1 in textproc/rhyme/Portfile

View workflow job for this annotation

GitHub Actions / macos-15

port lint rhyme: Warning: Unnecessary platforms line as darwin is the default

PortSystem 1.0

name rhyme
version 0.9
revision 6
revision 7
checksums rmd160 5049ee3f2ad6d56d03fd28a7399129213f4ca808 \
sha256 11d4862cc3adfc18ea83ca233854c562fcebdc838fa7fb62de6ef3f63f992bd4 \
size 896013
Expand All @@ -26,7 +26,8 @@
port:ncurses \
port:readline

patchfiles patch-Makefile.diff
patchfiles patch-Makefile.diff \
patch-fatalError.diff

use_configure no
variant universal {}
Expand Down
24 changes: 24 additions & 0 deletions textproc/rhyme/files/patch-fatalError.diff
Original file line number Diff line number Diff line change
@@ -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