freebsd-ports/www/elinks/files/patch-src_util_error.c
Baptiste Daroussin 6b82b99456 www/elinks: fix detection of execinfo
When moving from autotools to autotools to meson, the check from
the execinfo header was lost, readd this test.

When execinfo is not detected, the replacement code instead of error
is an abusive end less loop, while here patch out this part [1].

Note that upstream merge the removal of the code.

While here remove a useless macro which wasn't functional anyway due to
a typo

PR:	267794 [1]
Submitted by:	Dustin Marquess <jailbird@fdf.net> [1]
2022-11-16 16:34:49 +01:00

30 lines
1001 B
C

--- src/util/error.c.orig 2022-07-31 10:16:29 UTC
+++ src/util/error.c
@@ -301,26 +301,6 @@ dump_backtrace(FILE *f, int trouble)
fprintf(f, "[%p] %s\n", stack[i], strings[i]);
free(strings);
-
-#else
- /* User torturation. */
- /* You are worried about what you see here? You don't see anything in
- * the first place. Also, be assured that we know what are we doing. */
- /* (We are killing the user, obviously.) */
-
- /* TODO: Gettextify? Er, better not. More people (translators) could
- * find out what are we doing... ;-) --pasky */
- /* TODO: Be more cruel when in trouble? ;-) --pasky */
-
- fputs( "Wheeeeeeeeeee! You played with the config.h by hand, didn't you?\n"
- "Of _COURSE_ you did! Is that how a nice .. creature behaves like?\n"
- "Of _COURSE_ it isn't! I feel offended and thus I will revenge now!\n"
- "You will _suffer_ >:).\n"
- "\n"
- "CPU burning sequence initiated...\n", f);
-
- /* TODO: Include cpuburn.c here. --pasky */
- while (1);
#endif
fflush(f);
}