[MacPorts] #13766: make install fails as non-root even with
different --prefix and --with-tclpackage (chown/chgrp error with
${prefix}/etc/macports)
MacPorts
trac at macosforge.org
Mon Dec 31 15:59:44 PST 2007
#13766: make install fails as non-root even with different --prefix and --with-
tclpackage (chown/chgrp error with ${prefix}/etc/macports)
-------------------------------------+--------------------------------------
Reporter: ryandesign at macports.org | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: new
Priority: Normal | Milestone: MacPorts base bugs
Component: base | Version: 1.6.0
Keywords: |
-------------------------------------+--------------------------------------
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
$
}}}
--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13766>
MacPorts </projects/macports>
Ports system for Mac OS
More information about the macports-tickets
mailing list