[Lunar-commits] <moonbase-other> octave: make it compile with SuiteSparse 4.0

v4hn me at v4hn.de
Mon Jul 9 19:50:25 CEST 2012


commit 4afbb84f21e6a26f0e06952950e2c284a1addcb2
Author: v4hn <me at v4hn.de>
Date: Mon, 09 Jul 2012 10:50:25 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/4afbb84f21e6a26f0e06952950e2c284a1addcb2

octave: make it compile with SuiteSparse 4.0
---
  science/octave/BUILD                                         +11/-1    
  science/octave/DETAILS                                       +3/-1     
  science/octave/POST_INSTALL                                  +0/-5     
  science/octave/POST_REMOVE                                   +0/-1     
  4 files changed, 14 insertions (+), 8 deletions (-)

--- a/science/octave/BUILD
+++ b/science/octave/BUILD
@@ -1,4 +1,12 @@
 (
+  #dvi generation dies with less then 2GB RAM with current texlive installation
+  OPTS+=" --disable-docs" &&
+
+  #needed for SuiteSparse 4.0.0
+  #this should be fixed in the next release of octave
+  sedit "s:\(\$(octave_LDADD) \$(LIBS)\):\1 -lsuitesparseconfig -lrt:" src/Makefile.in &&
+  bad_flags ",--as-needed" &&
+
 
   sedit "s:suitesparse:SuiteSparse:g" configure &&
 
@@ -8,6 +16,8 @@
 
   CXXFLAGS="-lpthread" &&
 
-  default_build 
+  default_build &&
+
+  ln -fs /usr/lib/octave-${VERSION} /usr/lib/octave
 
 ) > $C_FIFO 2>&1
--- a/science/octave/DETAILS
+++ b/science/octave/DETAILS
@@ -7,7 +7,9 @@
          ENTERED=20030604
          UPDATED=20120708
            SHORT="Numerical computation suite mostly compatible with MATLAB"
-           PSAFE=no
+#seems to be psafe again
+#          PSAFE=no
+
 cat << EOF
 Octave is a high-level interactive language, primarily intended
 for numerical computations that is mostly compatible with MATLAB.
--- a/science/octave/POST_INSTALL
+++ /dev/null
@@ -1,5 +0,0 @@
- if [ ! `grep /usr/lib/octave /etc/ld.so.conf` ]; then
- echo /usr/lib/octave >> /etc/ld.so.conf 
- fi &&
- ln -fs /usr/lib/octave-${VERSION} /usr/lib/octave &&
- ldconfig
--- a/science/octave/POST_REMOVE
+++ /dev/null
@@ -1 +0,0 @@
-rm -rf /usr/lib/octave




More information about the Lunar-commits mailing list