FS#40946 - [devtools] ignore setarch errors or use setarch only for arches that it supports

Attached to Project: Arch Linux
Opened by Sergej Pupykin (sergej) - Monday, 23 June 2014, 12:01 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 01 August 2017, 00:31 GMT
Task Type Feature Request
Category Arch Projects
Status Closed
Assigned To Pierre Schmitz (Pierre)
Dave Reisner (falconindy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Suggested feature (or bug fix) will allow to use qemu-static for cross-compiling packages.

3 files affected:
- arch-nspawn
- archbuild
- makechrootpkg

Steps to reproduce:
- install qemu-static (https://aur.archlinux.org/packages/qemu-static/)
- create proper configs for devtools
- /usr/share/devtools/makepkg-armv7h.conf
- /usr/share/devtools/pacman-arm_extra.conf
- do
echo ':arm2:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm-static:' > /proc/sys/fs/binfmt_misc/register
[root@pupykin ~]# echo ':arm2:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm-static:' > /proc/sys/fs/binfmt_misc/register
- create symlink arm_extra-armv7h-build -> archbuild
- try to build with arm_extra-armv7h-build

Actually it also needs copying qemu-arm-static binary into build chroot, but it is another feature.

This great qemu feature allows to build arm packages on x86 using huge RAM and many cores.

See also:
- https://wiki.debian.org/QemuUserEmulation
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Tuesday, 01 August 2017, 00:31 GMT
Reason for closing:  Implemented
Additional comments about closing:  commit 5b9c06d275dd1a2dca09514e39f853bd9c57be3a introduces -s to avoid using setarch

Loading...