1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-12 01:50:46 +02:00
guix/gnu/packages/patches/inferno-fix-crash.patch
Homo e4b54095cb
gnu: Add inferno.
Based on earlier work rejected for licensing reasons (#33080), code has
been relicensed from LPL to Expat.

Just in case remove all fonts from distribution, instead fonts from
plan9port are used.

* gnu/packages/inferno.scm: New file.
* gnu/packages/patches/inferno-fix-crash.patch: New file.
* gnu/local.mk (GNU_SYSTEM_MODULES, dist_patch_DATA): Register new files.

Change-Id: I9a05a8bb2397796f6af86fa3be3408982ca62648
Reviewed-by: Ludovic Courtès <ludo@gnu.org>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2025-02-17 22:07:17 +00:00

17 lines
499 B
Diff

Fixes crash.
Patch from <https://github.com/inferno-os/inferno-os/pull/13>.
diff --git a/emu/Linux/os.c b/emu/Linux/os.c
index 08b039d6..0d8a0cf3 100644
--- a/emu/Linux/os.c
+++ b/emu/Linux/os.c
@@ -18,6 +18,9 @@
#include <raise.h>
+/* For dynamic linking init/fini code that needs malloc */
+void (*coherence)(void) = nofence;
+
/* glibc 2.3.3-NTPL messes up getpid() by trying to cache the result, so we'll do it ourselves */
#include <sys/syscall.h>
#define getpid() syscall(SYS_getpid)