#11884: Fix ECL so it builds on OS X Lion
------------------------------+---------------------------------------------
   Reporter:  jhpalmieri      |          Owner:  tbd                            
       
       Type:  defect          |         Status:  needs_review                   
       
   Priority:  major           |      Milestone:  sage-4.7.2                     
       
  Component:  packages        |       Keywords:  ecl spkg upgrade update lion 
darwin 11
Work_issues:                  |       Upstream:  N/A                            
       
   Reviewer:  Leif Leonhardy  |         Author:  William Stein                  
       
     Merged:                  |   Dependencies:  #11966                         
       
------------------------------+---------------------------------------------
Changes (by jhpalmieri):

  * status:  needs_work => needs_review


Comment:

 Yes, that fixed it, at least on sage.math.  New spkg up.  Differences:
 {{{
 #!diff
 diff --git a/SPKG.txt b/SPKG.txt
 --- a/SPKG.txt
 +++ b/SPKG.txt
 @@ -51,10 +51,13 @@ Website: http://ecls.sourceforge.net/
  == Changelog ==

  === ecl-11.1.2.git.20111030.p0 (John H. Palmieri, 2 Novemer 2011) ===
 -  * Trac #11884: general clean-up: remove unneeded patches,
 +  * Trac #11884.  General clean-up: remove unneeded patches,
      remove some source files (as described above in "Special
 -    Update/Build Instructions").  Also check the error code when
 -    running 'patch' in spkg-install.
 +    Update/Build Instructions").
 +  * Check the error code when running 'patch' in spkg-install.
 +  * Run configure with the option "--enable-unicode=no" -- this was
 +    the default in previous versions of ecl, and using the new default
 +    of "yes" causes problems with some strings.

  === ecl-11.1.2.git.20111030 (William Stein, 30th October 2011) ===
    * Upgraded for trac 11884.   I got this by using
 diff --git a/spkg-install b/spkg-install
 --- a/spkg-install
 +++ b/spkg-install
 @@ -90,9 +90,9 @@ if [ "x`uname -sm`" = "xSunOS i86pc" ] &
     # 1) Solaris, Solaris Express or OpenSolaris (SunOS)
     # 2) Intel or AMD CPU
     # 3) 64-bit build
 -   ./configure --prefix="$SAGE_LOCAL" --with-dffi=no
 +   ./configure --prefix="$SAGE_LOCAL" --with-unicode=no --with-dffi=no
  else
 -   ./configure --prefix="$SAGE_LOCAL"
 +   ./configure --prefix="$SAGE_LOCAL" --with-unicode=no
  fi

  if [ $? -ne 0 ]; then
 }}}

 By the way, I deleted the directory src/src/libffi directory, and this
 gives a warning during configuration:
 {{{
 checking for ffi_closure_alloc in -lffi... no
 checking whether we can use the existing libffi library ... no
 configure: Configuring included libffi library:
 
/scratch/palmieri/ECL/sage-4.7.2/spkg/build/ecl-11.1.2.git.20111030.p0/src/src/configure:
 line 7012:
 
/scratch/palmieri/ECL/sage-4.7.2/spkg/build/ecl-11.1.2.git.20111030.p0/src/src/libffi/configure:
 No such file or directory
 configure: WARNING: Unable to configure or find libffi library; disabling
 dynamic FFI
 }}}
 I wonder if we should configure using `--with-dffi=no` on all platforms?
 Or perhaps I shouldn't delete the directory.  In William's package:
 {{{
 $ du -s -h src
 44M     src
 $ du -s -h src/src/libffi/
 7.2M    src/src/libffi/
 }}}
 So it takes a fair amount of room...

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11884#comment:24>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to