Age | Commit message (Collapse) | Author | Files | Lines |
|
- output format is now not entirely unlike what the real dpkg-checkbuilddeps
prints, more verbose output can be enabled by setting
SBOX_CHECKBUILDDEPS_VERBOSE='y'
|
|
|
|
- compatibility with the old texi2html versions can be enabled
by setting SBOX_WRAPPER_TEXI2HTML_EMULATE_OLD_VERSION=yes
|
|
- A new, stricter algorithm for dependency checks was implemented
in perl. the old system (a shell script) still exists.
- dpkg-checkbuilddeps now checks version requirements from tools, too.
- sb2-check-pkg-mappings checks if a package should be installed
to both target_root and tools_root, and creates a list of such
packages (to be used by dpkg-checkbuilddeps during deps-checking)
- The old algorithm can be enabled by setting SBOX_DOUBLECHECK_DEPS
environment variable; the new algorithm is always active.
- some enhancements were needed to sb2-show, to make all this possible
|
|
- dpkg-checkbuilddeps failed to process alternatives correctly.
|
|
"SBOX_REDIRECT_IGNORE" is a feature from the old scratchbox 1: It can
be used to disable redirection of various paths during exec. This commit
adds a simplified, mostly compatible support to SB2. Since we don't have
a similar "redirector" as what the old SB1 had, this feature is implemented
by some special mapping rules in the devel mode and is only available
for two programs: : redirection of /usr/bin/perl and /usr/bin/python can
be disabled by this. For example, setting
SBOX_REDIRECT_IGNORE=/usr/bin/perl:/usr/bin/python
will force these two programs to be mapped to the rootstrap (while the
default is still to map them to tools_root)
Also included: new conditional action 'if_redirect_ignore_is_active = "path"'
makes all this possible (added to the rule execution engine in mapping.lua).
|
|
Debugging on x86 is now implemented by setting breakpoint inside
dynamic linker (function: _dl_debug_state). When the breakpoints
fires, we can be sure that the debugged binary is mapped in so
user can put further breakpoints after that.
Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
|
|
Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
|
|
Summary:
* Now it is possible to have several toolchains available simultaneously:
The primary gcc will be available as "gcc", while components of the secondary
toolchain(s) are available as "gcc-X.Y", etc.
* sb2-init now calls a new script, sb2-config-gcc-toolchain to set up
toolchain configurations
* Toolchain configuration variables were moved to new config files, two
files/toolchain
Some details:
- "sb2-upgrade-config" automatically upgrades existing config files
- "sb2-config-gcc-toolchain" was created by separating all target-gcc-related
actions from "sb2-init"; this was not as straightforward as it sounds.
All toolchain-related configuration variables had to be moved from
the old-style config file (sb2.config) to the new files, and then every
place where the variables were needed had to be checked. This turned out
to be more like a separation of siamese twins...but the result is that
it is possible to have more than one toolchain configured, finally!
|
|
- The new "ldd" wrapper uses sb2-show to detect type of the binary, and then
executes either ldd from target_root or simulates the host version
- a new command "binarytype" was added to sb2-show
|
|
- wrappers/dpkg-checkbuilddeps used to disable mapping temporarily while
checking host packages. An unwanted side-effect of that was that some
debian package management tools were used from the host, and not from the
installed tools collection (tools_root).
- Fixed that by switching temporarily to the "tools" mode. That way all
required tools and the package db are used from tools_root, automatically.
- "tools" mode can now be hijacked to use /var/lib/dpkg/status from any
location (needed, when checking the temporary pkg db that is created by sb2)
- "tools" mode: don't map /etc/passwd
- "devel" mode now automatically makes "tools" available as an alternative mode
when "sb2" is initializing a new session.
|
|
- Can be used when session is created.
|
|
|
|
from my previous patch: - prefix "/sb2/" was not included in the list of allowed paths for gcc tools, and this caused host-* tools to fail with the worst possible way: No messages & OK exit status (since the files were just symlinks to /bin/true). Fixed that, and introduced a simple wrapper for host-* tools, which at least prints a short explanation (although exit status is still "OK" for compatibility)
|
|
|
|
cross compiler has been installed and if that compiler fulfills gcc (or gcc-<version>) requirements.
|
|
|
|
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
|
|
locations were also changed from .../sripts to .../wrappers
|