Subject: bulk build and sudo
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 02/28/2004 13:14:52
Is there way to do bulk builds as non-root and the install/package steps
use sudo (my SU_CMD)?

Also, the Packages.txt and mk/bulk/bsd.bulk-pkg.mk have different
instructions on how to bulk build.

So I set
PKGLIST="www/bozohttpd"
in my mk/bulk/build.conf
and my mk.conf has:
BULK_PREREQ+=   security/sudo

but it tried to build other packages, for example:

stilly:/usr/pkgsrc$ time make bulk-install
===> archivers
===> archivers/9e
BULK> Package 9e-1.0 not built yet, packaging...
/usr/bin/make bulk-package PRECLEAN=no
BULK> Package 9e-1.0 not built yet, packaging...
BULK> Full rebuild in progress...
BULK> Cleaning package and its depends
/usr/bin/make clean CLEANDEPENDS=YES
===> Cleaning for 9e-1.0
/usr/bin/make package (9e-1.0)
===> Checking for vulnerabilities in 9e-1.0
=> Checksum OK for 9e.tar.gz.
work.stilly -> /var/tmp/pkgsrc/archivers/9e/work.stilly
===> Extracting for 9e-1.0
===> Patching for 9e-1.0
===> Applying pkgsrc patches for 9e-1.0
===> Overriding tools for 9e-1.0
===> Configuring for 9e-1.0
===> Building for 9e-1.0
gcc -O   -c 9e.c
gcc -o 9e 9e.o
===> Installing for 9e-1.0
Warning: Batch mode, not superuser, can't run install for 9e-1.0.
Become root and try again to ensure correct permissions.
===> Packaging 9e-1.0
Warning: Batch mode, not superuser, can't run package for 9e-1.0.
Become root and try again to ensure correct permissions.
BULK> 9e-1.0 was marked as broken:
-rw-r--r--  1 reed  pkgsrc  836 Feb 27 22:47 .broken.stilly.html
/usr/bin/make deinstall
===> Deinstalling for 9e
Warning: Batch mode, not superuser, can't run deinstall for 9e-1.0.
Become root and try again to ensure correct permissions.
BULK> Cleaning packages and its depends



   Jeremy C. Reed
   http://www.reedmedia.net/