<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/295abcbea7986e8889170193a9cb1dc6d739516c">https://github.com/macports/macports-base/commit/295abcbea7986e8889170193a9cb1dc6d739516c</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 295abcbea create_workpath: use 6 Xs for mkdtemp portability
</span>295abcbea is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 295abcbea7986e8889170193a9cb1dc6d739516c
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Sat May 24 10:43:14 2025 +1000
<span style='display:block; white-space:pre;color:#404040;'> create_workpath: use 6 Xs for mkdtemp portability
</span>---
src/port1.0/portutil.tcl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port1.0/portutil.tcl b/src/port1.0/portutil.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 17b1cd192..4d9ad27c8 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port1.0/portutil.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port1.0/portutil.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1738,8 +1738,8 @@ proc portutil::create_workpath {} {
</span> # Create and link build dir if link or link target are missing or wrong type.
if {[catch {file type $subbuildpath} ftype] || $ftype eq "directory" || ![file isdirectory $subbuildpath]} {
# This doesn't need to be unguessable, just unique (and short). Four
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # random characters is enough for ~1.7M build dirs.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set shortpath [mkdtemp [file dirname $portbuildpath]/[string range $subport 0 3]XXXX]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # random characters is enough for ~1.7M build dirs. Posix calls for 6.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set shortpath [mkdtemp [file dirname $portbuildpath]/[string range $subport 0 3]XXXXXX]
</span> if {$ftype eq "directory"} {
delete $shortpath
file rename $subbuildpath $shortpath
</pre><pre style='margin:0'>
</pre>