Opened 8 weeks ago

Last modified 8 weeks ago

#70938 new defect

macports-base does change the default users home path in some cases — at Version 1

Reported by: christophecvr (christophecvr) Owned by:
Priority: Normal Milestone:
Component: base Version: 2.10.99
Keywords: Cc:
Port:

Description (last modified by christophecvr (christophecvr))

I was creating a extra macports location in /opt. with command :

export PATH=/bin:/sbin:/usr/bin:/usr/sbin
MP_PREFIX=/opt/geditb
./configure --prefix=$MP_PREFIX --with-applications-dir=/Applications/Geditb --with-macports-user=christophe --without-startupitems --with-shared-directory --enable-readline
make
sudo make install

after installation sudden browser crashed (firefox) and other programs. Could not do anything anymore.
Restarted my mac and it opened with initial setup screen.

In finder I could not find my paths anymore woow ! (yes a little panic)

At the end I found the issue :
My home path was changed from :

/Users/<me>

to :

/opt/geditb/var/macports/home

This caused by the use of arg:
--with-macports-user=christophe

This arg is supposed to just change the user macports into another for the non root build phases.
according to configure manual.

  --with-no-root-privileges
                          specify that MacPorts should be installed in your
                          home directory
  --with-install-user=USER
                          specify user ownership of installed files
  --with-install-group=GROUP
                          specify group ownership of installed files
  --with-macports-user=USER
                          specify user to drop privileges to, if possible,
                          during compiles, etc.

Well this was a very unpleasant surprise I can tell.

Forgot to add: macos 10.15.7 Xcode 11.5 CommandLineTools 11.5 MacBookPro Mid 2010 intel i7 x86_64 arch

Change History (1)

comment:1 Changed 8 weeks ago by christophecvr (christophecvr)

Description: modified (diff)
Version: 2.10.99
Note: See TracTickets for help on using tickets.