Re: Wouldn't it be better to make sure a MacPorts installation always stays within /opt/local?

2014-02-17 Thread Rainer Müller
On 2014-02-16 22:23, mk-macpo...@techno.ms wrote: > There is still one big problem with all of this, which is that a ton of > daemons and agents might be running as root or as another user for a given > MacPorts installation. It's not only the daemons running, but also the symlinks in the direct

Re: Wouldn't it be better to make sure a MacPorts installation always stays within /opt/local?

2014-02-16 Thread Joshua Root
On 2014-2-17 15:07 , Ryan Schmidt wrote: > > On Feb 16, 2014, at 14:29, Sean Mehta wrote: > >> To make a parallel installation for testing, I compile from source with >> something like: >> >> $ ./configure --prefix=$MP_PREFIX >> --with-applications-dir=$MP_PREFIX/Applications \

Re: Wouldn't it be better to make sure a MacPorts installation always stays within /opt/local?

2014-02-16 Thread Ryan Schmidt
On Feb 16, 2014, at 14:29, Sean Mehta wrote: > To make a parallel installation for testing, I compile from source with > something like: > > $ ./configure --prefix=$MP_PREFIX > --with-applications-dir=$MP_PREFIX/Applications \ > --with-tclpackage=$MP_PREFIX/Lib

Re: Wouldn't it be better to make sure a MacPorts installation always stays within /opt/local?

2014-02-16 Thread MK-MacPorts
> At that point, it might take as long as a reboot depending on your build: but > you should achieve the same outcome. I guess you’re right. :) ___ macports-dev mailing list macports-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo

Re: Wouldn't it be better to make sure a MacPorts installation always stays within /opt/local?

2014-02-16 Thread Jeremy Lavergne
Eh, then prior to switching symlinks you ought to port unload all installed packages and then deactivate them, then switch and install and load all those packages. At that point, it might take as long as a reboot depending on your build: but you should achieve the same outcome. On Feb 16, 2014

Re: Wouldn't it be better to make sure a MacPorts installation always stays within /opt/local?

2014-02-16 Thread MK-MacPorts
On 16 Feb 2014, at 22:25 , Jeremy Lavergne wrote: > You could reboot after each switch: anything that’s no longer linked into > /opt/local won’t load, and everything else will launch the appropriate > version. Yes, that’s possible, but to "M$ Windows"-like! ;-)

Re: Wouldn't it be better to make sure a MacPorts installation always stays within /opt/local?

2014-02-16 Thread Jeremy Lavergne
You could reboot after each switch: anything that’s no longer linked into /opt/local won’t load, and everything else will launch the appropriate version. On Feb 16, 2014, at 16:23, mk-macpo...@techno.ms wrote: > There is still one big problem with all of this, which is that a ton of > daemons a

Re: Wouldn't it be better to make sure a MacPorts installation always stays within /opt/local?

2014-02-16 Thread MK-MacPorts
There is still one big problem with all of this, which is that a ton of daemons and agents might be running as root or as another user for a given MacPorts installation. In case I want to swap in another installation, say a debug installation, I would have to make sure that all these services w

Re: Wouldn't it be better to make sure a MacPorts installation always stays within /opt/local?

2014-02-16 Thread MK-MacPorts
On 16 Feb 2014, at 21:46 , Jeremy Lavergne wrote: > But I am assuming macports can handle being inside a symlink since I recall > it can operate across drives. Thanks, Jeremy. That seems to be a good approach. Greets, Marko ___ macports-dev mailing l

Re: Wouldn't it be better to make sure a MacPorts installation always stays within /opt/local?

2014-02-16 Thread Jeremy Lavergne
You might consider linking different directories to /opt/local for your various parallel installs. You’d similarly link other directories you need as well. The whole operation could be part of a bash function or alias to replace all the links. But I am assuming macports can handle being inside

Re: Wouldn't it be better to make sure a MacPorts installation always stays within /opt/local?

2014-02-16 Thread MK-MacPorts
Thanks, Sean! On 16 Feb 2014, at 21:29 , Sean Mehta wrote: > $ ./configure --prefix=$MP_PREFIX > --with-applications-dir=$MP_PREFIX/Applications \ > --with-tclpackage=$MP_PREFIX/Library/Tcl I knew that this trick would work, because I used that in the past with m

Re: Wouldn't it be better to make sure a MacPorts installation always stays within /opt/local?

2014-02-16 Thread Clemens Lang
Hey, > That doesn't mean that a rogue port couldn't install something outside > of $MP_PREFIX, but I've never noticed anything installed outside of > $MP_PREFIX with the ports I've installed. There are some ports that deliberately install files outside $MP_PREFIX, but to my knowledge those are o

Re: Wouldn't it be better to make sure a MacPorts installation always stays within /opt/local?

2014-02-16 Thread Sean Mehta
To make a parallel installation for testing, I compile from source with something like: $ ./configure --prefix=$MP_PREFIX --with-applications-dir=$MP_PREFIX/Applications \ --with-tclpackage=$MP_PREFIX/Library/Tcl $ make $ sudo make install w

Wouldn't it be better to make sure a MacPorts installation always stays within /opt/local?

2014-02-16 Thread MK-MacPorts
I just wanted to set up a 2nd parallel MacPorts install - as I used to have it before moving to Mavericks… Now I realise that it is probably not a good idea to have a setup like that after all. Some applications install themselves into /Applications and have settings in /Library… Assuming I h