[MacPorts] #70938: macports-base does change the default users home path in some cases

MacPorts noreply at macports.org
Thu Sep 26 16:19:58 UTC 2024


#70938: macports-base does change the default users home path in some cases
----------------------------+---------------------
  Reporter:  christophecvr  |      Owner:  (none)
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.10.99
Resolution:                 |   Keywords:
      Port:                 |
----------------------------+---------------------
Changes (by christophecvr):

 * version:   => 2.10.99


Old description:

> 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.

New description:

 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

--

-- 
Ticket URL: <https://trac.macports.org/ticket/70938#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list