Subject: pkg/36326: GNUstep, and GNUstep apps can`t be build as unprivileged user
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <hokaadam@gmail.com>
List: pkgsrc-bugs
Date: 05/14/2007 13:35:00
>Number:         36326
>Category:       pkg
>Synopsis:       GNUstep, and GNUstep apps can`t be build as unprivileged user
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 14 13:35:00 +0000 2007
>Originator:     Adam Hoka
>Release:        NetBSD 4.0_BETA2
>Organization:
>Environment:
NetBSD voluspa.hoka.micronet.pipenet.hu 4.0_BETA2 NetBSD 4.0_BETA2 (GENERIC) #0: Thu May  3 16:45:30 PDT 2007  builds@wb32:/home/builds/ab/netbsd-4/i386/200705030002Z-obj/home/builds/ab/netbsd-4/src/sys/arch/i386/compile/GENERIC i386

>Description:
Applications that using gnustep-make(?) can`t be build as an unprivileged user.


Here`s an example:
--------------------------------------------------------------------
===> Building for gworkspace-0.7.1nb4
Making all in FSNode...
gmake[1]: Entering directory `/lfs/sysutils/gworkspace/work/GWorkspace-0.7.1/FSNode'
Making build-headers for framework FSNode...
 Creating FSNode.framework/Versions/A/Headers...
install: FSNode.framework/Versions/A/Headers/FSNode.h: chown/chgrp: Operation not permitted
gmake[2]: *** [FSNode.framework/Versions/A/Headers/FSNode.h] Error 1
gmake[1]: *** [FSNode.build-headers.framework.variables] Error 2
gmake[1]: Leaving directory `/lfs/sysutils/gworkspace/work/GWorkspace-0.7.1/FSNode'
gmake: *** [internal-all] Error 2
*** Error code 2
--------------------------------------------------------------------

It wants to chown a file during build, which is not allowed to do as a regular user.
>How-To-Repeat:
Simply try to build it as non-root from pkgsrc.
>Fix:
You have to build it as root. If you dont have root privileges on the machine, you may build it elswhere in chroot, or get the binary pkgs if they exist for your platform.