Opened 12 years ago

Closed 5 years ago

#33299 closed defect (fixed)

--with-macports-user also sets the group

Reported by: thomas.c.jansen@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.0.3
Keywords: Cc:
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Installing MacPorts from source will fails with the missing user "macports" (it would be great if this would be explained in the install documentation), but this can be overwritten with the "--with-macports-user" switch for "configure".

However, using "--with-macports-user=root" will result in the following error message when trying to "sudo make install":

   ===> making install in doc
   /usr/bin/install -c -d -o root -g admin -m 0755 /opt/local
   /usr/bin/install -c -d -o root -g admin -m 0755 /opt/local/etc/macports
   < prefix.mtree /usr/sbin/mtree -U -e -p /opt/local > /dev/null
   < base.mtree /usr/sbin/mtree -U -e -p /opt/local > /dev/null
   mtree: line 16: unknown group root
   make[1]: *** [install] Error 1
   make: *** [install] Error 1

Looking into "./doc/base.mtree" reveals that "root" is also used as the group:

   Preferences uname=root gname=root mode=755

Changing the "gname" to "admin" solves the problem.

Change History (2)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Component: portsbase
Description: modified (diff)

comment:2 Changed 5 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

AFAICT this was only ever a problem in trunk, not any released version, and was fixed in r90010.

Note: See TracTickets for help on using tickets.