poudriere: can not set MAKEOBJDIRPREFIX

O. Hartmann ohartman at zedat.fu-berlin.de
Tue Mar 8 15:41:10 UTC 2016


I have already built 10-STABLE and try now to use this built as base for a jail
in poudriere, using MAKEOBJDIRPREFIX; the already built system is ready and
fine residing under

MAKEOBJDIRPREFIX=/empty/10-STABLE/obj

Using

export MAKEOBJDIRPREFIX=$MAKEOBJDIRPREFIX in poudriere.conf

and

env MAKEOBJDIRPREFIX=/empty/10-STABLE/obj poudriere jail -c -j 10-stable-amd64 \
-a amd64 -v stable/10 -m src=/empty/10-STABLE/src

results in an immediate error:

[...]
export
PATH=/empty/10-STABLE/src/tmp/legacy/usr/sbin:/empty/10-STABLE/src/tmp/legacy/usr/bin:/empty/10-STABLE/src/tmp/legacy/usr/games:/empty/10-STABLE/src/tmp/legacy/bin:/sbin:/bin:/usr/sbin:/usr/bin ;
progs=$(for prog in [ awk cap_mkdb cat chflags chmod chown  date echo egrep
find grep id install install-info  ln lockf make mkdir mtree nmtree mv
pwd_mkdb  rm sed sh strip sysctl test true uname wc zic tzsetup   makewhatis;
do  if progpath=`which $prog`; then  echo $progpath;  else  echo "Required tool
$prog not found in PATH." >&2;  exit 1;  fi;  done);  libs=$(ldd -f "%o %p\n"
-f "%o %p\n" $progs 2>/dev/null | sort -u |  while read line; do  set --
$line;  if [ "$2 $3" != "not found" ]; then  echo $2;  else  echo "Required
library $1 not found." >&2;  exit 1;  fi;  done);  cp $libs
$progs /tmp/install.RF32dD2c Required tool install-info not found in PATH. ***
Error code 1

[...]

This is really funny: ommitting the MAKEOBJDIRPREFIX=/empty/10-STABLE/obj part
results in a prepended "/usr/obj" as expected to the path portion given by
src=. With setting the environment it seems that the prepended string is ZERO!

How to tell this piece of software to use MAKEOBJDIRPREFIX?

regards,

Oliver


More information about the freebsd-ports mailing list