From 4a535a501537b8d62ad3a358209f18b969a30a10 Mon Sep 17 00:00:00 2001 From: asami Date: Fri, 30 Jul 1999 06:52:02 +0000 Subject: Intentionally set up ${PORTSDIR} with symlink to catch broken ports. Suggested by: takamune@avrl.mei.co.jp --- Tools/portbuild/scripts/portbuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Tools') diff --git a/Tools/portbuild/scripts/portbuild b/Tools/portbuild/scripts/portbuild index 77f7b20..a018238 100755 --- a/Tools/portbuild/scripts/portbuild +++ b/Tools/portbuild/scripts/portbuild @@ -118,7 +118,12 @@ mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.var.dist -p ${chroot}/var \ mtree -deU -f ${chroot}/usr/src/etc/mtree/BSD.usr.dist -p ${chroot}/usr \ >/dev/null 2>&1 -mount -o -2 -r ${master}:${buildroot}/usr/ports ${chroot}/usr/ports +# intentionally set up ${PORTSDIR} with symlink to catch broken ports +mkdir -p ${chroot}/a/ports +rm -rf ${chroot}/usr/ports +mount -o -2 -r ${master}:${buildroot}/usr/ports ${chroot}/a/ports +ln -sf ../a/ports ${chroot}/usr/ports + mount -o -2 -r ${master}:${buildroot}/${branch}/src ${chroot}/usr/src mount -o -2 -r ${master}:${buildroot}/usr/opt/doc ${chroot}/usr/opt/doc @@ -164,7 +169,7 @@ fi #umount ${chroot}/proc -umount -f ${chroot}/usr/ports +umount -f ${chroot}/a/ports umount -f ${chroot}/usr/opt/doc umount -f ${chroot}/usr/src -- cgit v1.1