[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 <xyyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyyang@novell.com AssignedTo|bnc-team-screening@forge.pr |uli@novell.com |ovo.novell.com | -- 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#c1 Adrian Schröter <adrian@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |martin.mohring@5etech.eu Info Provider| |entropy.zjd@gmail.com AssignedTo|uli@novell.com |adrian@novell.com --- Comment #1 from Adrian Schröter <adrian@novell.com> 2010-01-04 08:54:35 UTC --- Thanks, but can you please send a diff instead ? -- 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#c2 --- Comment #2 from jd ez <entropy.zjd@gmail.com> 2010-01-04 19:05:03 UTC --- Created an attachment (id=334855) --> (http://bugzilla.novell.com/attachment.cgi?id=334855) The difference -- 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#c3 --- Comment #3 from jd ez <entropy.zjd@gmail.com> 2010-01-04 19:07:17 UTC --- In the patch file, basically, I added copying qemu binary when "qemu is already registered", however, I think in another case "qemu will be registered", we need to do the copy too, but I didn't fix and test. -- 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 jd ez <entropy.zjd@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|entropy.zjd@gmail.com | -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=567842 https://bugzilla.novell.com/show_bug.cgi?id=567842#c4 jd ez <entropy.zjd@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High --- Comment #4 from jd ez <entropy.zjd@gmail.com> 2010-11-13 01:14:14 UTC --- As OBS is being developed, the original context of this bug changed but it still exists. I just test osc_0.129-1 and build_2010.07.28-1 with Kubuntu 10.10, it still has similar issue (btw, I am unable to update "Found In Version" field). By looking into /usr/lib/build/init_buildsystem, there are a few issues found: 1) In copy_qemu(), it copies qemu-binfmt-conf.sh w/o checking it, and it omits a warning on Ubuntu as this script doesn't exist. 2) At line 534, it checks if arm is registered in bin-fmt, and if no, it will call qemu-binfmt-conf.sh w/o checking, this will fail building. 3) But actually arm is already registered if qemu-arm-static is installed, so that I looked into check_binfmt_registered(). It checks /proc/sys/fs/binfmt_misc/$arch, but in Ubuntu, by default only /proc/sys/fs/binfmt_misc/arm is being checked while /proc/sys/fs/binfmt_misc/qemu-arm exists instead. Right now, I have a walkaround by running "export EMULATOR_ARCHS=qemu-arm" before "osc build" so that init_buildsystem will think arm is registered. But I think "EMULATOR_ARCHS=qemu-arm" should be added somewhere by default. -- 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#c5 Adrian Schröter <adrian@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|adrian@novell.com |jansimon.moeller@opensuse.o | |rg --- Comment #5 from Adrian Schröter <adrian@novell.com> 2010-11-13 07:26:58 UTC --- I have no experiences with this mechanism, but IIRC LinuxFoundation has plans to work on this mechanism in near future. 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. Jan-Simon, James, do you plan to work on this ? If not please re-assign the bug back ;) -- 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#c6 --- Comment #6 from jd ez <entropy.zjd@gmail.com> 2010-11-13 16:30:01 UTC --- (In reply to comment #5)
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 <jansimon.moeller@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jansimon.moeller@opensuse.o | |rg --- Comment #7 from Jan-Simon Möller <jansimon.moeller@opensuse.org> 2010-12-29 09:08:59 UTC --- I'll take this one for the next round cross-build enhancements. -- 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#c8 Adrian Schröter <adrian@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WONTFIX --- Comment #8 from Adrian Schröter <adrian@suse.com> 2013-02-25 13:32:49 UTC --- we do not support coping of qemu binaries anymore. The project shall be setup to install the right binary to avoid conflicts. -- 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.
participants (1)
-
bugzilla_noreply@novell.com