Re: Installing without root privileges: what about /Applications/MacPorts?

2008-09-16 Thread Michael Williams

On 14 Sep 2008, at 01:27, Ryan Schmidt wrote:
 I think I've successfully installed MacPorts without root privileges.
 I installed from source using:

 ./configure --prefix=$HOME/.macports --with-install-user=$USER -- 
 with-
 install-group=staff --with-tclpackage=~/Library/Tcl

 I also prefer to use MacPorts without root when possible... I use  
 this:

 PREFIX=/mp
 ./configure \
 --enable-readline \
 --prefix=$PREFIX \
 --with-tclpackage=$PREFIX/Library/Tcl \
 --with-install-user=rschmidt \
 --with-install-group=admin

 (this was based on my interpretation of 
 https://trac.macports.org/wiki/gsoc08-privileges)

 As Bryan said, the gsoc08-privileges branch has not yet been merged  
 into trunk, so if you're building from trunk, you're not getting any  
 of that new code yet.

Thanks. I realize most of the features discussed on that page are not  
in trunk. But it was useful for me to extract information about what I  
could do with trunk right now, especially the configure options you  
mention.

 However, I've run into trouble with a couple of packages. These  
 errors
 boil down to:

 Error: Target org.macports.activate returned: can't create  
 directory /
 Applications/MacPorts: permission denied

 I change the ownership of /Applications/MacPorts to my user.

Unfortunately I can't do that. I would like to install into ~/ 
Applications/MacPorts.

 Is there any way to change this directory to, say, ~/Applications/
 MacPorts or is it hard-coded?

 In MacPorts 1.6.0 and earlier it is hardcoded. In trunk, there is a  
 new configure parameter --with-applications-dir and a new  
 macports.conf option applications_dir.

I'll respond to this in my reply to Bryan's message, but thanks very  
much for your help!

-- Mike

___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Installing without root privileges: what about /Applications/MacPorts?

2008-09-16 Thread Michael Williams

On 12 Sep 2008, at 22:07, Bryan Blackburn wrote:
 Is there any way to change this directory to, say, ~/Applications/
 MacPorts or is it hard-coded?

 Which source-based install are you using?  Running off trunk allows  
 you to
 change the location of the Applications and Frameworks install  
 locations by
 editing etc/macports/macports.conf and setting:

 applications_dir/path/to/Applications
 frameworks_dir  /path/to/Library/Frameworks

 If you're running from 1.6 source, then you can't do this...Also  
 note that
 the GSoC stuff you were looking into is on its own branch still, not  
 on the
 trunk.

Forgive my ignorance, but if I installed from 1.6 source and then ran  
port -v selfupdate am I still running from 1.6 or am I on trunk?

How does the --with-applications-dir ./configure option that Ryan  
mentions interest with this macports.conf option? Do I need both?

-- Mike
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Installing without root privileges: what about /Applications/MacPorts?

2008-09-16 Thread Bryan Blackburn
On Tue, Sep 16, 2008 at 03:39:08PM +0100, Michael Williams said:
 
[...]
 
 Forgive my ignorance, but if I installed from 1.6 source and then ran  
 port -v selfupdate am I still running from 1.6 or am I on trunk?
 

selfupdate will keep you on the official release which is 1.6.0 still; it
will not switch you over to a trunk-based build.  The only way to run off of
trunk is to checkout the source and build it [1].

 How does the --with-applications-dir ./configure option that Ryan  
 mentions interest with this macports.conf option? Do I need both?

The configure option will set what gets put into macports.conf (unless you
already have a macports.conf, then it will not be overwritten).  With a
fresh install, either method works but if you forget to give configure that
option, you can simply update macports.conf and the end result is the same.

Bryan

[1] - http://trac.macports.org/wiki/howto/RunningTrunk


 
 -- Mike
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Installing without root privileges: what about /Applications/MacPorts?

2008-09-13 Thread Ryan Schmidt
On Sep 12, 2008, at 9:13 AM, Michael Williams wrote:

 I think I've successfully installed MacPorts without root privileges.
 I installed from source using:

 ./configure --prefix=$HOME/.macports --with-install-user=$USER --with-
 install-group=staff --with-tclpackage=~/Library/Tcl

I also prefer to use MacPorts without root when possible... I use this:

PREFIX=/mp
./configure \
--enable-readline \
--prefix=$PREFIX \
--with-tclpackage=$PREFIX/Library/Tcl \
--with-install-user=rschmidt \
--with-install-group=admin


 (this was based on my interpretation of https://trac.macports.org/ 
 wiki/gsoc08-privileges)

As Bryan said, the gsoc08-privileges branch has not yet been merged  
into trunk, so if you're building from trunk, you're not getting any  
of that new code yet.


 However, I've run into trouble with a couple of packages. These errors
 boil down to:

 Error: Target org.macports.activate returned: can't create  
 directory /
 Applications/MacPorts: permission denied

I change the ownership of /Applications/MacPorts to my user.


 Is there any way to change this directory to, say, ~/Applications/
 MacPorts or is it hard-coded?

In MacPorts 1.6.0 and earlier it is hardcoded. In trunk, there is a  
new configure parameter --with-applications-dir and a new  
macports.conf option applications_dir. Many ports do not yet respect  
this parameter. If file tickets for any such port you find so we can  
correct the problem.

Actually I set applications_dir to /Applications/mp, just to make it  
different from the default so I can more easily spot ports that don't  
use the setting. That's also one of the reasons I don't use /opt/ 
local as my MacPorts prefix.


 p.s. if anyone knows mutt and MacPorts well, I have another package
 problem which I think it mutt-related rather than MacPorts, but
 comments welcome: http://groups.google.com/group/mailing.unix.mutt- 
 users/browse_thread/thread/49b65590cb94eea5#


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Installing without root privileges: what about /Applications/MacPorts?

2008-09-12 Thread Bryan Blackburn
On Fri, Sep 12, 2008 at 03:13:36PM +0100, Michael Williams said:
 Hi,
 
 I think I've successfully installed MacPorts without root privileges.  
 I installed from source using:
 
 ./configure --prefix=$HOME/.macports --with-install-user=$USER --with- 
 install-group=staff --with-tclpackage=~/Library/Tcl
 
 (this was based on my interpretation of 
 https://trac.macports.org/wiki/gsoc08-privileges) 
 .
 
 However, I've run into trouble with a couple of packages. These errors  
 boil down to:
 
 Error: Target org.macports.activate returned: can't create directory / 
 Applications/MacPorts: permission denied
 
 Is there any way to change this directory to, say, ~/Applications/ 
 MacPorts or is it hard-coded?
 

Which source-based install are you using?  Running off trunk allows you to
change the location of the Applications and Frameworks install locations by
editing etc/macports/macports.conf and setting:

applications_dir/path/to/Applications
frameworks_dir  /path/to/Library/Frameworks

If you're running from 1.6 source, then you can't do this...Also note that
the GSoC stuff you were looking into is on its own branch still, not on the
trunk.

 p.s. if anyone knows mutt and MacPorts well, I have another package  
 problem which I think it mutt-related rather than MacPorts, but  
 comments welcome: 
 http://groups.google.com/group/mailing.unix.mutt-users/browse_thread/thread/49b65590cb94eea5#
 

It looks like mutt would need to have its install routines patched a bit to
maybe ignore an error when the chgrp fails, though that may be a bad thing
to do do the base mutt, so perhaps only in MacPorts.

Bryan


 Thanks,
 -- Mike Williams
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users