Use WRKDIRPREFIX instead of hardcoded value.
Clean up after we're done.
This commit is contained in:
parent
5b07c7a8cf
commit
aa820a71ce
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133100
1 changed files with 3 additions and 1 deletions
|
@ -275,7 +275,8 @@ rm -rf ${chroot}/usr/ports
|
|||
# Don't build in a world-writable directory because some ports hardcode
|
||||
# this path and try to load things from it at runtime, which is bad for
|
||||
# user security
|
||||
mkdir ${chroot}/work
|
||||
rm -rf ${chroot}/${WRKDIRPREFIX}
|
||||
mkdir -p ${chroot}/${WRKDIRPREFIX}
|
||||
|
||||
if [ ! -z "${ccache_dir}" ]; then
|
||||
mkdir -p ${chroot}/root/.ccache/
|
||||
|
@ -381,4 +382,5 @@ if [ "${error}" = 0 ]; then
|
|||
error=$(cat ${chroot}/tmp/status)
|
||||
fi
|
||||
|
||||
rm -rf ${chroot}/${WRKDIRPREFIX}
|
||||
exit $error
|
||||
|
|
Loading…
Reference in a new issue