1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 02:07:44 +00:00

Ports: Return nesalizer to upstream

This makes https://github.com/SerenityPorts/nesalizer obsolete.

The patch that hardcoded the SDL2 location is removed. The the patches
to the `Makefile` are quashed. A new install function is added.
This commit is contained in:
EWouters 2022-05-07 03:19:44 +02:00 committed by Linus Groh
parent 317ca37dc6
commit 81a2f09a80
5 changed files with 108 additions and 5 deletions

View file

@ -0,0 +1,42 @@
From 34b8a26412d6e0880516e881c20ec336e6a450b7 Mon Sep 17 00:00:00 2001
From: Dan MacDonald <allcoms@gmail.com>
Date: Sun, 8 Dec 2019 17:25:35 +0000
Subject: [PATCH 2/2] Disable backtracing
---
src/common.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/common.cpp b/src/common.cpp
index 33df846..4dd9e9c 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -1,6 +1,6 @@
#include "common.h"
-#include <execinfo.h>
+// #include <execinfo.h>
#include <signal.h>
//
@@ -96,7 +96,7 @@ void errno_fail(int errno_val, char const *format, ...) {
static void fatal_signal_handler(int sig) {
// Use non-async-signal-safe functions. Likely to work in practice.
- static void *backtrace_buffer[100];
+ /*static void *backtrace_buffer[100];
static char addr2line_cmd_buf[100];
fprintf(stderr, "caught fatal signal '%s'. Backtrace:\n\n", strsignal(sig));
@@ -123,7 +123,7 @@ static void fatal_signal_handler(int sig) {
fputs("failed to write address to addr2line\n", stderr);
abort();
}
-
+ */
abort();
}
--
2.36.1