#11760: 'sage-location' shouldn't "initialize" .pc (pkg-config) files more than
once
-----------------------+----------------------------------------------------
Reporter: leif | Owner:
Type: defect | Status: needs_review
Priority: blocker | Milestone: sage-4.7.2
Component: scripts | Keywords: pkgconfig libpng Duplicate definition
SAGE_ROOT
Work_issues: | Upstream: N/A
Reviewer: | Author: Leif Leonhardy
Merged: | Dependencies:
-----------------------+----------------------------------------------------
Comment(by leif):
Note that (as I already mentioned elsewhere), on a follow-up or one of the
other tickets, we have to (re-)initialize `.pc` files whenever a package
[providing a `.pc` file] gets (re)installed (preferably at the end of
`sage-spkg`, just like `sage-make_relative` is called), since that's very
likely to overwrite our "once" modified / initialized `pkg-config` files,
until all spkgs fix their own `.pc` files in their `spkg-install` files
(or just call a Sage script / shell function that does that for them from
there).
This ticket just fixes the worst cases, and especially the one that
currently ''always'' occurs (since more than a year by the way), namely
''duplicate definitions'' of `SAGE_ROOT` in a `.pc` file.
[[BR]]
If sh*t happens during reinstallation of one or more packages, with the
patches here, the user will now be able to repair all `pkg-config` files
by simply deleting `$SAGE_ROOT/local/lib/sage-current-location.txt`, and
afterwards running Sage (e.g. just `./sage -c quit`), without having to
check and manually edit any `pkg-config` files, which is certainly not
perfect, but an improvement.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11760#comment:16>
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.