[MacPorts] #52381: neomutt @20160916_2: chgrp fails during non-root destroot

MacPorts noreply at macports.org
Mon Sep 26 21:08:05 CEST 2016


#52381: neomutt @20160916_2: chgrp fails during non-root destroot
----------------------+---------------------------------
  Reporter:  jhi@…    |      Owner:  leonardo@…
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.3.4
Resolution:           |   Keywords:  haspatch maintainer
      Port:  neomutt  |
----------------------+---------------------------------

Comment (by cal@…):

 Oh, OK, that explains it. Non-root copies of MacPorts should be installed
 by following https://guide.macports.org/#installing.macports.source and
 passing `--with-no-root-privileges` switch to `./configure`, which will
 automatically set `install.user` to your user name.

 Note that running MacPorts without root privileges gives build systems
 unrestricted access to your home directory and your files. Running with
 `sudo` as root makes MacPorts drop privileges for builds to an
 unprivileged `macports` user.

 I think we can keep the variant, but add a code block that makes it the
 default if `install.user` is not `root`:
 {{{
 if {${install.user} ne "root"} {
   default_variants +homespool
 }
 }}}

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


More information about the macports-tickets mailing list