please build a static version of qemu-arm 0.11.x in a separate binary deb

Bug #401782 reported by Oliver Grawert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qemu (Debian)
Fix Released
Unknown
qemu-kvm (Ubuntu)
Fix Released
Wishlist
Dustin Kirkland 

Bug Description

Binary package hint: qemu

qemu 0.11 is supposed to have eabi support in qemu-arm. to easily use a an armel chroot under x86 similar to the variant described in https://wiki.ubuntu.com/ARM/BuildEABIChroot the following is necessary:

1) register qemu-arm(-static) with binfmt misc properly with update-binfmts (see below)
2) build a static version of qemu-arm so the binary can be copied into an arm chroot

it would be nice to have a configure call similar to:

./configure --prefix=/usr --target-list=arm-linux-user --static

in debian/rules that spits out a static version of qemu-arm, then have a qemu-arm-static deb package with the postinst and prerm scripts below:

postinst needs:
    configure)
    if [ "$1" = configure ] && [ -x /usr/sbin/update-binfmts ]; then
        /usr/sbin/update-binfmts --import armel
    fi
    ;;

prerm needs:

    if [ "$1" = remove ] && [ -x /usr/sbin/update-binfmts ]; then
        /usr/sbin/update-binfmts --package qemu-arm-static \
          --remove arm /usr/bin/qemu-arm-static
    fi

the imported armel file which needs to be in /usr/share/binfmts/ should have the following content:

package qemu-arm-static
interpreter /usr/bin/qemu-arm-static
flags: OC
offset 0
magic \x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00
mask \xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff

Related branches

Oliver Grawert (ogra)
Changed in qemu (Ubuntu):
assignee: nobody → Dustin Kirkland (kirkland)
importance: Undecided → Wishlist
Changed in qemu (Debian):
status: Unknown → New
Revision history for this message
Oliver Grawert (ogra) wrote :
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Thanks Oliver. I just uploaded.

:-Dustin

Changed in qemu (Ubuntu):
status: New → In Progress
Changed in qemu (Debian):
status: New → Confirmed
Changed in qemu (Debian):
status: Confirmed → New
affects: qemu (Ubuntu) → qemu-kvm (Ubuntu)
Changed in qemu-kvm (Ubuntu):
status: In Progress → Fix Released
Changed in qemu (Debian):
status: New → Fix Committed
Changed in qemu (Debian):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.