summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-26 11:41:31 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-27 09:42:06 +0000
commit68f3a571f422170ef0fcef0243cdb6fadc11fade (patch)
treeb21d9a5f1f9cd632f74567389bb34e3c62347e85
parentb503d35e7e56dc66447eb2bc83e3277862d328b9 (diff)
downloadpoky-68f3a571f422170ef0fcef0243cdb6fadc11fade.tar.gz
apt/package_mamager: Ensure WORKDIR is used for lists directory
The native sysroot should not be used as a store for the lists files since multiple images running at once would conflict over this. Instead redirect this to WORKDIR. This means some extra directories need to be created. Also create apt.conf.d to silence some warnings. (From OE-Core rev: dc4abfc8f99c08e0c1ac9d098ce17838d0eda028) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oe/package_manager.py2
-rw-r--r--meta/recipes-devtools/apt/files/apt.conf2
2 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 824af00f54..764ab72d2c 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -1624,6 +1624,8 @@ class DpkgPM(PackageManager):
1624 bb.utils.remove(self.apt_conf_dir, True) 1624 bb.utils.remove(self.apt_conf_dir, True)
1625 1625
1626 bb.utils.mkdirhier(self.apt_conf_dir) 1626 bb.utils.mkdirhier(self.apt_conf_dir)
1627 bb.utils.mkdirhier(self.apt_conf_dir + "/lists/partial/")
1628 bb.utils.mkdirhier(self.apt_conf_dir + "/apt.conf.d/")
1627 1629
1628 arch_list = [] 1630 arch_list = []
1629 for arch in archs.split(): 1631 for arch in archs.split():
diff --git a/meta/recipes-devtools/apt/files/apt.conf b/meta/recipes-devtools/apt/files/apt.conf
index 50586501b0..03351356bc 100644
--- a/meta/recipes-devtools/apt/files/apt.conf
+++ b/meta/recipes-devtools/apt/files/apt.conf
@@ -2,7 +2,7 @@ Dir "${STAGING_DIR_NATIVE}/"
2{ 2{
3 State "var/lib/apt/" 3 State "var/lib/apt/"
4 { 4 {
5 Lists "lists/"; 5 Lists "#APTCONF#/lists/";
6 status "#ROOTFS#/var/lib/dpkg/status"; 6 status "#ROOTFS#/var/lib/dpkg/status";
7 }; 7 };
8 Cache "var/cache/apt/" 8 Cache "var/cache/apt/"