SmartOS albeit powerful, makes some easy things like figuring out a "version" of SmartOS very difficult and confusing. To someone like Basho who makes packages for SmartOS, it is enough to drive us (me) insane trying to figure out how to label the packages.
The problem lies in trying to define the version at all. Is the version you care about listed in
uname -a? How about a file in
/etc/ that tells you? The answer to bolth of those questions is "no".
uname -v gives you a string like
joyent_20130125T031721Z The only file in
/etc/ that comes close is
pkgsrc_version, but that is only sometimes available on the system. The real answer is a combination of the Global Zone snapshot version and the pkgsrc version in the guest zones.
So how do I label my packages for SmartOS?
uname -v example above,
joyent_20130125T031721Z describes the global zone, and has some influence on how apps run, but not enough to determine which package will work on which system. Plus I d