Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
|
|
- In some newer glibc versions, realpath() has been replaced by an
inline function which which calls __realpath_chk() instead of
realpath(). This commit adds a GATE function for that => realpath()
works again.
|
|
|
|
|
|
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
|
|
Something's actually gotten implemented.
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
|
|
Slight cleanup for 2.0 release
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
|
|
All changes in debian/ directory Lauri hasn't applied.
|
|
There are now default CPU transparency methods (qemu-$ARCH) for
non-x86 targets.
|
|
- sb2-upgrade-config needs to work also if sb2-init was executed without
the -m flag.
|
|
- "nomap" mode passes all paths, execs, etc. thru the logic in our
preload library, but does not map anything. This is mostly useful for
debugging SB2 itself, but can be used for benchmarking etc. also.
- Had to add a new option to sb2-init, otherwise "nomap" mode could not
be properly initialized on 64-bit intel hosts.
|
|
|
|
"sb2-init ARM arm-linux-gcc" does the expected:
simple mode, qemu-arm cputransp, tools from /
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
|
|
We want to get rid of the stupid -drop-ld-preload flag in qemu upstream.
Therefor mandatory for sb2 2.0. release :)
Only lightly tested but appears to work as expected.
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
|
|
- Both the C <-> Lua and the rule file interfaces were
changed by a previous patch ("l10n: message catalogs are
now mapped based on active exec policy"), but the
interface numbers were not changed, this commit fixes that
|
|
- Map /etc/perl* and /etc/python* just like /usr/lib/p...* are handled =
conditionally, depending on active exec policy
|
|
- Changed inpect_binary() to support 64-bit host binaries
that are exec'd from 32-bit binary.
- Initial shell is now invoked through host shell "trampoline" to
get into the valid sb2 shell.
- Corrected bug in sb2 that always generated ld_library_path_extras,
even when it wasn't needed.
Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
|
|
|
|
- Removed usage of native_app_message_catalog_prefix variable in
exec policy. There is no need for that anymore as we can find
out correct mappings using conditional rules.
- LOCPATH and NLSPATH are cleared always before exec so they don't
get inherited to child unless really needed.
- __SB2_REAL_BINARYNAME is not anymore needed but I left it there
in case there is some future needs for that.
Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
|
|
- reorganized some rules in the mapping modes and added a check to
utils/sb2, so that $SBOX_SESSION_DIR does not contain symlinks
|
|
- Mika Westerberg's last change to the "emulate" mode uses "next_chain"...
|
|
- Previously it was not possible to install, for example, package
osso-af-sb-startup because it tried to install file
/usr/bin/scratchbox-launcher.sh and other that were wrapped
with sb1 compatibility scripts (readonly).
- Now dpkg has its own rules chain that allows it to install packages
regardless of what we have wrapped.
Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
|
|
Some people compile and run stuff from /tmp.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
|
|
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
|
|
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
|
|
Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
|
|
|
|
- This functionality is similar than it was before (when -r switch) was
used.
Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
|
|
1) Part of rules were left out because of a bug
2) Now reverses conditional mapping rules, too (previously those were
not reversed at all)
There was even a "FIXME"-comment about this; the comment stated
"...This should be fixed, even if it is not a problem with our current
official mapping modes." This comment was valid once, but not anymore;
recent changes to the mapping modes practically require that we
have reverse rules also for conditional rules.
|
|
- When debian package resolvconf is installed it creates directory
/etc/resolvconf and makes /etc/resolv.conf symlink that points
there. Now paths under /etc/resolvconf come also from host.
Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
|
|
- don't create reverse mapping rules for programs that belong
to the cross-gcc toolchain, etc. This is needed because otherwise
"gcc" won't be able to find "cc1"; this is important once we have
a better reverse rule generator (=really soon)
|
|
- Check that tools_root exists and give an error message if it doesn't.
Previously, "sb2" just failed silently if that directory didn't exist.
|
|
- Relative paths are (again) mapped to relative paths whenever possible.
- SB2 used to be able to map to relative paths until the "fdpathdb" was
added (fdpathdb must get absolute mapping results). The previous solution
for relative results was disabled in mid-january, because it was clear that
some refactoring was needed to be able to use both the fdpathdb functionality
and relative mapping results.
- This commit now introduces a proper fix: Path mapping results are returned
in a structure, where an absolute and a relative result can co-exist.
- Also, the lower levels of path mapping logic (parts that are implemented
in C) were re-organized and cleaned; the code should be easier to follow
and more efficient now.
|
|
Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
|
|
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
|
|
- Now __SB2_BINARYNAME comes from the mapped interpreter name and
not from the name of the script as it was before.
|
|
|
|
- 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'
|
|
- added option "-C dir", which is like "-c" but makes it possible to use
non-standard source locations for the source rootstrap which will be
cloned.
|
|
|
|
- an exec policy can now define more than one rule to map the script
interpreter (previously only one rule was allowed)
- "devel" mode: Added yet another SB1 compatibility feature: Support
for mapping interpreters from /scratchbox/tools/bin to <tools_root>/usr/bin
- Interface version of the mapping engine <-> mapping rules interface
was incremented (this is the lua<->lua interface version, C<->lua interface
was not modified)
|
|
- a similar rule already exists in "emulate" and "devel" modes
|
|
|
|
- set exec_policy correctly for perl and python also when an incorrectly built
package wants to start them from /scratchbox/tools/bin. Hard dependencies
to the SB1 environment are not nice (but we are, aren't we? Because we are
trying to make all these compatibility rules, so that old badly behaving
packages could be build with SB2, too...)
|
|
|
|
|
|
Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
|
|
Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
|
|
- this rule already exists in the "emulate" mode
|