* On 2024-06-23 at 13:21 BST, Jason Bacon wrote:
+.if !defined(CLTOOLS_VERSION) +CLTOOLS_VERSION!= pkgutil --pkg-info=com.apple.pkg.CLTools_Executables | awk '$$1 == "version:" { print $2 }' +.endif
This isn't accurate, on my host it returns the same as you, but I do not use this, I use Xcode installed under /Applications which is a completely different version.
I would do it based on CC_VERSION, which needs some work for clang. Ideally I'd like to see it be the same as OPSYS_VERSION where we can perform numeric comparisons rather than string matching.
-- Jonathan Perkin - mnx.io - pkgsrc.smartos.org Open Source Complete Cloud www.tritondatacenter.com