[Bug 567842] New: qemu binary isn't copied to buildroot when local building
http://bugzilla.novell.com/show_bug.cgi?id=567842 http://bugzilla.novell.com/show_bug.cgi?id=567842#c0 Summary: qemu binary isn't copied to buildroot when local building Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Kubuntu Status: NEW Severity: Major Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: entropy.zjd@gmail.com QAContact: adrian@novell.com Found By: --- Blocker: --- Created an attachment (id=334694) --> (http://bugzilla.novell.com/attachment.cgi?id=334694) Fixed init_buildsystem User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.43 Safari/532.5 When using OBS to do local build for armel, qemu binary should be copied to $(BUILD_ROOT)/usr/bin so that host will automatically invoke qemu to run armel binary. The script init_buildsystem handles this. But for Ubuntu, the checking in this script isn't enough, as a result, qemu-arm-static won't be copied to buildroot and local build will fail. The reason is because Ubuntu has a package called "qemu-arm-static" to support arm emulation, which doesn't install qemu-binfmt-conf.sh, however, it setup binfmt correctly to pointing to qemu-arm-static. This script only checks if qemu is regisered but forgets to copy qemu-arm-static. A fixed version of this script is attached. BTW, Ubuntu qemu package only supports kvm or x86 emulation. Reproducible: Always Steps to Reproduce: 1.Install OBS in Ubuntu (9.04 or later) 2.Install qemu-arm-static 3.Do a local build for armel Actual Results: chroot: cannot run command `/sbin/ldconfig': No such file or directory chroot: cannot run command `dpkg': No such file or directory Expected Results: Build successfully -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=567842
http://bugzilla.novell.com/show_bug.cgi?id=567842#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=567842
http://bugzilla.novell.com/show_bug.cgi?id=567842#c1
Adrian Schröter
http://bugzilla.novell.com/show_bug.cgi?id=567842
http://bugzilla.novell.com/show_bug.cgi?id=567842#c2
--- Comment #2 from jd ez
http://bugzilla.novell.com/show_bug.cgi?id=567842
http://bugzilla.novell.com/show_bug.cgi?id=567842#c3
--- Comment #3 from jd ez
http://bugzilla.novell.com/show_bug.cgi?id=567842
http://bugzilla.novell.com/show_bug.cgi?id=567842#c
jd ez
https://bugzilla.novell.com/show_bug.cgi?id=567842
https://bugzilla.novell.com/show_bug.cgi?id=567842#c4
jd ez
https://bugzilla.novell.com/show_bug.cgi?id=567842
https://bugzilla.novell.com/show_bug.cgi?id=567842#c5
Adrian Schröter
https://bugzilla.novell.com/show_bug.cgi?id=567842
https://bugzilla.novell.com/show_bug.cgi?id=567842#c6
--- Comment #6 from jd ez
We should may use the native qemu ( for hardware emulation, not for KVM setup ), similar as we should not use the -static packages from work system. So your patch looks like the right approach, but maybe not complete yet.
I am using qemu-arm-static from Ubuntu repository, not sure if it is "the -static packages" you are referring to. For sure qemu-kvm shouldn't be used. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=567842
https://bugzilla.novell.com/show_bug.cgi?id=567842#c7
Jan-Simon Möller
https://bugzilla.novell.com/show_bug.cgi?id=567842
https://bugzilla.novell.com/show_bug.cgi?id=567842#c8
Adrian Schröter
participants (1)
-
bugzilla_noreply@novell.com