summaryrefslogtreecommitdiff
path: root/Ports/freeciv/patches
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2022-05-16 19:21:36 +0430
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-05-19 20:17:10 +0430
commitbf5f83907ffae516e6ece2d8b8fe166a9c632852 (patch)
tree2090c5985572b73a8d8ab78dc453775dfc23272a /Ports/freeciv/patches
parentd383bae7d39ef4b8d319658f69cf422bb9a86738 (diff)
downloadserenity-bf5f83907ffae516e6ece2d8b8fe166a9c632852.zip
Ports: Update freeciv's patches to use git patches
Diffstat (limited to 'Ports/freeciv/patches')
-rw-r--r--Ports/freeciv/patches/0001-Log-to-dev-null-if-the-log-file-doesn-t-exist.patch (renamed from Ports/freeciv/patches/log.patch)23
-rw-r--r--Ports/freeciv/patches/ReadMe.md7
2 files changed, 25 insertions, 5 deletions
diff --git a/Ports/freeciv/patches/log.patch b/Ports/freeciv/patches/0001-Log-to-dev-null-if-the-log-file-doesn-t-exist.patch
index 7498018fd1..6a8ca189ef 100644
--- a/Ports/freeciv/patches/log.patch
+++ b/Ports/freeciv/patches/0001-Log-to-dev-null-if-the-log-file-doesn-t-exist.patch
@@ -1,7 +1,17 @@
-diff -Naur freeciv-3.0.0-beta2/client/connectdlg_common.c freeciv-3.0.0-beta2.serenity/client/connectdlg_common.c
---- freeciv-3.0.0-beta2/client/connectdlg_common.c 2021-05-14 12:36:45.000000000 +0200
-+++ freeciv-3.0.0-beta2.serenity/client/connectdlg_common.c 2021-06-05 00:22:43.151395241 +0200
-@@ -302,6 +302,7 @@
+From cbcb5538e52f9990387d4d79e676d6ef3d03fe46 Mon Sep 17 00:00:00 2001
+From: Gunnar Beutner <gbeutner@serenityos.org>
+Date: Fri, 4 Jun 2021 23:20:55 +0200
+Subject: [PATCH] Log to /dev/null if the log file doesn't exist
+
+---
+ client/connectdlg_common.c | 22 ++++++++++++++--------
+ 1 file changed, 14 insertions(+), 8 deletions(-)
+
+diff --git a/client/connectdlg_common.c b/client/connectdlg_common.c
+index 0afef96..d931378 100644
+--- a/client/connectdlg_common.c
++++ b/client/connectdlg_common.c
+@@ -302,6 +302,7 @@ bool client_start_server(void)
char dbg_lvl_buf[32]; /* Do not move this inside the block where it gets filled,
* it's needed via the argv[x] pointer later on, so must
* remain in scope. */
@@ -9,7 +19,7 @@ diff -Naur freeciv-3.0.0-beta2/client/connectdlg_common.c freeciv-3.0.0-beta2.se
/* Set up the command-line parameters. */
fc_snprintf(port_buf, sizeof(port_buf), "%d", internal_server_port);
-@@ -376,16 +377,21 @@
+@@ -376,16 +377,21 @@ bool client_start_server(void)
fclose(stdout);
fclose(stderr);
@@ -39,3 +49,6 @@ diff -Naur freeciv-3.0.0-beta2/client/connectdlg_common.c freeciv-3.0.0-beta2.se
fchmod(1, 0644);
}
+--
+2.36.1
+
diff --git a/Ports/freeciv/patches/ReadMe.md b/Ports/freeciv/patches/ReadMe.md
new file mode 100644
index 0000000000..286ff85f45
--- /dev/null
+++ b/Ports/freeciv/patches/ReadMe.md
@@ -0,0 +1,7 @@
+# Patches for freeciv on SerenityOS
+
+## `0001-Log-to-dev-null-if-the-log-file-doesn-t-exist.patch`
+
+Log to /dev/null if the log file doesn't exist
+
+