Skip to contentSkip to conversation

FreeBSD Support

Qemu-devel Ben Taylor 3 participants 3 messages Feb 20, 2007

lore
Share & tools
lore

Ben Taylor

author
#0 lore raw
Quoted 7 lines · ---- Christopher Olsen

This is a sidetrack here... But is it at all possible to make future releases of the source more FreeBSD friendly?

I am willing to work off a specified codebase to bring it up to FreeBSD speed so it can be easily maintained from there...

Because unfortunately out of the box it doesn't build.

Having been in your shoes, the only thing I can tell you is start small. Be able to justify your patches and change as little as possible. Be smart about how you code things if there are specific reasons. And get ready for a long haul. Be ready to constantly be porting your changes through the CVS tree.

I can tell you that you won't be able to submit a

"This patch makes it work with FreeBSD"

and have it accepted.

Start with the configure script and Makefiles, and any very specfic, targeted and small patches and let those changes slowly propogate out.

HTH,

Ben

#1 lore raw
Quoted 17 lines · Ben Taylor

Having been in your shoes, the only thing I can tell you is start small. Be able to justify your patches and change as little as possible. Be smart about how you code things if there are specific reasons. And get ready for a long haul. Be ready to constantly be porting your changes through the CVS tree.

I can tell you that you won't be able to submit a

"This patch makes it work with FreeBSD"

and have it accepted.

Start with the configure script and Makefiles, and any very specfic, targeted and small patches and let those changes slowly propogate out.

HTH,

Quoted 7 lines

Ben

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Well that shouldn't be an issue... Plus I have particular interest in this project. That and I've stuck by QEMU because of it's significant performance over BOCHS as the PC emulator of choice when I developed my operating system

-Christopher

Signature · 4 lines
Christopher Olsen
[email protected]
Tel: 631-676-4877
Fax: 631-249-3036
#2 lore raw
In reply to Ben Taylor

In message: <[email protected]>

            Ben Taylor <[email protected]> writes:

: Start with the configure script and Makefiles, and any very specfic, targeted : and small patches and let those changes slowly propogate out.

Most of the FreeBSD ports patches are relatively easy to justify and explain. For example, FreeBSD port system defines SDL_CONFIG in a way that's overridable. There's a patch that looks like:

Index: qemu/configure
@@ -204,7 +204,7 @@

if test -z "$sdl" ; then

-sdl_config="sdl-config"
+sdl_config="${SDL_CONFIG}"
sdl=no
sdl_static=no

which is straight forward enought, but still wrong... It should be:

Index: qemu/configure
@@ -204,7 +204,7 @@

if test -z "$sdl" ; then

-sdl_config="sdl-config"
+sdl_config="${SDL_CONFIG:-sdl-config}"
sdl=no
sdl_static=no

to still work on non-FreeBSD systems or on FreeBSD systems not using the ports....

There's a lot of niggles like this, however...

Warner