summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorhans <hans>2012-05-06 11:07:24 +0000
committerhans <hans>2012-05-06 11:07:24 +0000
commit0add4d2b846e576d6606ee27b328b18ad66a6e15 (patch)
treed94734dae036c97e895afe0b94fd6825f6e17ce8 /math
parentdadfb290af00e96d643818cdc2aca698a7924533 (diff)
downloadpkgsrc-0add4d2b846e576d6606ee27b328b18ad66a6e15.tar.gz
Fix build with gcc4.5 and newer. Patch taken from Gentoo, see
https://bugs.gentoo.org/show_bug.cgi?id=321209
Diffstat (limited to 'math')
-rw-r--r--math/scilab/patches/patch-routines_system_Makefile.in14
-rw-r--r--math/scilab/patches/patch-routines_system_msgs.f13
2 files changed, 27 insertions, 0 deletions
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