From 3c539be84cbd4d1a5f07ebef22944f9807831874 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 16 Aug 2010 16:40:52 +0100 Subject: package_*.bbclass: Always run these tasks under fakeroot Signed-off-by: Richard Purdie --- meta/classes/package_deb.bbclass | 1 + meta/classes/package_ipk.bbclass | 1 + meta/classes/package_rpm.bbclass | 1 + meta/classes/package_tar.bbclass | 1 + 4 files changed, 4 insertions(+) (limited to 'meta') diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index d923ad1073..a06896257c 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass @@ -268,6 +268,7 @@ python () { deps.append('dpkg-native:do_populate_sysroot') deps.append('virtual/fakeroot-native:do_populate_sysroot') bb.data.setVarFlag('do_package_write_deb', 'depends', " ".join(deps), d) + bb.data.setVarFlag('do_package_write_ipk', 'fakeroot', "1", d) } python do_package_write_deb () { diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass index 2a93bd1a7c..dfb7b98b85 100644 --- a/meta/classes/package_ipk.bbclass +++ b/meta/classes/package_ipk.bbclass @@ -316,6 +316,7 @@ python () { deps.append('opkg-utils-native:do_populate_sysroot') deps.append('virtual/fakeroot-native:do_populate_sysroot') bb.data.setVarFlag('do_package_write_ipk', 'depends', " ".join(deps), d) + bb.data.setVarFlag('do_package_write_ipk', 'fakeroot', "1", d) } python do_package_write_ipk () { diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 273a7d44ed..d069182a3f 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass @@ -206,6 +206,7 @@ python () { deps.append('rpm-native:do_populate_sysroot') deps.append('virtual/fakeroot-native:do_populate_sysroot') bb.data.setVarFlag('do_package_write_rpm', 'depends', " ".join(deps), d) + bb.data.setVarFlag('do_package_write_ipk', 'fakeroot', "1", d) } SSTATETASKS += "do_package_write_rpm" diff --git a/meta/classes/package_tar.bbclass b/meta/classes/package_tar.bbclass index ea72d4d531..e546eb7fd8 100644 --- a/meta/classes/package_tar.bbclass +++ b/meta/classes/package_tar.bbclass @@ -96,6 +96,7 @@ python () { deps.append('tar-native:do_populate_sysroot') deps.append('virtual/fakeroot-native:do_populate_sysroot') bb.data.setVarFlag('do_package_write_tar', 'depends', " ".join(deps), d) + bb.data.setVarFlag('do_package_write_ipk', 'fakeroot', "1", d) } -- cgit v1.2.3