[MacPorts] #72663: xinit requires root privileges to install port, it doesn't need them.

MacPorts noreply at macports.org
Fri Jul 4 13:23:32 UTC 2025


#72663: xinit requires root privileges to install port, it doesn't need them.
----------------------------+----------------------
  Reporter:  nickpapadonis  |      Owner:  jeremyhu
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:                 |   Keywords:
      Port:  xinit          |
----------------------------+----------------------

Comment (by nickpapadonis):

 I added xinit-nonroot.patch which is the workaround to allow xinit to run
 as non-root.  It was a configuration option that disables the root
 installation.  I added a jpg screenshot of a system with fresh build of
 macports-ports master (took like a day!) and Xwindows running non-root.  I
 created an non-admin account on the system and performed the installation
 without using sudo.

 cd macports-base
 ./configure --with-no-root-privileges --prefix=/Volumes/export/opt
 --without-startupitems --no-create --no-recursion

 I will bring up that xinit seemed to either fail or not create a 'xinit'
 binary during 'ports install xorg xinit' and the port application seemed
 to silently ignore the error.   I noticed this and had to manually go back
 and 'uninstall' then 'install' it.

 Looking for guidance in the fix.  If --with-no-root-privileges is
 supplied, the configuration option in the diff needs to be applied and the
 activation section set to false.

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


More information about the macports-tickets mailing list