#9896: Upgrading from 4.5.3 to 4.6.alpha* can fail (not limited to MacOS X)
------------------------------+---------------------------------------------
   Reporter:  jhpalmieri      |       Owner:  leif                              
      
       Type:  defect          |      Status:  needs_review                      
      
   Priority:  blocker         |   Milestone:  sage-4.6                          
      
  Component:  build           |    Keywords:  upgrade update dependencies PARI 
NewPARI
     Author:  Leif Leonhardy  |    Upstream:  N/A                               
      
   Reviewer:                  |      Merged:  sage-4.6.rc0                      
      
Work_issues:                  |  
------------------------------+---------------------------------------------

Comment(by leif):

 Replying to [comment:142 jhpalmieri]:
 > As far as reviewing goes, I'm happy with all of the patches except for
 two.
 >
 >  - [http://trac.sagemath.org/sage_trac/raw-
 attachment/ticket/9896/trac_9896
 -fix_hardcoded_libdirs_in_extmod_linker_cmd-sagelib.patch /trac_9896
 -fix_hardcoded_libdirs_in_extmod_linker_cmd-sagelib.patch].  This seems
 fine, but the messages like "Library dir found in dynamic linker
 command..." don't actually appear in any log (unless you pipe the whole
 thing through tee, perhaps, but I haven't tried this yet).  (I'm assuming
 that, since I upgraded from 4.5.3 on OS X, the situation dealt with in the
 loop would occur, and I searched through all of the logs without finding
 this string.)  I was hoping that they would appear in the sage-4.6.rc0
 log, but no.  Is there anything to be done about this?

 {{{
 #!python
                 if ldso_cmd[i][:2] == "-L":
                     libdir = os.path.normpath(ldso_cmd[i][2:])
                     self.debug_print(
                       "Library dir found in dynamic linker command: " +
                       "\"%s\"" % libdir)
                     if libdir != sage_libdir:
                         self.compiler.warn(
                           "Replacing library search directory in linker "
 +
                           "command:\n  \"%s\" -> \"%s\"\n" % (libdir,
 sage_libdir))
                         ldso_cmd[i] = "-L"+sage_libdir

 }}}

 No, that's intentional. {{{self.debug_print()}}} only produces output if
 {{{DISTUTILS_DEBUG}}} is set.

 In contrast, {{{self.compiler.warn()}}} always prints a message, so you
 should find ''"warning: Replacing library search directory ..."'' in the
 logs of the installations you had moved:
 {{{
 #!sh
 $ grep "^warning: " install.log
 }}}
 or
 {{{
 #!sh
 $ grep "^warning: Replacing" spkg/logs/sage-*
 }}}
 should show these.

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