#6743: cygwin metaticket: port Sage to Microsoft Windows (via Cygwin): stage 1
--
make building Sage automatic
-----------------------------------+----------------------------------------
Reporter: was | Owner: was
Type: enhancement | Status: needs_info
Priority: major | Milestone: sage-5.9
Component: porting: Cygwin | Resolution:
Keywords: sd31 sd32 | Work issues:
Report Upstream: N/A | Reviewers: Jean-Pierre Flori, Dmitrii
Pasechnik, Karl-Dieter Crisman, Mike Hansen, William Stein, Luis Tabera
Authors: | Merged in:
Dependencies: | Stopgaps:
-----------------------------------+----------------------------------------
Comment (by jpflori):
Replying to [comment:224 jpflori]:
> Replying to [comment:222 leif]:
> > Replying to [comment:221 jpflori]:
> > > Strange that the fact $SAGE_LOCAL/bin is in $PATH is not sufficient
but whatever.
> > > And not sure why in sage-enc $SAGE_LOCAL/lib is appended rather than
prepended.
> > > I mean, were prepending $SAGE_LOCAL/bin, so...
> >
> > ? In both cases (`PATH` as well as `LD_LIBRARY_PATH`), directories get
'''pre'''pended (provided they exist).
> It seems PATH is not, in sage-env:
> {{{
> export PATH="$SAGE_PACKAGES/bin:$SAGE_LOCAL/bin:$PATH"
> }}}
> >
> > On Unices, `libpython-*.so*` is in `$SAGE_LOCAL/{lib,lib32,lib64}/`,
so can be found along `$LD_LIBRARY_PATH`.
> But on Cygwin its in .../bin/ whence the problem I guess.
> >
> > If Cygwin's `dlopen()` conforms to POSIX (it probably does), it
doesn't use `PATH` but `LD_LIBRARY_PATH` (if set), unless an absolute path
was given in the filename argument.
> Yup.
> That's fine, but also disturbing as all the (rest of the) dll magic uses
PATH rather than LD_LIBRARY_PATH on Cygwin.
> >
In fact that's not really POSIX requested, from the doc of dlopen in POSIX
specs (if those are what is at
http://pubs.opengroup.org/onlinepubs/9699919799/):
{{{
...
The file argument is used to construct a pathname to the object file. If
file contains a slash character, the file argument is used as the pathname
for the file.
Otherwise, file is used in an implementation-defined manner to yield a
pathname.
...
}}}
So Cygwin could decide to use PATH :)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6743#comment:226>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.