Hi On 27 February 2012 09:55, Jeroen Demeyer <jdeme...@cage.ugent.be> wrote:
> On 2012-02-26 16:59, Jan Groenewald wrote: > > Is it still necessary to run sage as root once to set some paths? > It depends on how you build Sage. Let me elaborate: In order to compile > Sage, you don't need root privileges. In fact, it is strongly > recommended *not* to build Sage as root. Yes, I am not compiling as root. I am making two packages A deb from source, which will compile as some build user on launchpad build farms. People can then install this from our PPA. I think this aids Sage adoption. A deb from prebuilt binaries, which was built on sage build farms (not the right way, but faster) ( Note I am not making a deb for debian where the components are separated out; this is the Debian way, but too much work for now. The valid concern they raise is that security updates will be hard as it involves all the components. This raised another thought in my mind --- how does Sage deal with security updates to any of it's components currently? ) > During "make" (or "make all"), > Sage is ran once. This will create a few new files. After this, every > user on the system can run Sage from the directory it was compiled in > (if not, this is considered a bug). If you move your Sage tree after > building, you have to run sage-location again as the user who owns the > Sage files. As a final step, you can change the owner to root if you want. > When building debs, for system-wide installs, sage is moved to a new location and owned by root. So unlike above, it is changed to root during the move, and sage-location will have to run as root. It is important for deb whether this postinst step (running sage-location) will create NEW files, as if it does, I have to remove them during package removal with a postrm script. As far as I can see there are 4200+ pyc files in lib/local/python, but I guess those are all created during make or sage-location, and running it again will only replace existing files. 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