From f3d199f985699ff5eff6b685fcc5e84a1e580111 Mon Sep 17 00:00:00 2001 From: hans Date: Sun, 6 May 2012 11:07:24 +0000 Subject: Fix build with gcc4.5 and newer. Patch taken from Gentoo, see https://bugs.gentoo.org/show_bug.cgi?id=321209 --- math/scilab/patches/patch-routines_system_Makefile.in | 14 ++++++++++++++ math/scilab/patches/patch-routines_system_msgs.f | 13 +++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 math/scilab/patches/patch-routines_system_Makefile.in create mode 100644 math/scilab/patches/patch-routines_system_msgs.f (limited to 'math/scilab') diff --git a/math/scilab/patches/patch-routines_system_Makefile.in b/math/scilab/patches/patch-routines_system_Makefile.in new file mode 100644 index 00000000000..a8dd5541d5a --- /dev/null +++ b/math/scilab/patches/patch-routines_system_Makefile.in @@ -0,0 +1,14 @@ +$NetBSD: patch-routines_system_Makefile.in,v 1.1 2012/05/06 11:07:24 hans Exp $ + +--- routines/system/Makefile.in.orig 2006-10-23 13:49:02.000000000 +0200 ++++ routines/system/Makefile.in 2012-05-06 11:51:37.838241380 +0200 +@@ -41,6 +41,9 @@ include ../Make.lib + getsym.o: getsym.f + $(FC) @FC_OPTIONS2@ -c getsym.f -o getsym.o + ++algebre.o: algebre.f ++ $(FC) $(FC_OPTIONS) -fno-range-check -c $< -o $@ ++ + allops.o: ../stack.h + bexec.o: ../stack.h + clause.o: ../stack.h diff --git a/math/scilab/patches/patch-routines_system_msgs.f b/math/scilab/patches/patch-routines_system_msgs.f new file mode 100644 index 00000000000..658f3dcddff --- /dev/null +++ b/math/scilab/patches/patch-routines_system_msgs.f @@ -0,0 +1,13 @@ +$NetBSD: patch-routines_system_msgs.f,v 1.1 2012/05/06 11:07:24 hans Exp $ + +--- routines/system/msgs.f.orig 2005-01-18 17:52:40.000000000 +0100 ++++ routines/system/msgs.f 2012-05-06 11:35:56.483374475 +0200 +@@ -81,7 +81,7 @@ c---------------------- message de matlu + call showstack() + goto 9999 + 109 continue +- write(buf(1:5),'(1pI5)') ierr ++ write(buf(1:5),'(I5)') ierr + call basout(io, wte, 'rank defficient. rank = '//buf(1:5)) + goto 9999 + 110 continue -- cgit v1.2.3