[MacPorts] #17181: mktemp tcl procedure needs a way to make a temporary directories (not just temporary files)
#17181: mktemp tcl procedure needs a way to make a temporary directories (not just temporary files) -------------------------------------+-------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts base enhancements Component: base | Version: 1.6.0 Keywords: | Port: -------------------------------------+-------------------------------------- In MacPorts we have a `mktemp` tcl command but it only makes temporary files ([browser:trunk/base/src/pextlib1.0/Pextlib.c Pextlib.c], added in r1045). Sometimes we need to make temporary directories. For example, in the code that handles the "`use_dmg yes`" portfile directive ([browser:trunk/base/src/port1.0/portextract.tcl portextract.tcl], added in r36708), I used "`exec mktemp -d`" because the tcl "`mktemp`" didn't do this. There's even existing code in `port submit` that uses the tcl `mktemp` as if it creates a temporary directory, which can't possibly work ([browser:trunk/base/src/port1.0/portsubmit.tcl portsubmit.tcl], added in r7272). -- Ticket URL: <http://trac.macports.org/ticket/17181> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17181: mktemp tcl procedure needs a way to make a temporary directories (not just temporary files) --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts base enhancements Component: base | Version: 1.6.0 Resolution: | Keywords: Port: | --------------------------------------+------------------------------------- Comment(by blb@macports.org): We can add a mkdtemp that calls C's mkdtemp() function, just like mktemp calls C's mktemp(). I'm thinking a good candidate for 1.8.0. -- Ticket URL: <http://trac.macports.org/ticket/17181#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17181: mktemp tcl procedure needs a way to make a temporary directories (not just temporary files) --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.6.0 Resolution: | Keywords: Port: | --------------------------------------+------------------------------------- Changes (by raimue@macports.org): * milestone: MacPorts base enhancements => MacPorts 1.8.0 -- Ticket URL: <http://trac.macports.org/ticket/17181#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17181: mktemp tcl procedure needs a way to make a temporary directories (not just temporary files) -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.6.0 Keywords: | Port: -------------------------------------+-------------------------------------- Comment(by perry@…): Added mkdtemp in r43902. -- Ticket URL: <http://trac.macports.org/ticket/17181#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17181: mktemp tcl procedure needs a way to make a temporary directories (not just temporary files) --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.6.0 Resolution: fixed | Keywords: Port: | --------------------------------------+------------------------------------- Changes (by perry@…): * status: new => closed * resolution: => fixed Comment: Closing. -- Ticket URL: <http://trac.macports.org/ticket/17181#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17181: mktemp tcl procedure needs a way to make a temporary directories (not just temporary files) --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: MacPorts 1.8.0 Component: base | Version: 1.6.0 Resolution: fixed | Keywords: Port: | --------------------------------------+------------------------------------- Comment(by ryandesign@…): The ChangeLog was updated for this change in r44943. -- Ticket URL: <http://trac.macports.org/ticket/17181#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17181: mktemp tcl procedure needs a way to make a temporary directories (not just temporary files) --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: MacPorts 1.7.1 Component: base | Version: 1.6.0 Resolution: fixed | Keywords: Port: | --------------------------------------+------------------------------------- Changes (by blb@…): * milestone: MacPorts 1.8.0 => MacPorts 1.7.1 Comment: Merged to 1.7 branch in r48233. -- Ticket URL: <http://trac.macports.org/ticket/17181#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts