Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#13766 closed defect (invalid)

make install fails as non-root even with different --prefix and --with-tclpackage (chown/chgrp error with ${prefix}/etc/macports)

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.6.0
Keywords: Cc:
Port:

Description

You should be able to configure, make and install MacPorts into a prefix under your user's control, and not have to use root to install it. But this doesn't work because the Makefile in the config directory is still trying to change the owner of ${prefix}/etc/macports to root:

$ PATH=/usr/bin:/usr/sbin:/bin:/sbin ./configure \
--prefix=/tmp/macports \
--with-tclpackage=/tmp/macports/share/macports/Tcl
[snip]
$ make
[snip]
$ make install
[snip]
===> making install in config
/usr/bin/install -c -d -o root -g admin -m 0755 /tmp/macports/etc/macports
install: chown 0:80 /tmp/macports/etc/macports: Operation not permitted
/usr/bin/install -c -o root -g admin -m 644 mp_version /tmp/macports/etc/macports
install: /tmp/macports/etc/macports/mp_version: chown/chgrp: Operation not permitted
make[1]: *** [install] Error 71
make: *** [install] Error 1
$

Change History (4)

comment:1 Changed 17 years ago by afb@…

can you use the --with-install-user option to configure ?

comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Sorry, yes, adding --with-install-user=me --with-install-group=me works fine. I forgot that was necessary.

comment:3 Changed 16 years ago by tobypeterson

Milestone: MacPorts base bugsMacPorts Future

Milestone MacPorts base bugs deleted

comment:4 Changed 15 years ago by jmroot (Joshua Root)

Milestone: MacPorts Future
Note: See TracTickets for help on using tickets.