New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix matplotlib build on FreeBSD #5873
Comments
comment:1
Attachment: matplotlib-0.98.5.3rc0-svn6910.p3.patch.gz Of course, this should be added to the current matplotlib spkg. |
Attachment: 5873.matplotlib.patch.gz |
Author: Peter Jeremy |
comment:2
5873.matplotlib.patch has been updated for matplotlib-0.99.1.p2. Of the patches mentioned in the original description, only the first part remains (and is still necessary). The second part (related to putchar problems with gcc43) has been removed as it's no longer practical to build Sage with gcc43 on FreeBSD. The third part (related to bounding box conversions) has been removed as an equivalent patch has been integrated into matplotlib-0.99.1 |
comment:4
Replying to @jasongrout:
Any thoughts about this Peter? I noticed you created (or at least edited) a wiki page about the FreeBSD port, and still reference this old patch, which is probably no longer needed. Dave |
comment:5
Unfortunately, a variant of this patch is still needed to support FreeBSD later than FreeBSD6. Whilst #9202 means prepending SAGE_LOCAL should no longer be necessary, additional OS-related lines are still needed to support recent versions of FreeBSD. |
comment:6
Replying to @peterjeremy:
If you wish to create one, I'll try to review it reasonably quickly. It makes review a lot easier if you can include things inside
or if appropriate
or similar. Otherwise, it requires the reviewer to have a much deeper knowledge of the code to evaluate if the changes are desirable or not. If it can be seen the changes only affect FreeBSD, then it will be much easier to get a positive review. That's been my experience with Solaris and OpenSolaris related problems. Dave |
Attachment: matplotlib-0.99.1.p4.patch.gz |
Upstream: Completely fixed; Fix reported upstream |
comment:7
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. |
This comment has been minimized.
This comment has been minimized.
comment:8
Replying to @peterjeremy:
Unfortunately, this link no longer works, as matplotlib has moved its bug tracker to Github. Pleasantly, the ticket is still there. Sadly, the patch appears to have been lost there, though it's still here. |
comment:9
Apparently Stephen Montgomery-Smith has gotten matplotlib to build fine for Sage in the meantime, or possibly using a system matplotlib. |
comment:10
More success with this thread. Checking whether system variant or Sage version. |
Reviewer: Stephen Montgomery-Smith |
comment:11
Some of the reason this is unnecessary is probably due to the upgrades in gcc. I don't understand, though, why the patch for newer FreeBSD is no longer necessary. The current mpl source (June 2012) does not have it incorporated. This is weird enough that I'm not putting positive review; it seems like there should be a key error at this spot if we don't have something in the dictionary for this system. |
Changed author from Peter Jeremy to none |
comment:12
I just wanted to chime in with the reason that the patch for newer FreeBSD was not necessary on FreeBSD itself, is because their ports tree incorporates it itself downstream. So that's the reason it is not in the current MPL source (we haven't heard enough people building it natively complain, they were probably using the system variant). As it stands, either MPL PR #982 or MPL PR #985 will make this a non-issue (and you can grab either of those patches in the meantime, they will both also work for FreeBSD10, and MPL !#985 will work for any other future releases, as well any other POSIX systems that got left out. |
comment:13
Thanks for this info. Strange, though, because the testing in question was not using the system mpl, as far as I know. Stephen, any thoughts on this? We could make a custom spkg with one of these patches. |
comment:14
I am going to have to say that I don't know why the FreeBSD port of sage doesn't build without this patch. I looked at the FreeBSD port of matplotlib, and this patch was included there. I just don't understand what is going on. Let me look into it some more. |
comment:15
TLDR: you don't need this patch. The mpl
which is why this patch is not needed for SPKG matplotlib being built on any platform. From what I understand from the discussion at Python Bug #12326, it seems like we (MPL) should not have been using |
Changed upstream from Completely fixed; Fix reported upstream to None of the above - read trac for reasoning. |
Changed reviewer from Stephen Montgomery-Smith to Stephen Montgomery-Smith, Paul Ivanov |
comment:16
@sagetrac-pi: If that's correct, I've put what I think is your real name here - just switch to "positive review"! I'm switching the upstream to "none of the above" since this is a somewhat unusual situation. Is this your first contribution? If so, welcome to the Sage team! |
comment:17
@kcrisman it is my first direct Sage contribution, thanks! |
comment:18
Great! |
Add support for FreeBSD later than 6.x
Explicitly add SAGE_LOCAL to the dependency search path for matplotlib for FreeBSD - superceded by update matplotlib #9202
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
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
Upstream: None of the above - read trac for reasoning.
CC: @jasongrout @sagetrac-stephen
Component: porting: BSD
Reviewer: Stephen Montgomery-Smith, Paul Ivanov
Issue created by migration from https://trac.sagemath.org/ticket/5873
The text was updated successfully, but these errors were encountered: