#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):

 Replying to [comment:22 leif]:
 > So somehow Sage's `libpng*.pc` appears to be "broken".

 Yep, apparently by `sage-location`, during the build.

 If I reinstall `libpng12`, and then MPL, everything is fine.

 The offending line was
 {{{
 SAGE_ROOT=${SAGE_ROOT}
 }}}
 `SAGE_ROOT=/the/appropriate/absolute/path` works. I have no idea why `pkg-
 config` doesn't take `$SAGE_ROOT` from the environment if it isn't defined
 in the `.pc` file itself; it IMHO used to -- last year, but meanwhile
 doesn't ... 8/

 I.e.,
 {{{
 prefix=${SAGE_ROOT}
 }}}
 does no longer work unless `SAGE_ROOT` is also defined in the `.pc` file
 itself.

 We may have to really wrap `pkg-config` in `$SAGE_ROOT/local/bin` with
 {{{
 #!sh
 #!/bin/sh

 if [ -z "$SAGE_ROOT" ]; then
     echo >&2 "Error: $0: SAGE_ROOT not defined."
     exit 1
 fi

 exec /usr/bin/env PATH=`echo $PATH | sed -e "s|$SAGE_ROOT/local/bin:||"` \
     pkg-config --define-variable=SAGE_ROOT="$SAGE_ROOT" "$@"
 }}}
 (Or just call the system's `pkg-config` ''without'' `--define-variable
 ...` if `SAGE_ROOT` is undefined.)

 Defining `SAGE_ORIG_PATH` in `sage-env` wouldn't be a bad idea either.

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