pkgsrc-Bugs archive

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

pkg/36362: pkgsrc bulk builds doesn't support SU_CMD



>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
>Originator:     cheusov%tut.by@localhost
>Release:        NetBSD 4.0_BETA2
>Organization:
Best regards, Aleksey Cheusov.
>Environment:
System: NetBSD chen.chizhovka.net 4.0_BETA2 NetBSD 4.0_BETA2 (GENERIC) #15: Sat 
Apr 28 23:42:26 EEST 2007 
cheusov%chen.chizhovka.net@localhost:/srv/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
Pkgsrc bulk build doesn't support SU_CMD feature, i.e.
packages cannot be built with non-root priviledges.

>How-To-Repeat:
Try to run bulk built non-root.
>Fix:
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.




Home | Main Index | Thread Index | Old Index