pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkglint issue



Am 02.01.2024 um 20:18 schrieb Hauke Fath:
> Hi,
>
> for a while, I have been getting the following error when invoking
> pkglint on netbsd-10:
>
> % pkglint
> panic: Pkglint internal error: user.Current: user: lookup userid 100:
> permission denied [recovered]

At startup, pkglint determines the current username, to match it against
the OWNER or MAINTAINER of a pkgsrc package. This fails here.

To track this bug down, you can try the following minimal Go program:

cat <<EOF >u.go
package main

import (
	"fmt"
	"os/user"
)

func main() {
	println("before")
	u, err := user.Current()
	if err != nil {
		panic(err)
	}
	fmt.Println(u)
}
EOF
go121 run u.go

If that fails as well, use ktrace to see why it fails.

Roland



Home | Main Index | Thread Index | Old Index