#10202: Use pkg-config --define-variable option to set ${SAGE_ROOT} anytime pkg-
config is invoked
---------------------------+------------------------------------------------
Reporter: jason | Owner: leif
Type: enhancement | Status: new
Priority: critical | Milestone: sage-4.7
Component: packages | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
Old description:
> Following up on the comments at the end of #9221, let's see if we can do
> the following:
>
> "At least for freetype, it should be possible to simply set prefix to
> $SAGE_LOCAL (unexpanded) rather than a hard-coded absolute path. (Done
> once, e.g. in its spkg-install.) "
>
> This would a lot of hassle in the sage-location script if this works.
> I'm not sure if these needs to be done as part of setting the prefix
> option on the command line when compiling, or if it needs to be done
> after freetype is installed (i.e., manually fix up the pkgconfig file)
>
> In short, this ticket is to modify the spkg-install file in the freetype
> spkg so that after installation, the freetype2.pc file would be something
> like:
>
> {{{
> prefix=${SAGE_LOCAL}
> exec_prefix=${prefix}
> libdir=${exec_prefix}/lib
> includedir=${prefix}/include
>
> Name: FreeType 2
> Description: A free, high-quality, and portable font engine.
> Version: 9.16.3
> Requires:
> Libs: -L${libdir} -lfreetype -lz
> Cflags: -I${includedir}/freetype2 -I${includedir}
> }}}
New description:
Currently we rewrite all of the local/lib/pkgconfig/*.pc files every time
we move locations. Instead, we should just use the --define-variable
option of pkg-config to define a ${SAGE_ROOT} variable. Then we don't have
to keep rewriting files every time.
--
Comment(by jason):
Actually, that path to pkg-config won't solve our problem, since it
involves modifying each of the pkg-config files anyway, and then things
depend on the package, etc. So I don't think anymore that it would be
better to ship pkg-config.
I changed the description to reflect the patch's new solution.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10202#comment:18>
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.