#5873: [patch] Fix matplotlib build on FreeBSD
----------------------------+-----------------------------------------------
   Reporter:  pjeremy       |       Owner:  mabshoff                            
   
       Type:  defect        |      Status:  needs_work                          
   
   Priority:  major         |   Milestone:  sage-4.5.1                          
   
  Component:  freebsd       |    Keywords:                                      
   
     Author:  Peter Jeremy  |    Upstream:  Completely fixed; Fix reported 
upstream
   Reviewer:                |      Merged:                                      
   
Work_issues:                |  
----------------------------+-----------------------------------------------
Changes (by pjeremy):

  * upstream:  N/A => Completely fixed; Fix reported upstream


Old description:

> 1) Explicitly add SAGE_LOCAL to the dependency search path for matplotlib
> for FreeBSD.
>
> 2) gcc-4.3 on FreeBSD (though not the base gcc4.2) appears to define
> putchar() in <stdio.h> in a way that breaks the putchar() definitions
> inside ttconv.  It's not immediately clear what the problem is (since
> there's no immediately obvious difference in the way putchar() is defined
> in <stdio.h>) so this patch takes
> the easy way out and undef's the offending putchar() macro.
>
> 3) Individual character bounding boxes in AFM files do not have to be
> integral so convert each bounding box to a list of floats, rather than a
> list of ints. This corrects a problem where most of the tests would fail
> with "ValueError: invalid literal for int() with base 10: '539.621'" on
> FreeBSD.

New description:

 0) Add support for FreeBSD later than 6.x

 1) Explicitly add SAGE_LOCAL to the dependency search path for matplotlib
 for FreeBSD - superceded by #9202

 2) gcc-4.3 on FreeBSD (though not the base gcc4.2) appears to define
 putchar() in <stdio.h> in a way that breaks the putchar() definitions
 inside ttconv.  It's not immediately clear what the problem is (since
 there's no immediately obvious difference in the way putchar() is defined
 in <stdio.h>) so this patch takes
 the easy way out and undef's the offending putchar() macro - no longer
 needed with gcc-4.5

 3) Individual character bounding boxes in AFM files do not have to be
 integral so convert each bounding box to a list of floats, rather than a
 list of ints. This corrects a problem where most of the tests would fail
 with "ValueError: invalid literal for int() with base 10: '539.621'" on
 FreeBSD - now integrated into matplotlib

--

Comment:

 Point 0 has been reported upstream as
 
https://sourceforge.net/tracker/?func=detail&aid=3031051&group_id=80706&atid=560722
 and an updated patch (not yet converted to spkg) uploaded.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5873#comment:7>
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