Ticket #5873 (needs_review defect)
[patch] Fix matplotlib build on FreeBSD
| Reported by: | pjeremy | Owned by: | mabshoff |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.3.4 |
| Component: | freebsd | Keywords: | |
| Cc: | jason | Author(s): | Peter Jeremy |
| Report Upstream: | N/A | Reviewer(s): | |
| Merged in: | Work issues: |
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.

