summaryrefslogtreecommitdiff
path: root/wrappers
AgeCommit message (Collapse)AuthorFilesLines
2009-02-16dpkg-checkbuilddeps: Fixes + output format changeLauri Aarnio1-37/+58
- 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'
2009-02-16Bugfix: dpkg-checkbuilddeps wrapper: switching to tools mode is trickyLauri Aarnio1-9/+18
2009-02-10texi2html wrapper: Disabled by default, can be enabled when neededLauri Aarnio1-1/+17
- compatibility with the old texi2html versions can be enabled by setting SBOX_WRAPPER_TEXI2HTML_EMULATE_OLD_VERSION=yes
2009-02-10dpkg-checkbuilddeps: Completely new, stricter algorithm for deps.checksLauri Aarnio1-39/+186
- 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
2009-02-10dpkg-checkbuilddeps: Bugfix.Lauri Aarnio1-2/+1
- dpkg-checkbuilddeps failed to process alternatives correctly.
2009-02-10Simplified support for SBOX_REDIRECT_IGNORE environment variableLauri Aarnio1-0/+2
"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).
2009-01-20Removed debug marker function from preload library.Mika Westerberg1-1/+1
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>
2009-01-20Added missing space after sb2 gdb prompt.Mika Westerberg1-1/+1
Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
2009-01-20SB2's Configuration & Initialization Redesign: part 2: Gcc toochain configLauri Aarnio1-8/+17
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!
2008-12-11Added wrapper for "ldd"Lauri Aarnio1-0/+85
- 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
2008-12-07"dpkg-checkbuilddeps" wrapper does not disable mapping anymoreLauri Aarnio1-17/+13
- 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.
2008-12-07sb2 command: added option "-c": Makes a clone of target_rootLauri Aarnio1-2/+1
- Can be used when session is created.
2008-12-07Added support for debugging x86 binaries under emulation mode.Mika Westerberg1-0/+84
2008-11-02Yet another fix to gcc tools exec preprocesing - something was still missing ↵Lauri Aarnio1-0/+22
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)
2008-11-02Wrapped /sbin/ldconfig in emulation mode.Lauri Aarnio1-1/+1
2008-11-02Fixed dpkg-checkbuilddeps wrapper: Added gcc dependency check - checks if a ↵Lauri Aarnio1-0/+73
cross compiler has been installed and if that compiler fulfills gcc (or gcc-<version>) requirements.
2008-10-23sb2-check-pkg-mappings: added options -u (update) and -f (force to up-to-date)Lauri Aarnio1-24/+1
2008-10-19Enable +x for two more scriptsLauri Leukkunen2-0/+0
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2008-10-18Moved devel.utility wrappers from "utils" to "wrappers" - installation ↵Lauri Aarnio5-0/+509
locations were also changed from .../sripts to .../wrappers