diff options
| author | NHOrus <jy6x2b32pie9@yahoo.com> | 2025-01-19 17:27:09 +0400 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-02-10 09:02:09 +0000 |
| commit | ff91cdec8cf7875e85fd62ad09f0752bc81d66ba (patch) | |
| tree | a337e4de8abec0a37aaf70d7582bb05872c6bca9 /dev-lang/mmix/files/mmix-20160804-implicit-int.patch | |
| parent | 366d62222012408e921ea165ea22cda937c5ad81 (diff) | |
| download | gentoo-ff91cdec8cf7875e85fd62ad09f0752bc81d66ba.tar.gz gentoo-ff91cdec8cf7875e85fd62ad09f0752bc81d66ba.tar.bz2 gentoo-ff91cdec8cf7875e85fd62ad09f0752bc81d66ba.zip | |
dev-lang/mmix: fix compilation errors with modern compilers
Can't be ported to C23 without massive rewrite due to hand-rolled
trinary bool, but other compilation problems aren't that engaging
They are fixed by patch to add an edge to build graph and a type
to main()
Closes: https://bugs.gentoo.org/946527
Closes: https://bugs.gentoo.org/818889
Closes: https://bugs.gentoo.org/883275
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40209
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang/mmix/files/mmix-20160804-implicit-int.patch')
| -rw-r--r-- | dev-lang/mmix/files/mmix-20160804-implicit-int.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-lang/mmix/files/mmix-20160804-implicit-int.patch b/dev-lang/mmix/files/mmix-20160804-implicit-int.patch new file mode 100644 index 000000000000..5da26a43c4fa --- /dev/null +++ b/dev-lang/mmix/files/mmix-20160804-implicit-int.patch @@ -0,0 +1,27 @@ +Fix function definition to be modern C +https://bugs.gentoo.org/883275 +diff '--color=auto' -ru work.old/abstime.w work/abstime.w +--- a/abstime.w 2025-01-19 17:06:19.952342044 +0400 ++++ b/abstime.w 2025-01-19 17:10:33.521811824 +0400 +@@ -18,7 +18,7 @@ + #include <stdio.h> + #include <time.h> + @# +-main() ++int main(void) + { + printf("#define ABSTIME %ld\n",time(NULL)); + return 0; +Additional dependency in build graph +https://bugs.gentoo.org/818889 +--- a/Makefile 2025-01-19 17:19:21.271627004 +0400 ++++ b/Makefile 2025-01-19 17:21:03.933007472 +0400 +@@ -81,6 +81,8 @@ + + mmix-config.o: mmix-pipe.o + ++mmix-mem.o: mmix-pipe.o ++ + mmmix: mmix-arith.o mmix-pipe.o mmix-config.o mmix-mem.o mmix-io.o mmmix.c + $(CC) $(CFLAGS) $(LDFLAGS) mmmix.c \ + mmix-arith.o mmix-pipe.o mmix-config.o mmix-mem.o mmix-io.o -o mmmix |
