[oe-commits] Stefan Eichenberger : Write DPKG_ARCH to /etc/apt/apt.conf
git at git.openembedded.org
git at git.openembedded.org
Tue Feb 12 13:28:44 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: 81b8c36641994dc7a4e025f2d43f9ce57d04b6f0
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=81b8c36641994dc7a4e025f2d43f9ce57d04b6f0
Author: Stefan Eichenberger <Stefan.Eichenberger at netmodule.com>
Date: Fri Feb 8 15:30:13 2013 +0100
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 at netmodule.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/recipes-devtools/apt/apt_0.7.14.bb | 5 +++++
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 667b700..7f1572b 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}
+}
More information about the Openembedded-commits
mailing list