Skip to contentSkip to conversation

package_deb: Map TARGET_ARCH x86_64 to DPKG_ARCH amd64

PATCH In review Ricardo Ribalda Delgado 2 participants 2 messages Mar 11, 2014 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 package_deb: Map TARGET_ARCH x86_64 to DPKG_ARCH amd64

Without this patch packages are generated as x86_64. Which cannot be installed by default.

root@qt5022:~# dpkg -i alsa-utils_1.0.27.2-r0_x86-64.deb
dpkg: error processing alsa-utils_1.0.27.2-r0_x86-64.deb (--install):
 package architecture (x86-64) does not match system (amd64)
Errors were encountered while processing:
 alsa-utils_1.0.27.2-r0_x86-64.deb
---
 meta/classes/package_deb.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes/package_deb.bbclass +2 -0
index 6a8e080..b391e5c 100644
@@ -430,6 +430,8 @@ python () {
     darch = d.getVar('DPKG_ARCH', True)
     if darch in ["x86", "i486", "i586", "i686", "pentium"]:
          d.setVar('DPKG_ARCH', 'i386')
+    elif darch == "x86_64":
+         d.setVar('DPKG_ARCH', 'amd64')
     elif darch == "arm":
          d.setVar('DPKG_ARCH', 'armel')
 }

--
1.9.0

#2 lore raw

Hi Ricardo,

Quoted 2 lines · On Tuesday 11 March 2014 07:59:13 Ricardo Ribalda Delgado wrote:

Without this patch packages are generated as x86_64. Which cannot be installed by default.

Thanks for this, however as per the "Where to Send Patches" section of the README file in the Poky repository, this needs to be sent to the OE-Core mailing list:

http://lists.openembedded.org/mailman/listinfo/openembedded-core

Could you please re-send it there?

Thanks,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre