Skip to contentSkip to conversation

configure: Disable guest_agent for mingw32

PATCH Applied Stefan Weil 2 participants 6 messages Aug 6, 2011 – Aug 12, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: Disable guest_agent for mingw32

guest_agent is not supported for mingw32, so the default value should be 'no', not 'yes'.

This removes the dependencies to glib-2.0 and python which makes native and cross builds for w32 much easier (no need to get and install these extra packages).

It also avoids the problems caused by different bitfield alignment which is required by glib-2.0.

It is still possible to set guest_agent=yes via configure option.

---
 configure |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
configure +1 -0
index 0c67a4a..4cb33d9 100755
@@ -493,6 +493,7 @@ if test "$mingw32" = "yes" ; then
   bindir="\${prefix}"
   sysconfdir="\${prefix}"
   confsuffix=""
+  guest_agent="no"
 fi
 
 werror=""
Signature · 1 line
1.7.2.5
#1 lore raw

Am 06.08.2011 22:47, schrieb Stefan Weil:

Quoted 23 lines

guest_agent is not supported for mingw32, so the default value should be 'no', not 'yes'.

This removes the dependencies to glib-2.0 and python which makes native and cross builds for w32 much easier (no need to get and install these extra packages).

It also avoids the problems caused by different bitfield alignment which is required by glib-2.0.

It is still possible to set guest_agent=yes via configure option.

---
  configure |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
configure +0 -0
index 0c67a4a..4cb33d9 100755

configure if test "$mingw32" = "yes" ; then · line 499

Quoted 7 lines
configure +1 -0
@@ -493,6 +493,7 @@ if test "$mingw32" = "yes" ; then
    bindir="\${prefix}"
    sysconfdir="\${prefix}"
    confsuffix=""
+  guest_agent="no"
  fi
 
  werror=""

Please apply this patch (or a similar solution) to QEMU 0.15, too. Otherwise QEMU 0.15 won't be usable with w32 (slirp bitfields).

Thanks,
Stefan Weil

#2 lore raw
In reply to Stefan Weil
Quoted 2 lines · Stefan Weil

guest_agent is not supported for mingw32, so the default value should be 'no', not 'yes'.

Why is it not supported? It should build just fine.

If the answer is, -mms-bitfield, then we should fix slirp instead of disabling guest-agent.

Regards,

Anthony Liguori

Quoted 27 lines

This removes the dependencies to glib-2.0 and python which makes native and cross builds for w32 much easier (no need to get and install these extra packages).

It also avoids the problems caused by different bitfield alignment which is required by glib-2.0.

It is still possible to set guest_agent=yes via configure option.

---
  configure |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
configure +1 -0
index 0c67a4a..4cb33d9 100755
@@ -493,6 +493,7 @@ if test "$mingw32" = "yes" ; then
    bindir="\${prefix}"
    sysconfdir="\${prefix}"
    confsuffix=""
+  guest_agent="no"
  fi
 
  werror=""
#3 lore raw

Am 07.08.2011 17:50, schrieb Anthony Liguori:

Quoted 11 lines · Stefan Weil
Quoted 2 lines

guest_agent is not supported for mingw32, so the default value should be 'no', not 'yes'.

Why is it not supported? It should build just fine.

If the answer is, -mms-bitfield, then we should fix slirp instead of disabling guest-agent.

Regards,

Anthony Liguori

Code extract from configure:

  if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
      tools="qemu-nbd\$(EXESUF) $tools"
    if [ "$guest_agent" = "yes" ]; then
      tools="qemu-ga\$(EXESUF) $tools"
    fi
    if [ "$check_utests" = "yes" ]; then
      tools="check-qint check-qstring check-qdict check-qlist $tools"
      tools="check-qfloat check-qjson $tools"
    fi
  fi

MinGW32 is neither linux nor bsd nor solaris, so guest_agent="yes" won't enable qemu-ga.exe.

Of course this (and the bitfield related problems) should be fixed in git master, but not in stable-0.15. So for 0.15, the patch is a must (unless you are prepared to take additional patches for the bitfield issues).

Even for git master, the patch is reasonable because it allows QEMU builds with most mingw32 installations. As soon as there is a w32 QEMU working with glib-2.0 and a w32 qemu-ga.exe (and some documentation in the QEMU wiki how to get glib-2.0 and python), the patch can be reverted.

Regards,
Stefan Weil

#4 lore raw
In reply to Stefan Weil
Quoted 7 lines · Stefan Weil

guest_agent is not supported for mingw32, so the default value should be 'no', not 'yes'.

This removes the dependencies to glib-2.0 and python which makes native and cross builds for w32 much easier (no need to get and install these extra packages).

Quoted 6 lines

It also avoids the problems caused by different bitfield alignment which is required by glib-2.0.

It is still possible to set guest_agent=yes via configure option.

This came in too late to make 0.15.0. I'd consider applying this to the stable branch but I'd really prefer we fix the slirp packing issue directly.

Regards,

Anthony Liguori

Quoted 16 lines
---
  configure |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
configure +1 -0
index 0c67a4a..4cb33d9 100755
@@ -493,6 +493,7 @@ if test "$mingw32" = "yes" ; then
    bindir="\${prefix}"
    sysconfdir="\${prefix}"
    confsuffix=""
+  guest_agent="no"
  fi
 
  werror=""
#5 lore raw
In reply to Stefan Weil
Quoted 7 lines · Stefan Weil

guest_agent is not supported for mingw32, so the default value should be 'no', not 'yes'.

This removes the dependencies to glib-2.0 and python which makes native and cross builds for w32 much easier (no need to get and install these extra packages).

Quoted 6 lines

It also avoids the problems caused by different bitfield alignment which is required by glib-2.0.

It is still possible to set guest_agent=yes via configure option.

Applied to master with the expectation that we will still properly fix the slirp packing issue.

Regards,

Anthony Liguori

Quoted 16 lines
---
  configure |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
configure +1 -0
index 0c67a4a..4cb33d9 100755
@@ -493,6 +493,7 @@ if test "$mingw32" = "yes" ; then
    bindir="\${prefix}"
    sysconfdir="\${prefix}"
    confsuffix=""
+  guest_agent="no"
  fi
 
  werror=""