Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#47928 - [libvirt] package installation creates user group when it should create system group

Attached to Project: Community Packages
Opened by Jamin Collins (jamincollins) - Thursday, 28 January 2016, 15:50 GMT
Last edited by Sergej Pupykin (sergej) - Friday, 29 January 2016, 08:24 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
installation of the libvirt package creates a user group called "libvirt" this group should be created as a system (not user) group

Additional info:
* AFAICT all package versions are affected


Steps to reproduce:
* install the package
* grep libvirt /etc/group

The problem is due to line 7 of libvirt.install (https://projects.archlinux.org/svntogit/community.git/tree/trunk/libvirt.install?h=packages/libvirt#n7) the groupadd call should have a -r or (preferably for clarity) a --system parameter.
This task depends upon

Closed by  Sergej Pupykin (sergej)
Friday, 29 January 2016, 08:24 GMT
Reason for closing:  Fixed
Comment by Jamin Collins (jamincollins) - Thursday, 28 January 2016, 20:03 GMT
For further clarification:

On Arch, system accounts are sub-1k and seem to be assigned in a reverse fashion, with the first being 999, second being 998, etc. Non-system accounts are 1k+ and get co-mingled with user accounts. I noticed it because my first user account as a uid of 1000 and gid of 1001, because libvirt had been installed and was assigned gid 1000.

For examples of how other packages handled it:
dnsmasq - https://projects.archlinux.org/svntogit/packages.git/tree/trunk/dnsmasq.install?h=packages/dnsmasq
git - https://projects.archlinux.org/svntogit/packages.git/tree/trunk/git.install?h=packages/git
networkmanager-openvpn - https://projects.archlinux.org/svntogit/packages.git/tree/trunk/networkmanager-openvpn.install?h=packages/networkmanager-openvpn

Loading...