summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorStefan Eichenberger <Stefan.Eichenberger@netmodule.com>2013-02-08 15:30:13 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-12 13:22:13 +0000
commit81b8c36641994dc7a4e025f2d43f9ce57d04b6f0 (patch)
treea139063dd9ce029305bcb8929c519aac64aea567 /meta/recipes-devtools
parente1d42db8749b0b965ddc6cfba4f3b93ee96ed4f4 (diff)
downloadopenembedded-core-81b8c36641994dc7a4e025f2d43f9ce57d04b6f0.tar.gz
openembedded-core-81b8c36641994dc7a4e025f2d43f9ce57d04b6f0.tar.bz2
openembedded-core-81b8c36641994dc7a4e025f2d43f9ce57d04b6f0.zip
Write DPKG_ARCH to /etc/apt/apt.conf
Apt does not recognize the architecture if a different one is set with DPKG_ARCH (e.g. armel). This patch writes the correct architecture to /etc/apt/apt.conf. Signed-off-by: Stefan Eichenberger <stefan.eichenberger@netmodule.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/apt/apt_0.7.14.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/apt/apt_0.7.14.bb b/meta/recipes-devtools/apt/apt_0.7.14.bb
index 667b700064..7f1572bcd8 100644
--- a/meta/recipes-devtools/apt/apt_0.7.14.bb
+++ b/meta/recipes-devtools/apt/apt_0.7.14.bb
@@ -16,3 +16,8 @@ require apt-package.inc
FILES_${PN} += "${bindir}/apt-key"
apt-manpages += "doc/apt-key.8"
+do_install_append() {
+ #Write the correct apt-architecture to apt.conf
+ APT_CONF=${D}/etc/apt/apt.conf
+ echo 'APT::Architecture "${DPKG_ARCH}";' > ${APT_CONF}
+}