a3e5b7b9b76938a4a4f50c509ffc757cc967ed1b Mon Sep 17 00:00:00 2001 buildAllPackages.sh: use fakeroot instead of sudo. Also, skip ports that are not in are port tree but were pulled in by dependency by the getBuildOrder.sh script. --- buildAllPackages.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildAllPackages.sh b/buildAllPackages.sh index 5dd90e2..beecb2c 100755 --- a/buildAllPackages.sh +++ b/buildAllPackages.sh @@ -8,6 +8,8 @@ PKGMK_CONF=$PKGUTILS_PATH/src/pkgmk.conf for port in $(getBuildOrder.sh); do + # skip ports we don't include in our tree + [ ! -d "${port}" ] && continue # if package is previously installed [ ! -z "$(pkginfo-cross -i | grep "$port ")" ] && continue [ ! -f "${port}/Pkgfile" ] && exit 1 @@ -19,7 +21,7 @@ for port in $(getBuildOrder.sh); do else PACKAGE="${name}#${version}-${release}.pkg.tar.gz" fi - ( sudo pkgadd-cross $PACKAGE || sudo pkgadd-cross -f $PACKAGE ) || exit 1 + ( fakeroot pkgadd-cross $PACKAGE || fakeroot pkgadd-cross -f $PACKAGE ) || exit 1 cd - || exit 1 done -- 2.7.4