Ticket #5873 (needs_work defect)
[patch] Fix matplotlib build on FreeBSD
| Reported by: | pjeremy | Owned by: | mabshoff |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.5.3 |
| Component: | FreeBSD | Keywords: | |
| Cc: | jason | Author(s): | Peter Jeremy |
| Report Upstream: | Completely fixed; Fix reported upstream | Reviewer(s): | |
| Merged in: | Work issues: |
Description (last modified by pjeremy) (diff)
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

