summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--patches/chicken-5.3.0.local.patch29
-rw-r--r--patches/yasm-1.3.0.local.patch34
2 files changed, 57 insertions, 6 deletions
diff --git a/patches/chicken-5.3.0.local.patch b/patches/chicken-5.3.0.local.patch
index 8d060784..dd52b2cc 100644
--- a/patches/chicken-5.3.0.local.patch
+++ b/patches/chicken-5.3.0.local.patch
@@ -1,7 +1,7 @@
-diff -Nru chicken-5.2.0.orig/Makefile.midipix chicken-5.2.0/Makefile.midipix
---- chicken-5.2.0.orig/Makefile.midipix 1970-01-01 01:00:00.000000000 +0100
-+++ chicken-5.2.0/Makefile.midipix 2021-04-04 16:59:37.500039554 +0200
-@@ -0,0 +1,103 @@
+diff -Nru chicken-5.3.0.orig/Makefile.midipix chicken-5.3.0/Makefile.midipix
+--- chicken-5.3.0.orig/Makefile.midipix 1970-01-01 01:00:00.000000000 +0100
++++ chicken-5.3.0/Makefile.midipix 2025-06-07 13:54:06.107385881 +0200
+@@ -0,0 +1,101 @@
+# Makefile.midipix - configuration for Midipix -*- Makefile -*-
+#
+# Copyright (c) 2008-2016, The CHICKEN Team
@@ -94,8 +94,6 @@ diff -Nru chicken-5.2.0.orig/Makefile.midipix chicken-5.2.0/Makefile.midipix
+ echo "#define HAVE_SYSEXITS_H 1" >>$@
+ echo "#define HAVE_MEMMOVE 1" >>$@
+ echo "#define C_STACK_GROWS_DOWNWARD 1" >>$@
-+#midipix: missing /proc/<pid>/exe see runtime.c
-+ echo "#define SEARCH_EXE_PATH 1" >>$@
+ifdef GCHOOKS
+ echo "#define C_GC_HOOKS" >>$@
+endif
@@ -105,3 +103,22 @@ diff -Nru chicken-5.2.0.orig/Makefile.midipix chicken-5.2.0/Makefile.midipix
+ cat chicken-defaults.h >>$@
+
+include $(SRCDIR)/rules.make
+diff -Nru chicken-5.3.0.orig/runtime.c chicken-5.3.0/runtime.c
+--- chicken-5.3.0.orig/runtime.c 2021-11-18 07:32:06.000000000 +0100
++++ chicken-5.3.0/runtime.c 2025-06-07 13:53:01.739677079 +0200
+@@ -12638,12 +12638,14 @@
+
+ if(buffer == NULL) return NULL;
+
+-#if defined(__linux__) || defined(__sun)
++#if defined(__linux__) || defined(__midipix__) || defined(__sun)
+ C_char linkname[64]; /* /proc/<pid>/exe */
+ pid_t pid = C_getpid();
+
+ # ifdef __linux__
+ C_snprintf(linkname, sizeof(linkname), "/proc/%i/exe", pid);
++# elif defined(__midipix__)
++ C_snprintf(linkname, sizeof(linkname), "/proc/pidproc/%i/exe", pid);
+ # else
+ C_snprintf(linkname, sizeof(linkname), "/proc/%i/path/a.out", pid); /* SunOS / Solaris */
+ # endif
diff --git a/patches/yasm-1.3.0.local.patch b/patches/yasm-1.3.0.local.patch
new file mode 100644
index 00000000..abde373e
--- /dev/null
+++ b/patches/yasm-1.3.0.local.patch
@@ -0,0 +1,34 @@
+diff -ru yasm-1.3.0.orig/frontends/tasm/tasm.c yasm-1.3.0/frontends/tasm/tasm.c
+--- yasm-1.3.0.orig/frontends/tasm/tasm.c 2014-08-11 06:39:21.000000000 +0200
++++ yasm-1.3.0/frontends/tasm/tasm.c 2025-06-07 13:02:26.323354713 +0200
+@@ -228,7 +228,6 @@
+ /* version message */
+ /*@observer@*/ static const char *version_msg[] = {
+ PACKAGE_STRING,
+- "Compiled on " __DATE__ ".",
+ "Copyright (c) 2001-2010 Peter Johnson and other Yasm developers.",
+ "Run yasm --license for licensing overview and summary."
+ };
+diff -ru yasm-1.3.0.orig/frontends/vsyasm/vsyasm.c yasm-1.3.0/frontends/vsyasm/vsyasm.c
+--- yasm-1.3.0.orig/frontends/vsyasm/vsyasm.c 2014-08-11 06:39:21.000000000 +0200
++++ yasm-1.3.0/frontends/vsyasm/vsyasm.c 2025-06-07 13:02:11.001602012 +0200
+@@ -220,7 +220,6 @@
+ /* version message */
+ /*@observer@*/ static const char *version_msg[] = {
+ PACKAGE_STRING,
+- "Compiled on " __DATE__ ".",
+ "Copyright (c) 2001-2010 Peter Johnson and other Yasm developers.",
+ "Run yasm --license for licensing overview and summary."
+ };
+diff -ru yasm-1.3.0.orig/frontends/yasm/yasm.c yasm-1.3.0/frontends/yasm/yasm.c
+--- yasm-1.3.0.orig/frontends/yasm/yasm.c 2014-08-11 06:39:21.000000000 +0200
++++ yasm-1.3.0/frontends/yasm/yasm.c 2025-06-07 13:01:52.726115524 +0200
+@@ -217,7 +217,6 @@
+ /* version message */
+ /*@observer@*/ static const char *version_msg[] = {
+ PACKAGE_STRING,
+- "Compiled on " __DATE__ ".",
+ "Copyright (c) 2001-2014 Peter Johnson and other Yasm developers.",
+ "Run yasm --license for licensing overview and summary."
+ };
+Only in yasm-1.3.0.orig/: yasm-1.3.0