New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13766 (closed defect: invalid)

Opened 5 years ago

Last modified 3 years ago

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

Reported by: ryandesign@… 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

comment:1 Changed 5 years ago by afb@…

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

comment:2 Changed 5 years ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to invalid

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

comment:3 Changed 4 years ago by toby@…

  • Milestone changed from MacPorts base bugs to MacPorts Future

Milestone MacPorts base bugs deleted

comment:4 Changed 3 years ago by jmr@…

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