Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/sci
In directory vz-cvs-3.sog:/tmp/cvs-serv7446/10.4/unstable/main/finkinfo/sci

Modified Files:
        octave-3.0.5.info octave-3.2.4.info 
Log Message:
Octave encodes the compilers used to build it in an internal header.
Let's have that be the appropriate Fink compiler wrapper rather than
"flag-sort -r gcc" or "flag-sort -r g++". 

Index: octave-3.0.5.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/unstable/main/finkinfo/sci/octave-3.0.5.info,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- octave-3.0.5.info   6 Sep 2011 16:27:53 -0000       1.16
+++ octave-3.0.5.info   7 Sep 2011 13:54:07 -0000       1.17
@@ -2,7 +2,7 @@
 Package: octave%type_pkg[-atlas]
 Type: -atlas (boolean), oct(3.0.5)
 Version: 3.0.5
-Revision: 15
+Revision: 16
 Maintainer: Alexander Hansen <alexkhan...@users.sourceforge.net>
 
 # disable atlas on 10.7 distro file until atlas is available
@@ -100,6 +100,9 @@
  # install the octave-forge helper scripts
  cp %{Ni}-forge* %i/share/%{Ni}/%v/scripts
  chmod a+x %i/share/%{Ni}/%v/scripts/*
+ # oct-conf.h needs to use Fink's compiler wrappers, too
+ sed -i.bak -e 's|flag-sort -r gcc|@WHICH_CC@|g' \
+                       -e 's|flag-sort -r g++|@WHICH_CXX@|g' 
%i/include/%{Ni}-%v/%{Ni}/oct-conf.h
 <<
 InfoDocs: %{Ni}.info
 RuntimeVars: <<
@@ -180,7 +183,8 @@
                fink_cc=`export $finkpath; which gcc`
                fink_cxx=`export $finkpath; which g++`
                sed -i.bak      -e "s|@WHICH_CC@|$fink_cc|g" \
-                                       -e "s|@WHICH_CXX@|$fink_cxx|g" 
%p/bin/mkoctfile-%type_raw[oct]
+                                       -e "s|@WHICH_CXX@|$fink_cxx|g" \
+                                       %p/bin/mkoctfile-%type_raw[oct] 
%p/include/%{Ni}-%v/%{Ni}/oct-conf.h
        <<
        DescDetail: <<
        This package contains files needed to build against Octave, including

Index: octave-3.2.4.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4/unstable/main/finkinfo/sci/octave-3.2.4.info,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- octave-3.2.4.info   6 Sep 2011 16:27:53 -0000       1.15
+++ octave-3.2.4.info   7 Sep 2011 13:54:07 -0000       1.16
@@ -2,7 +2,7 @@
 Package: octave%type_pkg[-atlas]
 Type: -atlas (boolean), oct(3.2.4)
 Version: 3.2.4
-Revision: 10
+Revision: 11
 Maintainer: Alexander Hansen <alexkhan...@users.sourceforge.net>
 
 # disable atlas on 10.7 distro file until atlas is available
@@ -132,6 +132,9 @@
  # install the octave-forge helper scripts
  cp %{Ni}-forge* %i/share/%{Ni}/%v/scripts
  chmod a+x %i/share/%{Ni}/%v/scripts/*
+ # oct-conf.h needs to use Fink's compiler wrappers, too
+ sed -i.bak -e 's|flag-sort -r gcc|@WHICH_CC@|g' \
+                       -e 's|flag-sort -r g++|@WHICH_CXX@|g' 
%i/include/%{Ni}-%v/%{Ni}/oct-conf.h
 <<
 InfoDocs: %{Ni}.info
 RuntimeVars: <<
@@ -217,7 +220,8 @@
                fink_cc=`export $finkpath; which gcc`
                fink_cxx=`export $finkpath; which g++`
                sed -i.bak      -e "s|@WHICH_CC@|$fink_cc|g" \
-                                       -e "s|@WHICH_CXX@|$fink_cxx|g" 
%p/bin/mkoctfile-%type_raw[oct]
+                                       -e "s|@WHICH_CXX@|$fink_cxx|g" \
+                                       %p/bin/mkoctfile-%type_raw[oct] 
%p/include/%{Ni}-%v/%{Ni}/oct-conf.h
        <<
        DescDetail: <<
        This package contains files needed to build against Octave, including
@@ -411,6 +415,16 @@
 
 We don't build the FLTK backend since we are allowing for Aqua and X11 variants
 of that bundle in the fltk-backend-{aqua|x11}.
+
+Patch mkoctfile-%v to use fink's compiler wrappers.  This is done via a 
two-stage patch 
+in the PatchScript and then in the PostInstScript of octave%type_pkg[oct]-dev 
to allow for
+OS upgrades.
+
+Octave encodes the name of the compilers used to build it in oct-conf.h, and 
unfortunately
+that includes "flag-sort gcc -r" and "flag-sort g++ -r".  To avoid forcing 
users to have
+flag-sort, and so that it isn't required in our own Octave Forge package 
builds, we apply
+a two-stage patch in the InstallScript and the PostInstScript of 
octave%type_pkg[oct]-dev
+to use fink's compiler wrappers.
 <<
 Homepage: http://www.octave.org/
 License: GPL


------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage 
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to