#11686: Race condition in matplotlib mkdir()
------------------------+---------------------------------------------------
   Reporter:  jdemeyer  |          Owner:  tbd          
       Type:  defect    |         Status:  needs_review 
   Priority:  minor     |      Milestone:  sage-4.7.2   
  Component:  packages  |       Keywords:               
Work_issues:            |       Upstream:  N/A          
   Reviewer:            |         Author:  John Palmieri
     Merged:            |   Dependencies:               
------------------------+---------------------------------------------------

Comment(by leif):

 Is this normal?
 {{{
 OPTIONAL BACKEND DEPENDENCIES
                 libpng: found, but unknown version (no pkg-config)
 }}}
 I do have `pkg-config` installed, and
 `$SAGE_ROOT/local/lib/pkgconfig/libpng12.pc` (target of a symbolic link
 `libpng.pc`) looks like this:
 {{{
 ...
 Name: libpng
 Description: Loads and saves PNG files
 Version: 1.2.35
 Libs: -L${libdir} -lpng12
 ...
 }}}
 So maybe either `pkg-config` or MPL is confused by the "wrong" `Name: `,
 since we patch MPL's `setupext.py`:
 {{{
 #!diff
 --- src/setupext.py     2010-06-11 10:50:55.000000000 -0500
 +++ src/setupext.py     2010-06-11 14:42:15.000000000 -0500
 @@ -538,7 +538,7 @@
      module.include_dirs.append(numpy.get_include())

  def add_png_flags(module):
 -    try_pkgconfig(module, 'libpng', 'png')
 +    try_pkgconfig(module, 'libpng12', 'png12')
      add_base_flags(module)
      add_numpy_flags(module)
      module.libraries.append('z')
 }}}
 Probably this patch should only be applied on MacOS X, since
 {{{
  * setupext.py: link to libpng12 instead of libpng to apparently avoid
    some name clashes on OSX.
 }}}
 (Currently running doctests, so haven't checked if not applying the patch
 on Linux changes anything w.r.t. that.)

 [[BR]]

 We should add freetype (and now also GNU patch) to the ''Dependencies'':
 {{{
 REQUIRED DEPENDENCIES
                  numpy: 1.5.1
              freetype2: 9.16.3

 }}}
 {{{
 == Dependencies ==

  * python
  * numpy

 }}}

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