#9896: Upgrading from 4.5.3 to 4.6.alpha* can fail (not limited to MacOS X)
------------------------------------------------------+---------------------
Reporter: jhpalmieri | Owner: leif
Type: defect | Status: closed
Priority: blocker | Milestone:
sage-4.6
Component: build | Resolution: fixed
Keywords: upgrade update dependencies PARI NewPARI | Author: Leif
Leonhardy
Upstream: N/A | Reviewer: John
Palmieri, Mitesh Patel
Merged: sage-4.6.rc0 | Work_issues:
------------------------------------------------------+---------------------
Comment(by jhpalmieri):
A followup: on my mac, perhaps because of various symbolic links, whenever
I run "sage -b", I see a message like
{{{
warning: Replacing library search directory in linker command:
"/Applications/sage_builds/sage-4.6/local/lib" ->
"/Applications/sage/local/lib"
}}}
I can run "sage -b" three times in a row, and I see this message all three
times.
This may be because of symbolic links: "/Applications/sage" is a link
pointing to "/Applications/sage_builds/sage-4.6/".
Perhaps in setup.py, we should use os.path.realpath? For example,
{{{
#!diff
diff -r cdc586ffbdfd setup.py
--- a/setup.py Mon Sep 13 00:52:40 2010 -0700
+++ b/setup.py Wed Nov 03 12:46:51 2010 -0700
@@ -391,7 +391,7 @@
self.debug_print(
"Library dir found in dynamic linker command: " +
"\"%s\"" % libdir)
- if libdir != sage_libdir:
+ if os.path.realpath(libdir) !=
os.path.realpath(sage_libdir):
self.compiler.warn(
"Replacing library search directory in linker "
+
"command:\n \"%s\" -> \"%s\"\n" % (libdir,
}}}
If this sounds like a good idea, I can open a new ticket with this patch.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9896#comment:181>
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.