From abf64f809ff96895c42254af4489b2f5eb95e4c6 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 6 Feb 2024 11:56:49 +0100 Subject: Sort-of-workaround for argp '--help' crash on MacOS Indexamajig --help causes a segfault on MacOS due to a bug in argp-standalone. That package is unlikely to be updated any time soon. Eventually, Homebrew might switch to one of the non-crashy forks, but probably not soon. We aren't the only ones affected - see https://www.openwall.com/lists/musl/2021/02/10/1 This commit adds a warning message to state that we already know about it, and it's not "our" fault. It also removes the corresponding test, since we know it fails. --- src/indexamajig.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/indexamajig.c') diff --git a/src/indexamajig.c b/src/indexamajig.c index ce8b2cbf..aa0db210 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -1183,6 +1183,20 @@ int main(int argc, char *argv[]) {0} }; + #if defined(__APPLE__) + int q; + for ( q=0; q