> THere is none and even the uname(1) fields are
> unreliable if
> you compare different platforms.
Yes, that is a problem I ran into seven years ago when I was trying to design a
central NFS server that would store software for different operating systems
and different architectures (IRIX, IRIX64, HP-UX 10.20 hppa, HP-UX 11.x ia64
and hppa, Solaris 7 / 8 i86pc and sparc...)
Basically there was no way to reconcile and consistently use `uname` to
configure the AutoMounter maps to cover all the OSes on all platforms and all
revisions correctly.
> This is something that makes it hard to write a
> platform independent
> makefilesystem like the "Schily makefiles".
I came up with a solution, although I must write that I'm not particularly
proud of it:
Arch=`pkgparam ${PKGINST} -v ARCH`
the above extracts the target system ARCH and derives a predetermined "mapping"
value (sparc -> sparcv9, i386 -> amd64, ppc -> ppc64) using a `case "$Arch" in
...` statement.
If someone sees any problems with this approach, or knows or can think of a
better way, now's the time to come forth.
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
[email protected]