Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249102 - app-emulation/libvirt-0.5.1 is out
Summary: app-emulation/libvirt-0.5.1 is out
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Donnie Berkholz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-27 18:57 UTC by Michael Spiegle
Modified: 2009-01-09 04:33 UTC (History)
6 users (show)

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


Attachments
changed ebuild for libvirt-0.5.0 (libvirt-0.5.0.ebuild,1.77 KB, text/plain)
2008-11-30 20:37 UTC, Ulf Dambacher
Details
New libvirt ebuild (libvirt-0.5.1.ebuild,1.92 KB, text/plain)
2008-12-06 19:20 UTC, Michael Spiegle
Details
gnulib libgnu Makefile reposition (libvirt-0.5.1-libgnu-reposition.patch,477 bytes, patch)
2009-01-04 23:34 UTC, Daniel Troeder
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Spiegle 2008-11-27 18:57:33 UTC
A new version of libvirt (0.5.0) just came out.

Reproducible: Always
Comment 1 Ulf Dambacher 2008-11-30 20:37:13 UTC
Created attachment 173895 [details]
changed ebuild for libvirt-0.5.0
Comment 2 Ulf Dambacher 2008-11-30 20:38:32 UTC
... and there was no ebuild.

I modified the old one, compiled and installed successfully and did some short tests. it works for me.
Comment 3 Micheal Marineau (RETIRED) gentoo-dev 2008-12-02 05:35:45 UTC
I'm having trouble with libvirtd and qemu/kvm (nothing can connect to qemu:///system and won't tell me why). Once I resolve the issue I'll put it in the tree but I'm not sure when that will be.
Comment 4 Ulf Dambacher 2008-12-02 18:33:17 UTC
(In reply to comment #3)
> I'm having trouble with libvirtd and qemu/kvm (nothing can connect to
> qemu:///system and won't tell me why). Once I resolve the issue I'll put it in
> the tree but I'm not sure when that will be.
> 

In the ebuild i posted, i corrected the path of the /var/* files.
previously it installed in /var/lib/lib/libvirt and /var/lib/run/libvirt instead of /var/lib/libvirt and /var/run/libvirt.
Maybe your configuration has trouble with this...
Comment 5 Michael Spiegle 2008-12-06 16:40:41 UTC
Looks like 0.5.1 just came out.  Trying to reuse ebuild...
Comment 6 Michael Spiegle 2008-12-06 17:14:35 UTC
The package appears to be installed, but not working properly.  Issuing a 'virsh capabilities' should tell me what drivers will work on the system.  I have KVM installed, but the driver doesn't seem to pick it up.  Looking at the source code, it appears to just search for /usr/bin/kvm.

I'll continue to try and troubleshoot, but anyone else should feel free to jump in because I'm not much of a coder.
Comment 7 Michael Spiegle 2008-12-06 18:11:57 UTC
Ok... it looks like the KVM use flag was removed and only qemu exists.  This means that even if you only want KVM, the package has to pull in the qemu packages as well.  The older libvirt package had a hack to handle this, but that appears to be removed in 0.5.0.  I'm going to put the hack back in because I feel that I shouldn't have to install qemu if I only want KVM.

Ebuild coming shortly...
Comment 8 Michael Spiegle 2008-12-06 19:20:55 UTC
Created attachment 174433 [details]
New libvirt ebuild

Ok, this appears to work on my machine.  I was able to run virt-manager and start a WinXP VM.  It gave me a strange error during '/etc/init.d/libvirtd stop', but I'll see if I can figure that out later.
Comment 9 Daniel Troeder 2009-01-04 23:34:01 UTC
Created attachment 177424 [details, diff]
gnulib libgnu Makefile reposition

Hello :)

I'm getting this problem when compiling attachment-174433:

i686-pc-linux-gnu-gcc -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I../src -I/usr/include/libxml2 -I/usr/include/PolicyKit -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -DLOCAL_STATE_DIR=\"/var\" -DSYSCONF_DIR=\"/etc\" -DQEMUD_PID_FILE=\"\" -DREMOTE_PID_FILE=\"/var/run/libvirtd.pid\" -DGETTEXT_PACKAGE=\"libvirt\" -D_REENTRANT -march=prescott -Os -mmmx -msse -msse2 -msse3 -mfpmath=sse -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables -Wl,-O1 -o .libs/libvirtd libvirtd-event.o libvirtd-qemud.o libvirtd-remote.o libvirtd-remote_protocol.o libvirtd-mdns.o  -L/usr/lib /usr/lib/libpolkit-dbus.so /usr/lib/libpolkit.so /usr/lib/libexpat.so ../gnulib/lib/.libs/libgnu.a ../src/.libs/libvirt_driver_qemu.a ../src/.libs/libvirt_driver_lxc.a ../src/.libs/libvirt_driver_uml.a ../src/.libs/libvirt_driver_storage.a ../src/.libs/libvirt_driver_network.a ../src/.libs/libvirt_driver_nodedev.a /usr/lib/libhal.so ../src/.libs/libvirt.so /usr/lib/libxml2.so -lm /usr/lib/libgnutls.so /usr/lib/libtasn1.so -lz /usr/lib/libgcrypt.so /usr/lib/libgpg-error.so -lxenstore /usr/lib/libavahi-client.so /usr/lib/libdbus-1.so /usr/lib/libavahi-common.so -ldl -lpthread 
../src/.libs/libvirt_driver_qemu.a(libvirt_driver_qemu_la-qemu_driver.o): In function `qemudExtractMonitorPath':
qemu_driver.c:(.text+0x9bc): undefined reference to `c_isspace'
../src/.libs/libvirt_driver_qemu.a(libvirt_driver_qemu_la-qemu_driver.o): In function `qemudStartVMDaemon':
qemu_driver.c:(.text+0x1f99): undefined reference to `c_isspace'
collect2: ld returned 1 exit status


Turns out the problem happens, because "../gnulib/lib/libgnu.la" has to be used later on the command line (linked later?): https://www.redhat.com/archives/libvir-list/2008-December/msg00288.html

I made a patch from redhats patch, but it seems that, though it gets applied on "qemud/Makefile.am", "qemud/Makefile" does not get recreated, and the build still fails.
My (not working) modification to attachment-174433 is:

--- libvirt-0.5.1.ebuild-id=174433      2009-01-05 00:17:27.157454990 +0100
+++ libvirt-0.5.1.ebuild        2009-01-05 00:31:27.231521424 +0100
@@ -34,6 +34,10 @@
 
 src_unpack() {
        unpack ${A}
+
+       cd "${S}"
+       epatch "${FILESDIR}"/"${P}"-libgnu-reposition.patch
+       eautoreconf
 }
 
 pkg_setup() {

I don't know how to make proper ebuilds - maybe somebody else can do it? I'd really appreciate it.

Thank you,
Daniel
Comment 10 Micheal Marineau (RETIRED) gentoo-dev 2009-01-09 04:33:57 UTC
Version 0.5.1 is working better that 0.5.0, committed to portage :-)