[MacPorts] #13458: Lint and Livecheck targets should not require root access

MacPorts trac at macosforge.org
Wed Feb 20 19:42:00 PST 2008


#13458: Lint and Livecheck targets should not require root access
----------------------------------+-----------------------------------------
  Reporter:  rhwood at macports.org  |       Owner:  macports-tickets at 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 at 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


More information about the macports-tickets mailing list