Re: bsd.prefs.mk OpenIndiana detection

Jonathan Perkin <[email protected]> Mon, 13 Apr 2026 09:10:58 +0100
Newsgroups gmane.os.netbsd.devel.packages
Message-ID <[email protected]>
* On 2026-04-13 at 09:01 BST, Tobias Nygren wrote:

>I'd like to commit this patch to be able to fix some PLIST issues
>on OpenIndiana. pkgsrc currently detects OpenIndiana as Solaris
>instead of Illumos which breaks some packages like lang/go.

Parsing /etc/release always feels incredibly fragile to me, but I guess 
these distributions don't provide a better way to identify themselves, 
so the approach is probably ok for now.

However this section should really have the ability to cache 
NATIVE_OS_VARIANT and NATIVE_LOWER_VARIANT_VERSION if you don't want 
performance to suck, especially for bulk scans.

-- 
Jonathan Perkin                    pkgsrc.smartos.org
Open Source Complete Cloud   www.tritondatacenter.com