summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-06-09Merge remote branch 'origin/master'HEADmasterLauri Leukkunen4-14/+21
2009-06-08README: update QEMU repoFelipe Contreras1-1/+1
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2009-06-08Added a GATE for __realpath_chk(): Needed with newer versions of glibcLauri Aarnio2-1/+43
- 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.
2009-06-08"devel" mode: added a rule for "icu" (map /usr/share/icu to rootstrap)Lauri Aarnio1-0/+4
2009-06-08"devel" mode: Added a SB1 compatibility rule for /scratchbox/compilers/binLauri Aarnio1-0/+6
2009-04-01Update version to 2.02.02.0-maintenanceLauri Leukkunen1-1/+1
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2009-04-01Update TODOLauri Leukkunen1-1/+0
Something's actually gotten implemented. Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2009-04-01Update documentationLauri Leukkunen2-12/+20
Slight cleanup for 2.0 release Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2009-03-31Prepare packagin for releaseRiku Voipio4-7/+24
All changes in debian/ directory Lauri hasn't applied.
2009-03-31sb2-init "-c" option optionalLauri Aarnio1-7/+37
There are now default CPU transparency methods (qemu-$ARCH) for non-x86 targets.
2009-03-31Bugfig to sb2-upgrade-config: Check orig. mapping modeLauri Aarnio1-0/+6
- sb2-upgrade-config needs to work also if sb2-init was executed without the -m flag.
2009-03-31Added "nomap" mapping mode: SB2 can now be used to do native builds, too!Lauri Aarnio4-2/+85
- "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.
2009-03-30Bugfix: Added wrapper for __openat_2()Lauri Aarnio2-0/+13
2009-03-30Fix default sb2-init behaviourLauri Leukkunen2-2/+16
"sb2-init ARM arm-linux-gcc" does the expected: simple mode, qemu-arm cputransp, tools from / Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2009-03-30Prefer -U LD_PRELOAD over -drop-ld-preloadRiku Voipio1-7/+12
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>
2009-03-23Interface version numbers were incrementedLauri Aarnio9-11/+14
- 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
2009-03-23"devel" mode bugfix: More rules for perl & pythonLauri Aarnio1-0/+4
- Map /etc/perl* and /etc/python* just like /usr/lib/p...* are handled = conditionally, depending on active exec policy
2009-03-23x86_64 fix: now it is possible to run sb2 in 64-bit hostMika Westerberg2-104/+127
- 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>
2009-03-23Bugfix: reverse rule generator failed to process "dir" rules correctlyLauri Aarnio1-0/+3
2009-03-23l10n: message catalogs are now mapped based on active exec policyMika Westerberg8-165/+40
- 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>
2009-03-23Bugfix: Failed, if /tmp was symlink to /var/tmp (all mapping modes)Lauri Aarnio7-6/+20
- reorganized some rules in the mapping modes and added a check to utils/sb2, so that $SBOX_SESSION_DIR does not contain symlinks
2009-03-18Fix: Reverse rule generator works now also when next_chain != nilLauri Aarnio1-10/+16
- Mika Westerberg's last change to the "emulate" mode uses "next_chain"...
2009-03-18Now sb1-compat wrappers scripts are mapped to target_root for dpkg.Mika Westerberg1-0/+23
- 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>
2009-03-07simple-mapping: use host tmp dirFelipe Contreras1-8/+2
Some people compile and run stuff from /tmp. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2009-03-07mapping: maemo-specific stuff to 'maemo_simple'Felipe Contreras2-10/+126
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2009-03-07simple mapping: whitespace cleanupFelipe Contreras1-2/+0
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2009-03-07Bugfix: Mapped terminfo paths based on active exec policy.Mika Westerberg1-0/+20
Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
2009-03-07"devel" mode fix: "qmake" works now (mapped /usr/share/qt* to target_root)Lauri Aarnio1-0/+4
2009-03-07Bugfix: When reversed_cwd cannot be resolved, real_cwd is used instead.Mika Westerberg1-0/+11
- This functionality is similar than it was before (when -r switch) was used. Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
2009-03-07Two bugfixes to the reverse rule generator Lua scriptLauri Aarnio1-48/+116
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.
2009-03-07Bugfix: Corrected /etc/resolv.conf mappings in devel and emulate modes.Mika Westerberg2-3/+18
- 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>
2009-03-07"devel" mode bugfix: Don't reverse automatically generated /usr/bin/* rulesLauri Aarnio1-1/+2
- 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)
2009-03-07Bugfix: "sb2" script: check that tools_root existsLauri Aarnio1-0/+5
- 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.
2009-03-07Fixed mapping of relative paths.Lauri Aarnio9-358/+430
- 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.
2009-03-07Bugfix: Now original target name is used when searching libsb2.Mika Westerberg1-1/+12
Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
2009-02-20Up the version number for .32-rc seriesLauri Leukkunen1-1/+1
Signed-off-by: Lauri Leukkunen <lle@rahina.org>
2009-02-17Bugfix: __SB2_BINARYNAME was not correctly set with interpreted scripts.1.99.0.31Mika Westerberg1-0/+13
- Now __SB2_BINARYNAME comes from the mapped interpreter name and not from the name of the script as it was before.
2009-02-16Fix: added perl- and python library checking rules for sb2-check-pkg-mappingsLauri Aarnio1-0/+7
2009-02-16dpkg-checkbuilddeps: Fixes + output format changeLauri Aarnio2-68/+143
- 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-16"sb2" command: New option: Clone rootstrap from named directoryLauri Aarnio2-12/+38
- 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.
2009-02-16"sb2" command: New option can be used to set location of the session directoryLauri Aarnio2-7/+36
2009-02-16Script interpreter mapping: Added support for multiple mapping rulesLauri Aarnio7-31/+48
- 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)
2009-02-16"tools" mode: Added one Scratchbox1 compatibility ruleLauri Aarnio1-0/+9
- a similar rule already exists in "emulate" and "devel" modes
2009-02-16"devel" mode bugfix: exec_policy selection failed if tools_root was in homedir.Lauri Aarnio1-6/+11
2009-02-16"devel" mode fix: Added SB1 compat.rules for /scratchbox/tools/bin/{perl,python}Lauri Aarnio1-0/+15
- 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...)
2009-02-16Bugfix: dpkg-checkbuilddeps wrapper: switching to tools mode is trickyLauri Aarnio1-9/+18
2009-02-16"devel" and "emulate" modes: Added one Scratchbox1 compatibility ruleLauri Aarnio2-1/+13
2009-02-16Corrected few compilation warnings.Mika Westerberg1-0/+4
Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
2009-02-16Bugfix: Host perl/python libraries are mapped to host.Mika Westerberg1-0/+4
Signed-off-by: Lauri Aarnio <Lauri.Aarnio@iki.fi>
2009-02-16"tools" mode bugfix: Don't map the directory where sb2 was startedLauri Aarnio1-1/+13
- this rule already exists in the "emulate" mode