Hi Perhaps someone on sage devel can help. Specifically this is called:
0 jan@snapperkob:~/src/sagemath-optional/sagemath-optional-6.1/debian$grep -A1 SPKG postinst for SPKG in /usr/lib/sagemath/upstream/*; do HOME=/root/ DOT_SAGE=/root/.sage /usr/bin/sage -i ${SPKG#/usr/lib/sagemath/upstream/}|cut -d\- -f1,1; done; Can another variable besides HOME and DOT_SAGE be set for where the optional packages put things? Of course postinst runs as root, and usually sage -i should NOT be run as root. sagemath-optional was really for personal use, and I might discontinue it if this is not cleanly solvable. Perhaps that can be changed to su - but it would probably require adding a sagemath user which is a whole bunch of extra work. Installing sagemath-upstream-binary does not compile anything as root, it copies the compiled binaries into standard places, with files owned by root., which is normal for many binaries. It will not solve the problem that once the sagemath-upstream-binary is installed, and a user runs sage -i as root, then the same problem might follow, unless sage -i was patched to need a --force and to have a warning when run as root. Regards, Jan On 24 February 2014 17:33, Jan Groenewald <j...@aims.ac.za> wrote: > Hi Thierry, > > Can you give the exact version please? > > This seems to be sagemath-optional, which simply calls sage -i > database-stuff, which might mean I could just set a path before sage -i, or > there is an upstream problem with those optioneal packages. > > The second one I think is also related to that. > > The PPA might not be compatible with optional packages, yet this might be > fixed easily. > > Regards, > Jan > > > > > On 24 February 2014 17:26, Thierry Dumont <tdum...@math.univ-lyon1.fr>wrote: > >> Dear all, >> >> I have juste installed 6.1 with the Ubuntu ppa on my lab's machines...: >> >> apt-get nstall sagemath-upstream-binary sagemath-optional >> >> (we are in LTS, Ubuntu 12.04); >> >> The directories: >> >> sloane/ >> jones/ >> >> are installed in / !!! (yes: i say /) >> >> idem if I do: >> >> sage -i sage-mode >> >> a directory emacs/ is created in / with sage-mode and related files in it. >> >> This is a least not suitable .... >> >> Yours >> t. >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sage-support" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to sage-support+unsubscr...@googlegroups.com. >> To post to this group, send email to sage-supp...@googlegroups.com. >> Visit this group at http://groups.google.com/group/sage-support. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > .~. > /V\ Jan Groenewald > /( )\ www.aims.ac.za > ^^-^^ > -- .~. /V\ Jan Groenewald /( )\ www.aims.ac.za ^^-^^ -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.