<div dir="auto"><div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Aug 3, 2026, 8:47 AM Jim via SlackBuilds-users <<a href="mailto:slackbuilds-users@slackbuilds.org">slackbuilds-users@slackbuilds.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, Aug  3, 2026 at 14:31 (+0200), Franzen via SlackBuilds-users wrote:<br>
<br>
>> chmod -R u+w,go-w,a+rX-st .<br>
<br>
> Here is an explanation why my proposal might not be that good. It's 13 years<br>
> old, maybe chmod has changed to the better:<br>
> <a href="https://unix.stackexchange.com/a/79874" rel="noreferrer noreferrer" target="_blank">https://unix.stackexchange.com/a/79874</a><br>
<br>
Since I already timed the other replacement options, here is that one as<br>
well (again, on qt6-6.8.3-x86_64-2_SBo.tgz, where    find . | wc -l<br>
outputs 18282, which is a lot of files and directories).<br>
<br>
$ time find .  ! -type l -a \( -perm /111 -a ! -perm 755 -a -exec chmod -f<br>
755 {} + \) -o \( ! -perm /111 -a ! -perm 644 -a -exec chmod -f 644 {} + \)<br>
0.03s user 0.06s system 99% cpu 0.086 total<br>
<br>
$ time find .  ! -type l -a \( -perm /111 -a -exec chmod -f 755 {} + \) -o<br>
\( ! -perm /111 -a -exec chmod -f 644 {} + \)<br>
0.07s user 0.22s system 99% cpu 0.285 total<br>
<br>
$ time chmod -R u+w,go-w,a+rX-st .    <br>
0.03s user 0.21s system 99% cpu 0.244 total<br>
<br>
Certainly the one with ! -perm is the fastest.  Whether brevity is worth<br>
two tenths of a second or not is probably a personal opinion.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I'm not sure why you're seeing such a minimal amount of time with the original command. That's always been a bottleneck when compiling SlackBuilds between the visible extraction and the visible compilation. It just sits there on big builds while find does its thing silently.</div><div dir="auto"><br></div><div dir="auto">I just tested my Kodi SlackBuild by adding time in front of the find command and that took:</div><div dir="auto"><br></div><div dir="auto"><div dir="auto">real    0m15.603s</div><div dir="auto">user    0m10.402s</div><div dir="auto">sys     0m5.215s</div><div dir="auto"><br></div><div dir="auto">The chmod was incredibly fast: </div><div dir="auto"><br></div><div dir="auto"><div dir="auto">real    0m0.076s</div><div dir="auto">user    0m0.003s</div><div dir="auto">sys     0m0.073s</div><div dir="auto"><br></div><div dir="auto">As was the new find: </div><div dir="auto"><br></div><div dir="auto"><div dir="auto">real    0m0.079s</div><div dir="auto">user    0m0.016s</div><div dir="auto">sys     0m0.062s</div><div dir="auto"><br></div><div dir="auto">The amount of files in the Kodi source is around 33% smaller compared to your qt6 example:</div><div dir="auto"><br></div><div dir="auto"><div dir="auto">jbhansen@craven-moorhead:~/sbo-git/multimedia/kodi$ find /tmp/SBo/xbmc-21.3-Omega/ | wc -l</div><div dir="auto">11697</div><div dir="auto"><br></div><div dir="auto">This is all done on a Ryzen 9 5950X with a 2TB Samsung 980 Pro NVMe and 64GB of RAM.</div><div dir="auto"><br></div><div dir="auto">Jeremy</div></div></div></div></div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>