Problem
I have an application that checks the name, release and/or version of the operating system using uname before it will install or run.
Is there a way that I can change the values returned by
uname to allow my OpenServer 5, UnixWare 7 or SCO Unix
application to install/run on OpenServer 6.0.0? Solution
There are two ways of change the name, release and version values returned by OpenServer 6.0.0.
1) The SCOMPAT environment variable.Setting this variable influences the uname(C) values returned by the user's shell. The syntax is:
SCOMPAT=release:version[:sysname[:Xrelease]]For example, before running an install script for a UnixWare application you could type:
SCOMPAT=5:7.1.4:UnixWare
export SCOMPATThis will result in uname returning the following values:
# uname -v
7.1.4
# uname -r
5
# uname -s
UnixWare2) The chsysinfo(ADM) command.The chsysinfo(ADM) command differs from the SCOMPAT Environment variable in the following ways:
- In addition to uname(C), chsysinfo(ADM) also influences
the values that are returned by confstr(S), sysinfo(S) and
uname(S).
- chsysinfo(ADM) affects these return values for all users
on the system whereas SCOMPAT only affects the shell of
the user that the environment variable is set for.Because chsysinfo(ADM) results in a system wide change, SCO recommend that it only be used for the duration of an installation and that you change back to the default using:
chsysinfo defaultonce the installation has been completed. See also
TA126120 "The chsysinfo(ADM) osr5 command option does not
set the release correctly."