pbulk is able to handle the creation All directory itself[1].

changing the permission of ${PACKAGES} at the end of the script prevents that
from working.
Undo the change in r1.4 to create the All directory during setup & instead do
not change permissions.

Tested on OS X Tiger & FreeBSD.

Heads up by joerg
[1] http://mail-index.netbsd.org/pkgsrc-changes/2017/08/01/msg160826.html
This commit is contained in:
sevan 2017-08-11 19:20:20 +00:00
parent ac29bdcce5
commit e02b0f6664

View file

@ -1,5 +1,5 @@
#!/bin/sh
# $Id: pbulk.sh,v 1.4 2017/07/25 22:45:21 sevan Exp $
# $Id: pbulk.sh,v 1.5 2017/08/11 19:20:20 sevan Exp $
set -e
usage="usage: ${0##*/} [-lun] [-c mk.conf.fragment] [-d nodes]"
@ -194,10 +194,7 @@ fi
# Keep "packages" in pbulk.conf and "PACKAGES" in mk.conf fragment in sync.
# Final preparations:
mkdir -p ${PACKAGES}/All
if [ ! -n "$unprivileged" ]; then
chown pbulk:"$(id -gn pbulk)" ${PACKAGES}
fi
mkdir -p ${PACKAGES}
# Let's start:
#PACKAGES=${PACKAGES} WRKOBJDIR=${TMPDIR} ${PBULKPREFIX}/bin/bulkbuild