diff options
author | asami <asami@FreeBSD.org> | 1999-07-30 06:52:02 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1999-07-30 06:52:02 +0000 |
commit | 4a535a501537b8d62ad3a358209f18b969a30a10 (patch) | |
tree | 674767d274869db5eb94678f16ac00b6904f0b10 /Tools | |
parent | 49596c69e2a495bae87c6a3ecda7ca963c40a73d (diff) | |
download | FreeBSD-ports-4a535a501537b8d62ad3a358209f18b969a30a10.zip FreeBSD-ports-4a535a501537b8d62ad3a358209f18b969a30a10.tar.gz |
Intentionally set up ${PORTSDIR} with symlink to catch broken ports.
Suggested by: takamune@avrl.mei.co.jp
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/portbuild | 9 |
1 files changed, 7 insertions, 2 deletions
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 |