----- Исходное сообщение -----<br>От: Ramshankar <ramshankar.venkataraman@oracle.com><br>Дата: Wednesday, July 1, 2015 11:16<br>Тема: Re: [vbox-dev] Patch to support installation on non-Sun/Oracle Solaris hosts<br>Кому (To): Jim Klimov <jim@cos.ru>, jim@cos.ru<br>Копия (Cc): vbox-dev@virtualbox.org<br><br>> Hi Jim,<br>> <br>> This might seem like a silly question, but if the output of <br>> 'uname <br>> -something' differs for these distros, can't we just use that <br>> instead of <br>> parsing kernel package FMRIs?  After all, the whole point <br>> of parsing it <br>> is to provide accurate build/release based drivers but since all <br>> these <br>> Solaris variants are basically snv_151 level compatible it <br>> doesn't <br>> really matter we get accurate major/minor numbers.<br>> <br>> It would also make the script a lot simpler and the code path <br>> would be <br>> quite separate.<br>> <br>> Regards,<br>> Ram.<br>> <br><br><br><br>Hi Ram,<br><br><br>That's what I researched originally. The problem is, these "uname" identifiers are not quite constant (and in my own build of the OS/Net gate I can define anything I want). My patch did include variants for unames reported by OmniOS, OI "dev" and OI "Hipster", per these examples:<br><br><br>omnios# SunOS HOSTNAME 5.11 omnios-c4ba593 i86pc i386 i86pc<br>oi-dev# SunOS HOSTNAME 5.11 oi_151a8 i86pc i386 i86pc<br>oi-hip# SunOS HOSTNAME 5.11 illumos-1d3f896 i86pc i386 i86pc Solaris<br><br>For the moment, they do report "5.11" as the kernel level (but so did SXCE for most of its history - and before it had crossbow for example, as well). Kernel versions are tagged as "distro_version", "distro-commitid" or "illumos-commitid" in just these few examples. Again, a custom-kernel builder could mark it to be anything else.<br><br>There is likely no possible universal automagic solution for this (hence the fallback to touchable files to satisfy everybody who does not fit our patterns), just support for the most-likely situations to require nothing else than a "pkgadd" and do what is appropriate.<br><br><br>Jim Klimov<br>