From 7abeed74c8007eefc0f4f99375c8946b120c0c23 Mon Sep 17 00:00:00 2001 From: Lauri Aarnio Date: Thu, 12 Feb 2009 17:37:59 +0200 Subject: "devel" and "emulate" modes: Added one Scratchbox1 compatibility rule --- lua_scripts/pathmaps/devel/00_default.lua | 7 +++++++ lua_scripts/pathmaps/emulate/00_default.lua | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'lua_scripts') diff --git a/lua_scripts/pathmaps/devel/00_default.lua b/lua_scripts/pathmaps/devel/00_default.lua index c6a0d1c..f8dbaf3 100644 --- a/lua_scripts/pathmaps/devel/00_default.lua +++ b/lua_scripts/pathmaps/devel/00_default.lua @@ -553,6 +553,13 @@ devel_mode_rules_scratchbox1 = { log_level = "warning", readonly = true, virtual_path = true}, + -- "policy-rc.d" checks if scratchbox-version exists, + -- to detect if it is running inside scratchbox.. + {prefix = "/scratchbox/etc/scratchbox-version", + replace_by = "/usr/share/scratchbox2/version", + log_level = "warning", + readonly = true, virtual_path = true}, + {prefix = "/scratchbox/tools/autotools/automake-1.7/share/automake-1.7", replace_by = tools .. "/usr/share/automake-1.7", log_level = "warning", diff --git a/lua_scripts/pathmaps/emulate/00_default.lua b/lua_scripts/pathmaps/emulate/00_default.lua index d7630a5..17c50d8 100644 --- a/lua_scripts/pathmaps/emulate/00_default.lua +++ b/lua_scripts/pathmaps/emulate/00_default.lua @@ -70,7 +70,12 @@ mapall_chain = { { path = "/etc/osso-af-init/dbus-systembus.sh", map_to = sb1_compat_dir, readonly = target_root_is_readonly}, - + -- "policy-rc.d" checks if scratchbox-version exists, + -- to detect if it is running inside scratchbox.. + {prefix = "/scratchbox/etc/scratchbox-version", + replace_by = "/usr/share/scratchbox2/version", + readonly = true, virtual_path = true}, + -- gdb wants to have access to our dynamic linker also. {path = "/usr/lib/libsb2/ld-2.5.so", use_orig_path = true, readonly = true}, -- cgit v1.2.3