Bug 237119

Summary: devel/git-lite: Unable to install on FreeBSD 12
Product: Ports & Packages Reporter: Pete Abyss <pete>
Component: Individual Port(s)Assignee: Renato Botelho <garga>
Status: Closed Unable to Reproduce    
Severity: Affects Only Me CC: deepbluemistake, pete
Priority: --- Flags: bugzilla: maintainer-feedback? (garga)
Version: Latest   
Hardware: Any   
OS: Any   

Description Pete Abyss 2019-04-08 18:50:24 UTC
This pkg failed to install.
12.0-RELEASE-p3


> [3/3] Installing git-lite-2.21.0...
> ===> Creating groups.
> Creating group 'git_daemon' with gid '964'.
> ===> Creating users
> Creating user 'git_daemon' with uid '964'.
> pw: user 'git_daemon' disappeared during update
> pkg: PRE-INSTALL script failed
Comment 1 Pete Abyss 2019-04-08 19:17:55 UTC
I was able to install other pkgs with users.
This is a mess with /etc/group /etc/passwd
I have to recreate some users and groups.
Don't know how to properly identify the bug.
Comment 2 Andras Farkas 2019-04-27 05:22:20 UTC
Please re-open this, and change it from "affects only me" to something more.  It happened on my computer too.

root@nyann:~ # freebsd-version 
12.0-RELEASE-p3

root@nyann:~ # uname -a
FreeBSD nyann.tanasinn.mochi 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 GENERIC  amd64

root@nyann:~ # pkg install git
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        git: 2.21.0

Number of packages to be installed: 1

The process will require 30 MiB more space.

Proceed with this action? [y/N]: y
[1/1] Installing git-2.21.0...
===> Creating groups.
Using existing group 'git_daemon'.
===> Creating users
Creating user 'git_daemon' with uid '964'.
pw: user 'git_daemon' disappeared during update
pkg: PRE-INSTALL script failed
Comment 3 Andras Farkas 2019-04-27 05:30:54 UTC
Despite what pw says:

root@nyann:~ # cat /etc/group | grep -i git
git_daemon:*:964:

root@nyann:~ # cat /etc/passwd | grep -i git
git_daemon:*:964:964:git daemon:/nonexistent:/usr/sbin/nologin

These files are affected.
Comment 4 Andras Farkas 2019-11-06 17:32:57 UTC
This bug also happens when trying to install Murmur, for me.
I found, however, this is a bug related to pw itself:
root@nyann:~ # pw user show git_daemon
pw: no such user `git_daemon'
root@nyann:~ # pw user add foobarr
pw: user 'foobarr' disappeared during update

It seems pw is no longer able to add any sort of user correctly on my system, or on the system of anyone else affected by this bug.

Please open this though, it is reproducible.
Comment 5 Andras Farkas 2019-11-06 17:45:25 UTC
I was told the fix to this bug.
pwd_mkdb -p /etc/master.passwd
pwd_mkdb /etc/master.passwd
After doing this, groups and users are creatable and the packages install.