Skip to content

R-alpha: Re: R-beta: multiple binary types

2 messages · Kurt Hornik, Friedrich Leisch

#
Is OSTYPE defined by POSIX?  I tried bash, ksh and csh on my Debian
GNU/Linux system.  Whereas all have it, we have

	bash, ksh:	Linux
	tcsh, csh:	linux

which is unfortunate but one could live with that (lowercasing ...).
The real problem is that the OS Linux exists on several hardware
platforms (ix86, alpha, solaris, m68k, ...), so one would really need

	${OSTYPE}-${HOSTTYPE}

Again not knowing what POSIX says, here are the results:

	bash, ksh:	i386
	tcsh, csh:	i386-linux

OH NO!

***

Note also that whereas the suggestion is perfect for binaries, it is in
a way `orthogonal' to rearranging the R tree into

	<library>/<section>/<type>

structure ... hmm, or should we have <platform> dirs for exec and objs?

-k
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#
IMHO we should definetely have platform-dirs for everything that's
possibly platform-dependent ... resulting in something like

	<library>/<section>/<type>

e.g. for R code and

	<library>/<section>/<type>/<platform>

e.g. for exec and dynload-objects.

for exec there's a problem though, as some exec's are
shell/perl/whatever-scripts and *should* work on any platform
...  

.f
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-