
This is a list of Scratchbox specific environment variables that can be set
by the user.  Some of them are already set in /scratchbox/etc/profile.


SBOX_REDIRECT_FROM_DIRS
SBOX_REDIRECT_TO_DIRS
	colon-separated list of directories to be used as the
	sources/destinations of binary redirection

SBOX_REDIRECT_BINARIES
	comma-separated list of <source>:<target> pairs which specify
	explicit binary redirection rules (for example
	"/usr/bin/make:/scratchbox/tools/bin/make,/bin/cat:/host_usr/bin/dog")

SBOX_REDIRECT_IGNORE
	colon-separated list of binaries which should not be redirected

SBOX_REDIRECT_LOG
	specifies the filename where each binary redirection will be logged;
	logging will be disabled if this is not set

SBOX_UNAME_SYSNAME
SBOX_UNAME_NODENAME
SBOX_UNAME_RELEASE
SBOX_UNAME_VERSION
SBOX_UNAME_MACHINE
	override an uname field; see uname(1) or uname(2) manpage

SBOX_DISABLE_CPUTRANSPARENCY
	"yes" or "no" (CPU-transparency is enabled by default)

SBOX_CPUTRANSPARENCY_LOG
	specifies the filename where each CPU-transparency invocation will be
        logged; logging will be disabled if this is not set

SBOX_CPUTRANSPARENCY_VERBOSE
	if enabled, a notice is printed to stderr when execution jumps to
	target system; "yes" or "no"

SBOX_CPUTRANSPARENCY_NOWARN
	do not issue a warning when trying to execute a binary that is under
	/tmp with sbrsh; "yes" or "no"

SBOX_CPUTRANSPARENCY_METHOD
	overrides the SBOX_CPUTRANSPARENCY_METHOD field in scratchbox.config,
	which contains the path to the actual target binary interpreter;
	good choices are "sbrsh", "qemu-arm", "qemu-ppc", etc.

SBOX_CPUTRANSPARENCY_FILTER
	path to an executable (that is compiled for the target) that gets run
	whenever a command needs to be run on the target; the executable
	receives the command and the command's arguments as its arguments; this
	can be a shell script if a shell is compiled for the target system

SBOX_CPUTRANSPARENCY_EXTRA_ARGS
	a space separated list of extra arguments to be passed for cpu
	transparency method

SBOX_SCRATCHBOX_CONFIG
	overrides the location of /targets/links/scratchbox.config, used by the
	compiler wrapper

SBOX_DEFAULT_GCC_PREFIX
	overrides the SBOX_DEFAULT_GCC_PREFIX field in scratchbox.config,
	used by the compiler wrapper

SBOX_VERBOSE_WRAPPER
	set to non-null value to get verbose output from gcc wrapper

SBOX_LD_FAKE_NATIVE
	if set, the linker wrapper uses ld_fake_native instead of ld_orig

SBOX_FAKEROOT_MODE
	either sysv or tcp, defaults to sysv on newer foreign toolchains on
	non-sbrsh targets and tcp otherwise.

SBOX_USE_CCACHE
	should the compiler wrapper automatically use ccache? "yes" or "no"

SBOX_EXTRA_ARGS
SBOX_EXTRA_CROSS_ARGS
SBOX_EXTRA_HOST_ARGS
	passes additional parameters to all programs executed via the compiler
	wrapper (see below for a list of affected programs); the CROSS/HOST
	variants affect only the cross or the host toolchain (gcc or host-gcc)

SBOX_BLOCK_ARGS
SBOX_BLOCK_CROSS_ARGS
SBOX_BLOCK_HOST_ARGS
	suppresses selected parameters of all programs executed via the
	compiler wrapper (see below for a list of affected programs)

[...]_COMPILER_ARGS
	affects only compilers; overrides the more general form

[...]_CC_ARGS
[...]_CXX_ARGS
[...]_CPP_ARGS
[...]_LD_ARGS
	affects only specific compiler, preprocessor or linker; overrides the
	more general forms

[...]_ADDR2LINE_ARGS
[...]_AR_ARGS
[...]_AS_ARGS
[...]_CXXFILT_ARGS
[...]_GCCBUG_ARGS
[...]_GCOV_ARGS
[...]_NM_ARGS
[...]_OBJCOPY_ARGS
[...]_OBJDUMP_ARGS
[...]_RANLIB_ARGS
[...]_READELF_ARGS
[...]_SIZE_ARGS
[...]_STRINGS_ARGS
[...]_STRIP_ARGS
	affects only a specific utility; overrides the more general form

SBOX_BLOCK_<program>
	blocks the execution of a program completely; the value can be either
	"yes" (normal return), "no" or a return code that will be used when
	blocking the program; <program> is one of the programs used with the
	*_ARGS forms (except "COMPILER")

SBOX_ENV_<var>
	sets <var> to the environments of commands executed with sbrsh and
	qemu; "(UNSET)" removes <var> from the environment

SBOX_RLIMIT_<key>
	sets a resource limit before executing commands with CPU-transparency;
	see sbrsh/README or setrlimit(2) manpage for details

SBOX_DEFAULT_AUTOMAKE
	Specifies which automake version the 'automake' command points
	to.  Available versions are "1.4", "1.7" and "1.8" (default).

SBOX_DEFAULT_AUTOCONF
	Specifies which autoconf version the 'autoconf' command points
	to. Available versions are "2.13" and "2.59" (you can also
	specify "2.50" which is an alias for 2.59). The default is to
	automatically guess the appropriate version, so you should not
	set this variable under normal circumstances.

SBOX_DEFAULT_FLEX
	Specifies which flex version the 'flex' command points to. Available
	versions are "2.5.4" and "2.5.31" (default). "old" is an alias for
	"2.5.4".

SBOX_READLINK_HACK
	if set, readlink will be wrapped so that if the "/proc/PID/exe"
	symlink of a CPU-transparency method process is accessed, its first
	foreign binary executable commandline argument is returned instead.
	only works if set to "yes", this is also default.

SBOX_EXE_HACK
	if set, files with .exe extension are searched also when executing files.

SBOX_PRELOAD
	A comma separated field setting the host and target preload libraries.

SBALIEN_LIBRARY_PATH
	if set, a list of directories used by alien wrapper to search for libraries.
	Similar to LD_LIBRARY_PATH, but for alien tools.
