Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601678 - app-emulation/libvirt-2.3.0 "You must add group kvm to the system first" with USEFLAG -qemu
Summary: app-emulation/libvirt-2.3.0 "You must add group kvm to the system first" with...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
: 603638 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-12-05 14:31 UTC by Marc Popp
Modified: 2017-01-22 16:29 UTC (History)
4 users (show)

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


Attachments
emerge --info (emerge_info.txt,5.45 KB, text/plain)
2016-12-05 14:31 UTC, Marc Popp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Popp 2016-12-05 14:31:35 UTC
Created attachment 455146 [details]
emerge --info

It's not possible to emerge package with the following USEFLAGS:
caps nls udev (-apparmor) -audit -firewalld -fuse (-glusterfs) -iscsi -libvirtd -lvm -lxc -macvtap -nfs -numa -openvz -parted -pcap -phyp -policykit -qemu -rbd -sasl (-selinux) -uml -vepa -virt-network -virtualbox (-wireshark-plugins) -xen -zeroconf

Output:
gdf-deployer-01 mapo # emerge -av app-emulation/libvirt

 * IMPORTANT: 13 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] app-emulation/libvirt-2.3.0:0/2.3.0::gentoo  USE="caps nls udev (-apparmor) -audit -firewalld -fuse (-glusterfs) -iscsi -libvirtd -lvm -lxc -macvtap -nfs -numa -openvz -parted -pcap -phyp -policykit -qemu -rbd -sasl (-selinux) -uml -vepa -virt-network -virtualbox (-wireshark-plugins) -xen -zeroconf" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-emulation/libvirt-2.3.0::gentoo
 * libvirt-2.3.0.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                [ ok ]
 * Adding user 'qemu' to your system ...
 *  - Userid: 77
 *  - Shell: /sbin/nologin
 *  - Home: /dev/null
 * You must add group kvm to the system first
 * ERROR: app-emulation/libvirt-2.3.0::gentoo failed (setup phase):
 *   kvm is not a valid GID
 * 
 * Call stack:
 *              ebuild.sh, line 133:  Called pkg_setup
 *   libvirt-2.3.0.ebuild, line 128:  Called enewuser 'qemu' '77' '-1' '-1' 'qemu,kvm'
 *            user.eclass, line 195:  Called die
 * The specific snippet of code:
 *                              die "${g} is not a valid GID"
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/libvirt-2.3.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/libvirt-2.3.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/libvirt-2.3.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/libvirt-2.3.0/temp/die.env'.
 * Working directory: '/usr/lib64/python3.4/site-packages'
 * S: '/var/tmp/portage/app-emulation/libvirt-2.3.0/work/libvirt-2.3.0'
Comment 1 Marc Popp 2016-12-05 14:36:43 UTC
Same for app-emulation/libvirt-9999 and app-emulation/libvirt-2.4.0
Comment 2 Matthias Maier gentoo-dev 2017-01-22 15:19:35 UTC
*** Bug 603638 has been marked as a duplicate of this bug. ***
Comment 3 Matthias Maier gentoo-dev 2017-01-22 16:29:14 UTC
commit 875198b0bffbe4060ddb3c3bedb52632c80a6ba7
Author: Matthias Maier <tamiko@gentoo.org>
Date:   Sun Jan 22 09:55:05 2017 -0600

    app-emulation/libvirt: Do not create qemu user if USE=-qemu, bug #601678
    
    Package-Manager: Portage-2.3.0, Repoman-2.3.1