I'm trying to install coreutils on NetBSD 6.1.5 using the pkgsrc system.
This is on the default install of 6.1.5. The only change made has been to install zsh and set it as my default shell for users root and any local users.
As is the pkgsrc way, I change to the directory with the pkgsrc heirachy containing the package I want to install. In this case it is /usr/pkgsrc/sysutils/coreutils
When I enter this directory as root I type
and then get an error:
configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check) See `config.log' for more details *** Error code 1
This is not typical when using pkgsrc as root, and seems to be specific to gnu packages, as I have not experienced it with any other package in pkgsrc.
When I do make as a normal user in the same directory I don't have permission to write to any directory under /usr/pkgsrc and make fails due to a bunch of permission denied errors. For example:
sh: Cannot create configure.override: permission denied.
Copying the package directory to somewhere a local user has write permission and compiling would not seem to be in line with using pkgsrc.
Does the user have to be part of a special group to use pkgsrc?