Re: [Libvir] Cross-compiling to Windows

2008-04-17 Thread Richard W.M. Jones
On Thu, Apr 17, 2008 at 10:44:13AM +0900, Atsushi SAKAI wrote: It seems good idea! But I have a question. Is the testing script merged with Linux one by using Wine? I don't know in detail how it would work. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones

Re: [Libvir] PATCH: Support serial parallel devices in QEMU driver

2008-04-17 Thread Jim Meyering
Daniel P. Berrange [EMAIL PROTECTED] wrote: A long time ago I proposed a syntax for serial / parallel port handling in libvirt XML. Nice. And it looks correct, too, but that's not too surprising, especially with all of those tests. I confirmed that it passes a valgrind-enabled make check with

Re: [Libvir] PATCH: Support serial parallel devices in QEMU driver

2008-04-17 Thread Daniel Veillard
On Tue, Apr 15, 2008 at 10:53:25PM +0100, Daniel P. Berrange wrote: A long time ago I proposed a syntax for serial / parallel port handling in libvirt XML. Patch looks good to me +1 +if (def-nserials == 0) { +obj = xmlXPathEval(BAD_CAST /domain/devices/console, ctxt); +

Re: [Libvir] Cross-compiling to Windows

2008-04-17 Thread Daniel Veillard
On Wed, Apr 16, 2008 at 11:24:10PM +0100, Richard W.M. Jones wrote: I was reading this rather timely blog posting about the Trouble With Windows: http://www.mega-nerd.com/erikd/Blog/CodeHacking/MinGWCross/cross_compiling.html He mentions that he's managed to set up an entire

Re: [Libvir] Cross-compiling to Windows

2008-04-17 Thread Richard W.M. Jones
On Thu, Apr 17, 2008 at 11:03:06AM -0400, Daniel Veillard wrote: Anything which can be added to help building on Windows is IMHO worth keeping and adding to the documentation, I think where it could really help is by allowing us to test that the Windows build still works. At the moment,

Re: [libvir] [PATCH] Bad permissions on /var/run/libvirt/

2008-04-17 Thread Daniel Veillard
On Mon, Apr 14, 2008 at 07:37:56PM +0400, Anton Protopopov wrote: Hi, Non-root can't use /var/run/libvirt/libvirt-sock even in the case unix_sock_group and unix_sock_rw_perms are set properly. The reason: # ls -l /var/run /var/run/libvirt | grep libvirt | grep -v pid drwx-- 2

Re: [Libvir] Cross-compiling to Windows

2008-04-17 Thread Daniel Veillard
On Wed, Apr 16, 2008 at 11:27:08PM +0100, Richard W.M. Jones wrote: On Wed, Apr 16, 2008 at 11:24:10PM +0100, Richard W.M. Jones wrote: He mentions that he's managed to set up an entire cross-compiler environment to do the compiles (actually, it's a package in Debian called mingw32 -- we

Re: [Libvir] Cross-compiling to Windows

2008-04-17 Thread Richard W.M. Jones
On Thu, Apr 17, 2008 at 12:53:13PM -0400, Daniel Veillard wrote: On Wed, Apr 16, 2008 at 11:27:08PM +0100, Richard W.M. Jones wrote: On Wed, Apr 16, 2008 at 11:24:10PM +0100, Richard W.M. Jones wrote: He mentions that he's managed to set up an entire cross-compiler environment to do the

Re: [Libvir] Cross-compiling to Windows

2008-04-17 Thread Daniel Veillard
On Thu, Apr 17, 2008 at 05:55:36PM +0100, Richard W.M. Jones wrote: On Thu, Apr 17, 2008 at 12:53:13PM -0400, Daniel Veillard wrote: On Wed, Apr 16, 2008 at 11:27:08PM +0100, Richard W.M. Jones wrote: On Wed, Apr 16, 2008 at 11:24:10PM +0100, Richard W.M. Jones wrote: He mentions that

[Libvir] MinGW patch

2008-04-17 Thread Richard W.M. Jones
I got about 95% of the way towards compiling on MinGW using the MinGW cross-compiler from http://mirzam.it.vu.nl/mingw/. Attached are some fairly non-controversial patches which fix some of the problems I found. Build notes follow below. Rich.

Re: [Libvir] Cross-compiling to Windows

2008-04-17 Thread Daniel Veillard
On Thu, Apr 17, 2008 at 08:20:58PM +0100, Richard W.M. Jones wrote: On Thu, Apr 17, 2008 at 02:50:26PM -0400, Daniel Veillard wrote: + rm /var/tmp/mingw-binutils-root/usr/local/lib/libiberty.a rm: cannot remove `/var/tmp/mingw-binutils-root/usr/local/lib/libiberty.a': No such file or

Re: [Libvir] MinGW patch

2008-04-17 Thread Daniel P. Berrange
On Thu, Apr 17, 2008 at 08:04:59PM +0100, Richard W.M. Jones wrote: I got about 95% of the way towards compiling on MinGW using the MinGW cross-compiler from http://mirzam.it.vu.nl/mingw/. Attached are some fairly non-controversial patches which fix some of the problems I found. Build notes

Re: [Libvir] MinGW patch

2008-04-17 Thread Daniel Veillard
On Thu, Apr 17, 2008 at 08:04:59PM +0100, Richard W.M. Jones wrote: I got about 95% of the way towards compiling on MinGW using the MinGW cross-compiler from http://mirzam.it.vu.nl/mingw/. Attached are some fairly non-controversial patches which fix some of the problems I found. Build notes

Re: [Libvir] MinGW patch

2008-04-17 Thread Jim Meyering
Richard W.M. Jones [EMAIL PROTECTED] wrote: I got about 95% of the way towards compiling on MinGW using the MinGW cross-compiler from http://mirzam.it.vu.nl/mingw/. Attached are some fairly non-controversial patches which fix some of the problems I found. Build notes follow below. ...

[Libvir] PATCH: Make test suite debug mode more friendly

2008-04-17 Thread Daniel P. Berrange
When the test suites fail, we have a DEBUG_TESTS=1 environment variable which can be set to show the full XML doc or string pair that failed to match. Unfortunately these docs can be quite large, so it is hard to spot the difference between the actual and expected output. So this patch introduces

[Libvir] PATCH: Use macros to remove duplicate test code

2008-04-17 Thread Daniel P. Berrange
The test suite files contain alot of boilerplate duplicated code. With a few more macros I can significantly cut down the size of the test code. I also change abs_top_srcdir to abs_srcdir, and automatically initialize it to 'getcwd' if the env variable is missing. This lets me run the test cases