Subject: pkg/36362: pkgsrc bulk builds doesn't support SU_CMD
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 05/20/2007 21:10:00
>Number:         36362
>Category:       pkg
>Synopsis:       pkgsrc bulk builds doesn't support SU_CMD
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun May 20 21:10:00 +0000 2007
>Release:        NetBSD 4.0_BETA2
Best regards, Aleksey Cheusov.
System: NetBSD 4.0_BETA2 NetBSD 4.0_BETA2 (GENERIC) #15: Sat Apr 28 23:42:26 EEST 2007 i386
Architecture: i386
Machine: i386
Pkgsrc bulk build doesn't support SU_CMD feature, i.e.
packages cannot be built with non-root priviledges.

Try to run bulk built non-root.
The following patch fixes the problem partially.
In particular, pkg_add command is not prepanded with SU_CMD command.
I added PKG_ADD=/usr/local/bin/sudo_pkg_add to mk.conf for this.
Where sudo_pkg_add is
    /usr/local/bin/sudo /bin/sh -c "/usr/sbin/pkg_add $*"
It was easier for me.

I hope, maintainers will finish the patch.