On 06/10/10 01:19 PM, Jason Grout wrote:
On 6/10/10 7:55 AM, Dr. David Kirkby wrote:

I'm in the process of updating matplotlib in Sage to 0.99.3 to get a
needed bugfix into the Sage version. David: are you working on the spkg
too?

Yes. Can you create a ticket, and cc me on it. Should I find the fix
before you do, then I'll let you know. If not, just release a new
matplotlib. I've tried the latest version of matplotlib, but it does not
fix the issues I have on Solaris. I'm just in the process of building
Sage on 'sage.math' and will try a new freetype on there, and see what
happens.

I've posted the update to http://trac.sagemath.org/sage_trac/ticket/9202

Actually, I'm pretty sure I fixed the issue in this thread with the new
spkg (see my other message in this thread for a discussion of what the
issue is, or see the hg commit log in the new spkg). I also removed
another solaris-specific patch that we apply, that I'm pretty sure is
obsolete as of a year ago or so.

Can you check the new spkg on Solaris and let us know if there are any
problems?

Thanks,

Jason

No, it has not fixed it. Leaving pkg-config working, matplotlib reports version

REQUIRED DEPENDENCIES
                 numpy: 1.3.0
             freetype2: 9.7.3


That's the version in /usr/sfw. When I change the permission of the files in /usr/sfw so they can't be read, I get an error while installing matplotlib.

/export/home/drkirkby/32/sage-4.4.3/local/lib/python2.6/site-packages/numpy/core/include/numpy/npy_interrupt.h:83:20: error: /usr/sfw/include/freetype2/setjmp.h: Permission denied

So we can see, matplotlib is still trying to read from /usr/sfw.

From what I've been playing around with, the only way I can get matplotlib to find the sage version is to stop pkg-config from working.

drkir...@redstart:~/32/sage-4.4.3/spkg/standard$ su
Password:
# chmod 000 /usr/bin/pkg-config
# exit

Then, it would appear that matplotlib finds the freetype2 version in Sage, though it is unable to find the version number.

REQUIRED DEPENDENCIES
                 numpy: 1.3.0
             freetype2: found, but unknown version (no pkg-config)


I think the solution will revolve around stopping matplotlib making use of the output from the pkg-config command. If you can do that, it should find the version in Sage, and will report "freetype2: found, but unknown version (no pkg-config)"

It seems at the minute, that pkg-config is used in preference to any settings that we have so far tried.



Dave

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to