[MacPorts] #13458: Lint and Livecheck targets should not require root access
#13458: Lint and Livecheck targets should not require root access ---------------------------------+------------------------------------------ Reporter: rhwood@macports.org | Owner: macports-dev@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: MacPorts base bugs Component: base | Version: 1.6.0 Keywords: lint livecheck | ---------------------------------+------------------------------------------ The commands '''port lint foo''' and '''port livecheck foo''' should not require write access at the root level to anything. Perhaps we should distinguish between commands that make changes that should survive the port operation and those that should not survive the port operation (The results of the '''fetch, extract, patch, configure, build, destroot, archive, install, activate, etc...''' commands need to be maintained after port has finished, but this is not true for '''lint''' and '''livecheck''') -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13458> MacPorts </projects/macports> Ports system for Mac OS
#13458: Lint and Livecheck targets should not require root access ----------------------------------+----------------------------------------- Reporter: rhwood@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: MacPorts base bugs Component: base | Version: 1.6.0 Resolution: | Keywords: lint livecheck ----------------------------------+----------------------------------------- Comment (by afb@macports.org): They do have a target_runtype of "always", if that is usable somehow... ? -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13458#comment:1> MacPorts </projects/macports> Ports system for Mac OS
#13458: Lint and Livecheck targets should not require root access ----------------------------------+----------------------------------------- Reporter: rhwood@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: MacPorts base bugs Component: base | Version: 1.6.0 Resolution: | Keywords: lint livecheck ----------------------------------+----------------------------------------- Comment (by wsiegrist@apple.com): The problem with lint at least seems to be the need to write to the state file which is in the build area and requires root privileges to write to. These sort of operations dont affect the state of the port so the file shouldnt be written to, IMO. Sorry if this is already obvious to the devs but I wanted to comment here since I ran into the issue and my ticket was marked a dup of this one. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13458#comment:2> MacPorts </projects/macports> Ports system for Mac OS
#13458: Lint and Livecheck targets should not require root access ----------------------------------+----------------------------------------- Reporter: rhwood@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: MacPorts base bugs Component: base | Version: 1.6.0 Resolution: | Keywords: lint livecheck ----------------------------------+----------------------------------------- Comment (by raimue@macports.org): It needs {{{ target_state ${org.macports.foo} no }}} for every target which is meant to be run without writing to the state file. I tried to make this possible, but one of the remaining issues is that livecheck tries to write to `${workpath}/livecheck.TMP`. Where should livecheck write else? For example `/tmp`? Tcl does not seem to provide any access to the UNIX syscall mktemp(3), which provides some unique name for a temporary file usually. With the attached patch it will work if livecheck writes to some other place. At the moment it fails with an `Permission denied` error (after r34288). Please review. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13458#comment:3> MacPorts </projects/macports> Ports system for Mac OS
#13458: Lint and Livecheck targets should not require root access ----------------------------------+----------------------------------------- Reporter: rhwood@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: MacPorts base bugs Component: base | Version: 1.6.0 Resolution: | Keywords: lint livecheck ----------------------------------+----------------------------------------- Comment (by afb@macports.org): Looks good to me, added patch as r34513. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13458#comment:4> MacPorts </projects/macports> Ports system for Mac OS
#13458: Lint and Livecheck targets should not require root access ----------------------------------+----------------------------------------- Reporter: rhwood@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: closed Priority: Normal | Milestone: MacPorts base bugs Component: base | Version: 1.6.0 Resolution: fixed | Keywords: lint livecheck ----------------------------------+----------------------------------------- Changes (by raimue@macports.org): * status: new => closed * resolution: => fixed Comment: Use /tmp for livecheck in r34515. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13458#comment:5> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts