Hi Dan,

( I have been given a bit more space on launchpad (up from
2G to 4G now) so I can work slightly easier. )

On 16 March 2012 03:48, Dan Drake <dr...@kaist.edu> wrote:

> On Thu, 15 Mar 2012 at 07:13AM +0100, Jan Groenewald wrote:
> > Thanks, I will look into it. Are the steps to reproduce 1) install new
> OS,
> > 2) install Sage from PPA, 3) run sage as user?
>
> What I have done is (this happens every time):
>
> 1. Remove $HOME/.sage
> 2. Reinstall Sage from PPA
> 3. New $HOME/.sage is root-owned.
>

I have narrowed it down. There is a post-install script that runs sage once
as
root to fix the paths.

root# dpkg-reconfigure sagemath-upstream-binary

does not reproduce your problem, which confused me. However,

user$ sudo dpkg-reconfigure sagemath-upstream-binary

does reproduce it, so I think that my run-once-as-root is run as root but
in the SUDOUSER /home directory! I guess maybe $HOME is wrong
in this case.

However, there are two possible solutions:
1) run the sage-change-paths command directly with an argument
/root/.sage (how?)
2) because I symlink (instead of copying and editing SAGE_ROOT)
/usr/bin/sage -> /usr/lib/sage/sage it might not be necessary at all to
run the sage-change-paths command?


This is the current bit of the postinst script:

0 
jan@oystercatcher:~/src/sagemath-upstream-binary/sagemath-upstream-binary/debian$grep
-A2 " configure)" postinst
    configure)
        echo "Running Sage once as root to set paths"
        echo 'exit' | /usr/bin/sage

Regards,
Jan

-- 
  .~.
  /V\     Jan Groenewald
 /( )\    www.aims.ac.za
 ^^-^^

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to