Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sage-location: "update" library files the first time this is run #10162

Closed
jhpalmieri opened this issue Oct 23, 2010 · 8 comments
Closed

sage-location: "update" library files the first time this is run #10162

jhpalmieri opened this issue Oct 23, 2010 · 8 comments

Comments

@jhpalmieri
Copy link
Member

If you build Sage but do not run it, then the script sage-location does not get run, so the file $SAGE_ROOT/local/lib/sage-current-location.txt does not get written. So if you move the Sage install directory before running it, the paths in the files SAGE_ROOT/local/lib/*.la are not correct. The attached patch updates the paths in those files if the file sage-current-location.txt does not exist.

(I'm marking this "minor" since it's not likely to happen at all frequently. When it does happen, it can screw things up pretty badly, though.)

CC: @nexttime

Component: build

Author: John Palmieri

Reviewer: Leif Leonhardy

Merged: sage-4.6.1.alpha0

Issue created by migration from https://trac.sagemath.org/ticket/10162

@jhpalmieri
Copy link
Member Author

scripts repo

@jhpalmieri
Copy link
Member Author

comment:1

Attachment: trac_10162-sage-location.patch.gz

@nexttime
Copy link
Mannequin

nexttime mannequin commented Oct 23, 2010

comment:2

Except that the file's name is sage-current-location.txt...

Good catch by the way, I assumed it was an even larger, perhaps OS-related problem.

@nexttime
Copy link
Mannequin

nexttime mannequin commented Oct 23, 2010

Reviewer: Leif Leonhardy

@nexttime

This comment has been minimized.

@nexttime
Copy link
Mannequin

nexttime mannequin commented Oct 26, 2010

comment:3

Personal note (or to whom it may concern): ;-)

  • Open a follow-up to also improve sage-sage:

    • Check exit code of sage-location before running sage-upgrade, too.
    • Call sage-location also before running sage-spkg.
    • Trap SIGINT while running sage-location(?) (such that we end up in a defined state in case it gets interrupted; perhaps requires further modification of sage-location as well)
  • Open a follow-up to make sage-location a bit verbose? (aids debugging)

(I'm happy with this ticket as is, therefore further changes like the above should IMHO be made on follow-up tickets.)

@jdemeyer
Copy link

jdemeyer commented Nov 1, 2010

Merged: sage-4.6.1.alpha0

@jdemeyer jdemeyer closed this as completed Nov 1, 2010
@qed777 qed777 mannequin modified the milestones: sage-4.6, sage-4.6.1 Nov 1, 2010
@nexttime
Copy link
Mannequin

nexttime mannequin commented Nov 2, 2010

comment:6

See #10202 for a follow-up (regarding when sage-location is called [first], and especially patching / "initializing" pkg-config's .pc files).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants