[OE-core] [PATCH 1/1] package_manager.py: fix rootfs failure with multilib enabled
Aníbal Limón
anibal.limon at linux.intel.com
Thu Jan 29 17:43:33 UTC 2015
Hi Chen,
I tested the patch and is ok can contain (when merge),
Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
Also the same issue is presented in dizzy and the patch needs to be
backported.
Best regards,
alimon
On 28/01/15 20:22, Chen Qi wrote:
> With the current code, if we use debian package backend and enable
> multilib support, the do_rootfs process would always fail with error
> messages like below.
>
> E: Unable to locate package packagegroup-core-boot
>
> This patch fixes the above problem.
>
> Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
> ---
> meta/lib/oe/package_manager.py | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
> index 69100f1..6f49c69 100644
> --- a/meta/lib/oe/package_manager.py
> +++ b/meta/lib/oe/package_manager.py
> @@ -1723,9 +1723,12 @@ class DpkgPM(PackageManager):
> with open(self.d.expand("${STAGING_ETCDIR_NATIVE}/apt/apt.conf.sample")) as apt_conf_sample:
> for line in apt_conf_sample.read().split("\n"):
> match_arch = re.match(" Architecture \".*\";$", line)
> + architectures = ""
> if match_arch:
> for base_arch in base_arch_list:
> - apt_conf.write(" Architecture \"%s\";\n" % base_arch)
> + architectures += "\"%s\";" % base_arch
> + apt_conf.write(" Architectures {%s};\n" % architectures);
> + apt_conf.write(" Architecture \"%s\";\n" % base_archs)
> else:
> line = re.sub("#ROOTFS#", self.target_rootfs, line)
> line = re.sub("#APTCONF#", self.apt_conf_dir, line)
More information about the Openembedded-core
mailing list