Skip to content

Commit

Permalink
Install TEST_DEPENDS from packages during the package phase
Browse files Browse the repository at this point in the history
  • Loading branch information
arrowd authored Mar 10, 2024
1 parent 86d95d6 commit 7ac7541
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/share/poudriere/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4918,6 +4918,14 @@ build_port() {

case "${phase}" in
"package")
oldphaseenv="$phaseenv"
phaseenv="${phaseenv:+${phaseenv} }USE_PACKAGE_DEPENDS_ONLY=1"
JUSER=root
injail /usr/bin/env ${phaseenv:+-S "${phaseenv}"} \
/usr/bin/make -C ${portdir} ${MAKE_ARGS} \
test-depends || return 1
phaseenv="$oldphaseenv"
JUSER=${jailuser}
echo "PACKAGES=/.npkg" >> "${mnt:?}/etc/make.conf"
# Create sandboxed staging dir for new package for this build
rm -rf "${PACKAGES:?}/.npkg/${pkgname:?}"
Expand Down

0 comments on commit 7ac7541

Please sign in to comment.