Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/poudriere.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBryan Drewery <bryan@shatow.net>2019-12-10 02:41:33 +0300
committerBryan Drewery <bryan@shatow.net>2019-12-10 02:41:40 +0300
commitcc35ff5985b31613af35484977e33da9d5fb51b9 (patch)
tree9860409d1ba1d1ba6822cbc7fe35148f37d433eb /src
parent101d409f70517d88c75f6214b3d004c931d7f668 (diff)
Add some non -a overlay tests.
This also required allowing /overlays to be renamed.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/share/poudriere/common.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/share/poudriere/common.sh b/src/share/poudriere/common.sh
index b2d80951..97c05ef0 100755
--- a/src/share/poudriere/common.sh
+++ b/src/share/poudriere/common.sh
@@ -806,7 +806,7 @@ _lookup_portdir() {
local o _ptdir
for o in ${OVERLAYS}; do
- _ptdir="/overlays/${o}/${_port}"
+ _ptdir="${OVERLAYSDIR}/${o}/${_port}"
if [ -d "${MASTERMNTREL}${_ptdir}" ]; then
setvar "${_varname}" "${_ptdir}"
return
@@ -1489,7 +1489,7 @@ common_mtree() {
./compat/linux/proc
./dev
./distfiles
- ./overlays
+ .${OVERLAYSDIR}
./packages
./portdistfiles
./proc
@@ -1834,7 +1834,7 @@ do_portbuild_mounts() {
# clone will inherit from the ref jail
if [ ${mnt##*/} = "ref" ]; then
mkdir -p "${mnt}${PORTSDIR}" \
- "${mnt}/overlays" \
+ "${mnt}${OVERLAYSDIR}" \
"${mnt}/wrkdirs" \
"${mnt}/${LOCALBASE:-/usr/local}" \
"${mnt}/distfiles" \
@@ -1844,7 +1844,7 @@ do_portbuild_mounts() {
"${mnt}${HOME}/.ccache" \
"${mnt}/usr/home"
for o in ${OVERLAYS}; do
- mkdir -p "${mnt}/overlays/${o}"
+ mkdir -p "${mnt}${OVERLAYSDIR}/${o}"
done
ln -fs "usr/home" "${mnt}/home"
fi
@@ -1870,7 +1870,7 @@ do_portbuild_mounts() {
err 1 "Failed to mount the ports directory "
for o in ${OVERLAYS}; do
_pget odir "${o}" mnt || err 1 "Missing mnt metadata for overlay ${o}"
- ${NULLMOUNT} -o ro "${odir}" "${mnt}/overlays/${o}"
+ ${NULLMOUNT} -o ro "${odir}" "${mnt}${OVERLAYSDIR}/${o}"
done
mount_packages -o ro
${NULLMOUNT} ${DISTFILES_CACHE} ${mnt}/distfiles ||
@@ -2630,7 +2630,7 @@ jail_start() {
DISTDIR=/distfiles
EOF
for o in ${OVERLAYS}; do
- echo "OVERLAYS+=/overlays/${o}"
+ echo "OVERLAYS+=${OVERLAYSDIR}/${o}"
done >> "${tomnt}/etc/make.conf"
[ -z "${NO_FORCE_PACKAGE}" ] && \
echo "FORCE_PACKAGE=yes" >> "${tomnt}/etc/make.conf"
@@ -6600,7 +6600,7 @@ test_port_origin_exist() {
local o
for o in ${OVERLAYS}; do
- if [ -d "${MASTERMNTREL}/overlays/${o}/${_origin}" ]; then
+ if [ -d "${MASTERMNTREL}${OVERLAYSDIR}/${o}/${_origin}" ]; then
return 0
fi
done
@@ -8075,6 +8075,7 @@ if [ "$(mount -t fdescfs | awk '$3 == "/dev/fd" {print $3}')" = "/dev/fd" ]; the
HAVE_FDESCFS=1
fi
+: ${OVERLAYSDIR:=/overlays}
: ${RELATIVE_PATH_VARS:=SHASH_VAR_PATH MASTERMNTREL}
TIME_START=$(clock -monotonic)