Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421399 - app-emulation/qemu does not build on Gentoo FreeBSD
Summary: app-emulation/qemu does not build on Gentoo FreeBSD
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal enhancement (vote)
Assignee: Richard Yao (RETIRED)
URL:
Whiteboard:
Keywords: Bug, Inclusion, PATCH
Depends on: 428228
Blocks:
  Show dependency tree
 
Reported: 2012-06-16 13:53 UTC by Richard Yao (RETIRED)
Modified: 2013-05-28 23:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch against app-emulation/qemu-kvm-1.0.1-r1 that implements FreeBSD support (qemu-kvm-1.0.1.patch,4.97 KB, patch)
2012-06-16 13:53 UTC, Richard Yao (RETIRED)
Details | Diff
app-emulation/qemu-kvm-1.0.1-r1 build failure with patched ebuild, but no os-posix.c patch (build.log,35.46 KB, text/plain)
2012-06-16 19:47 UTC, Richard Yao (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Yao (RETIRED) gentoo-dev 2012-06-16 13:53:08 UTC
Created attachment 315505 [details, diff]
Patch against app-emulation/qemu-kvm-1.0.1-r1 that implements FreeBSD support

app-emulation/qemu-kvm-1.0.1-r1 currently does not work on Gentoo FreeBSD. I have attached a patch that addresses that.

I am also using the following patch in epatch_user to enable the package to build:

https://github.com/freebsd/freebsd-ports/blob/master/emulators/qemu-devel/files/patch-os-posix.c

I tested this using the Minix test image from the QEMU website and it seemed to work:

http://wiki.qemu.org/Testing
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2012-06-16 15:00:55 UTC
can you attach a build.log with failure?
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2012-06-16 19:45:54 UTC
x86-fbsd or amd64-fbsd ?
Comment 3 Richard Yao (RETIRED) gentoo-dev 2012-06-16 19:47:30 UTC
Created attachment 315545 [details]
app-emulation/qemu-kvm-1.0.1-r1 build failure with patched ebuild, but no os-posix.c patch

(In reply to comment #1)
> can you attach a build.log with failure?

Attached.

(In reply to comment #2)
> x86-fbsd or amd64-fbsd ?

amd64-fbsd, but both should work. Someone with a x86-fbsd system would need to test it first.
Comment 4 Richard Yao (RETIRED) gentoo-dev 2012-06-24 15:07:29 UTC
(In reply to comment #2)
> x86-fbsd or amd64-fbsd ?

naota verified in IRC that this works on x86-fbsd too.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2012-07-08 03:34:47 UTC
Have you actually tested --enable-bsd-user? 

I believe you aren't truly understanding what this does. qemu can emulate a userspace program like WINE does for a Windows program or it can emulate an entire system. --enable-bsd-user enables the BSD userland emulation. You don't need a BSD kernel to use this feature. You do however need some extra libraries and files to be present on your system which I don't see installed or pulled in so I'll assume that the change was incorrect.

The same goes for --enable-darwin-user.
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2012-07-08 03:38:01 UTC
Additionally, the conditional include of util-linux is fine but the fact that we're removing UUID support necessarily is not OK. There must be a UUID library in the Gentoo/FreeBSD userland that we can use.

Please figure this out.
Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2012-07-08 03:52:26 UTC
Committed to the tree. Looked at my FreeBSD ports install of qemu and noticed they don't disable UUID so this is something that still needs to be addressed.
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2012-07-08 04:02:59 UTC
Clean up the amd64-gfbsd profile to not throw this out:

  DEPEND.bad                    1
   app-emulation/qemu-kvm/qemu-kvm-1.0.1-r1.ebuild: ~amd64-fbsd(default/bsd/fbsd/amd64/9.0) ['dev-libs/libaio', 'net-wireless/bluez', 'app-accessibility/brltty', '>=sys-apps/dtc-1.2.0', 'sys-libs/ncurses', 'media-sound/pulseaudio', 'sys-apps/iproute2', 'net-misc/bridge-utils', 'sys-libs/zlib[static-libs(+)]', 'sys-libs/zlib', '>=app-emulation/spice-0.9.0', '>=app-emulation/spice-protocol-0.8.1', 'sys-apps/usbredir', 'net-misc/vde', 'sys-apps/attr', 'app-emulation/xen-tools', 'app-text/texi2html']
  RDEPEND.bad                   1
   app-emulation/qemu-kvm/qemu-kvm-1.0.1-r1.ebuild: ~amd64-fbsd(default/bsd/fbsd/amd64/9.0) ['dev-libs/libaio', 'net-wireless/bluez', 'app-accessibility/brltty', '>=sys-apps/dtc-1.2.0', 'sys-libs/ncurses', 'media-sound/pulseaudio', 'sys-apps/iproute2', 'net-misc/bridge-utils', 'sys-libs/zlib[static-libs(+)]', 'sys-libs/zlib', '>=app-emulation/spice-0.9.0', '>=app-emulation/spice-protocol-0.8.1', 'sys-apps/usbredir', 'net-misc/vde', 'sys-apps/attr', 'app-emulation/xen-tools']
Comment 9 Doug Goldstein (RETIRED) gentoo-dev 2012-12-08 06:15:17 UTC
Well this has sat opened for some time, I'll drop support out of the ebuilds in 30 days time if the issues aren't addressed.
Comment 10 Alexis Ballier gentoo-dev 2013-05-24 20:39:07 UTC
(In reply to comment #9)
> Well this has sat opened for some time, I'll drop support out of the ebuilds
> in 30 days time if the issues aren't addressed.

not sure what is left to do here, closing as needinfo

in the future, please dont commit packages with broken deps if you want to avoid the mess from comment 8
Comment 11 Doug Goldstein (RETIRED) gentoo-dev 2013-05-28 19:48:01 UTC
(In reply to Alexis Ballier from comment #10)
> (In reply to comment #9)
> > Well this has sat opened for some time, I'll drop support out of the ebuilds
> > in 30 days time if the issues aren't addressed.
> 
> not sure what is left to do here, closing as needinfo
> 
> in the future, please dont commit packages with broken deps if you want to
> avoid the mess from comment 8

Or when your people ask for support that's masked so they can finish off the work they actually finish it off when they said they will.
Comment 12 Alexis Ballier gentoo-dev 2013-05-28 23:30:22 UTC
(In reply to Doug Goldstein from comment #11)

this was also directed to Richard :) 

you should have felt free not to commit it, or commit it without the keywords when you noticed it was broken