Hi there, I'm currently running 7.2-RELEASE-p0 on a small Geode box (embedded type spec, 400MHz Geode, 256Mb RAM) so I'm looking to use ccache to speed things up (ie any kernel rebuilds and port rebuilds should I have to do them).
I currently use sudo with portmaster to install ports. I have "portmaster" aliased under my account to run "screen sudo portmaster" so that if the build takes too long I can detach and leave it running, and I figured that running sudo inside screen rather than vice versa was slightly more secure as the screen binary itself runs as me. My sudoers file is the included sample one, but allows %wheel to run all commands without a password.
I've installed devel/ccache and sysutils/bsdadminscripts, and configured /etc/make.conf to use buildflags.conf. I've also put in the block to use ccache for kernel/world compiles.
However, I'm unsure where I should be setting the PATH, CCACHE_DIR and CCACHE_PATH environment variables; am I best to set these in /root/.cshrc or should I set them in my own ~/.profile? Everywhere seems to suggest /root/.cshrc but if I set them there and do "sudo echo $PATH" it doesn't appear. Also, if I'm using buildflags.conf to handle CCACHE, do I still need to change the PATH in order to include the ccache "masqueraded" compilers before everything else or is this already handled for me by buildflags.conf?
Thanks!
I currently use sudo with portmaster to install ports. I have "portmaster" aliased under my account to run "screen sudo portmaster" so that if the build takes too long I can detach and leave it running, and I figured that running sudo inside screen rather than vice versa was slightly more secure as the screen binary itself runs as me. My sudoers file is the included sample one, but allows %wheel to run all commands without a password.
I've installed devel/ccache and sysutils/bsdadminscripts, and configured /etc/make.conf to use buildflags.conf. I've also put in the block to use ccache for kernel/world compiles.
However, I'm unsure where I should be setting the PATH, CCACHE_DIR and CCACHE_PATH environment variables; am I best to set these in /root/.cshrc or should I set them in my own ~/.profile? Everywhere seems to suggest /root/.cshrc but if I set them there and do "sudo echo $PATH" it doesn't appear. Also, if I'm using buildflags.conf to handle CCACHE, do I still need to change the PATH in order to include the ccache "masqueraded" compilers before everything else or is this already handled for me by buildflags.conf?
Thanks!