Fix misc build problems due to new drivers

* autobuild.sh: Disable esx/phyp build on mingw32
* configure.in: Fix handling of --without-phyp so it actually works
* libvirt.spec.in: Add missing interface.rng
* mingw32-libvirt.spec.in: Disable phyp/esx drivers
* src/phyp/phyp_driver.c: Fix missing i18n of error messages
This commit is contained in:
Daniel P. Berrange 2009-07-24 17:20:50 +01:00
parent 41e097e91a
commit 484640eaf6
5 changed files with 10 additions and 5 deletions

View File

@ -77,6 +77,8 @@ if [ -x /usr/bin/i686-pc-mingw32-gcc ]; then
--without-vbox \
--without-openvz \
--without-one \
--without-phyp \
--without-esx \
--without-libvirtd
make

View File

@ -190,7 +190,7 @@ AC_ARG_WITH([openvz],
AC_ARG_WITH([libssh],
[ --with-libssh=[PFX] libssh location],[],[with_libssh=yes])
AC_ARG_WITH([phyp],
[ --with-phyp=[PFX] add PHYP support (on)],[with_phyp=yes],[with_phyp=check])
[ --with-phyp=[PFX] add PHYP support (on)],[],[with_phyp=check])
AC_ARG_WITH([vbox],
[ --with-vbox add VirtualBox support (on)],[],[with_vbox=yes])
AC_ARG_WITH([lxc],

View File

@ -528,6 +528,7 @@ fi
%{_datadir}/libvirt/schemas/storagevol.rng
%{_datadir}/libvirt/schemas/nodedev.rng
%{_datadir}/libvirt/schemas/capability.rng
%{_datadir}/libvirt/schemas/interface.rng
%if %{with_sasl}
%config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf

View File

@ -53,6 +53,8 @@ MinGW Windows libvirt virtualization library.
--without-vbox \
--without-openvz \
--without-one \
--without-phyp \
--without-esx \
--without-libvirtd
make

View File

@ -221,8 +221,8 @@ openSSHSession(virConnectPtr conn, virConnectAuthPtr auth)
password = creds[0].result;
else {
virRaiseError(conn, NULL, NULL, 0, VIR_FROM_PHYP,
VIR_ERR_ERROR, NULL, NULL, NULL, 0, 0, "%s : %s",
"Unable to get password certificate.",
VIR_ERR_ERROR, NULL, NULL, NULL, 0, 0,
_("Unable to get password certificate: %s"),
ssh_get_error(session));
ssh_disconnect(session);
goto err;
@ -235,8 +235,8 @@ openSSHSession(virConnectPtr conn, virConnectAuthPtr auth)
if (auth_check != SSH_AUTH_SUCCESS) {
virRaiseError(conn, NULL, NULL, 0, VIR_FROM_PHYP,
VIR_ERR_ERROR, NULL, NULL, NULL, 0, 0, "%s : %s",
"Authentication failed.",
VIR_ERR_ERROR, NULL, NULL, NULL, 0, 0,
_("Authentication failed: %s"),
ssh_get_error(session));
ssh_disconnect(session);
goto err;