diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-03-09 18:49:16 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-03-10 09:47:55 +0100 |
commit | 8c98f247e1ad948f9252cb0bb7d19cce4e35f213 (patch) | |
tree | e67c11415656c3d6c3e008028657facf8c2068f6 /scripts/lib/ptxd_make_world_install.sh | |
parent | a1918d8e730902f8b678ffb58235a0ce03e39214 (diff) | |
download | ptxdist-8c98f247e1ad948f9252cb0bb7d19cce4e35f213.tar.gz ptxdist-8c98f247e1ad948f9252cb0bb7d19cce4e35f213.tar.xz |
[ptxd_make_] provide and use variable for the fakeroot environment
This patch introduces the variable "pkg_fake_env" which holds the
fakeroot environment.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_install.sh')
-rw-r--r-- | scripts/lib/ptxd_make_world_install.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/lib/ptxd_make_world_install.sh b/scripts/lib/ptxd_make_world_install.sh index 9df4fbacd..ff49ed5c1 100644 --- a/scripts/lib/ptxd_make_world_install.sh +++ b/scripts/lib/ptxd_make_world_install.sh @@ -15,9 +15,11 @@ # FIXME: kick ${pkg_install_env} # ptxd_make_world_install_pkg() { - if [ -z "$fakeroot}" ]; then - fakeargs="-s ${ptx_state_dir}/${pkg_label}.fakeroot" + local -a fakeargs + if [ -z "${fakeroot}" ]; then + fakeargs=( "-s" "${pkg_fake_env}" ) fi + "${echo:-echo}" \ "${pkg_path}" \ "${pkg_env}" \ @@ -27,7 +29,7 @@ ptxd_make_world_install_pkg() { -C "${pkg_build_dir}" \ "${pkg_install_opt}" \ -j1 \ - | "${fakeroot:-fakeroot}" $fakeargs -- + | "${fakeroot:-fakeroot}" "${fakeargs[@]}" -- check_pipe_status } export -f ptxd_make_world_install_pkg |