From 4e4a5e5d154ecf216e392e72d01c47e7fb6df80a Mon Sep 17 00:00:00 2001 From: agroschim Date: Sat, 31 Jan 2026 14:49:09 +0100 Subject: [PATCH] initial commit --- configure-implicit-int.patch | 11 +++++++++++ makemud.sh | 13 +++++++++++++ readme.md | 6 ++++++ 3 files changed, 30 insertions(+) create mode 100644 configure-implicit-int.patch create mode 100755 makemud.sh create mode 100644 readme.md diff --git a/configure-implicit-int.patch b/configure-implicit-int.patch new file mode 100644 index 0000000..531296e --- /dev/null +++ b/configure-implicit-int.patch @@ -0,0 +1,11 @@ +--- configure 2025-03-31 12:13:53.623243733 -0400 ++++ configure.fixed 2025-03-31 12:39:09.977321514 -0400 +@@ -696,7 +696,7 @@ + #line 697 "configure" + #include "confdefs.h" + +-main(){return(0);} ++int main(void) { return 0; } + EOF + if { (eval echo configure:702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cc_works=yes diff --git a/makemud.sh b/makemud.sh new file mode 100755 index 0000000..6c5a33e --- /dev/null +++ b/makemud.sh @@ -0,0 +1,13 @@ +#! /bin/sh -x + +patch -Np0 < configure-implicit-int.patch + +# Accept license preemptively +touch src/.accepted + +# Force a pre-C23 standard so 'bool' and 'false' are not keywords +export CFLAGS+=" -std=gnu17" + +./configure --prefix=/usr +cd src +make diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..1d8d7d2 --- /dev/null +++ b/readme.md @@ -0,0 +1,6 @@ +# makemud + +Short shell script that builds tbamud from source on modern systems. + +- It's based of the AUR package for tbamud: https://aur.archlinux.org/packages/tbamud-git +- Source for `configure-implicit-int.patch`: https://aur.archlinux.org/cgit/aur.git/tree/configure-implicit-int.patch?h=tbamud-git \ No newline at end of file