Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Mar 2016 16:41:06 +0100
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        freebsd-ports <freebsd-ports@freebsd.org>
Subject:   poudriere: can not set MAKEOBJDIRPREFIX
Message-ID:  <20160308164106.6c1a0807@freyja.zeit4.iv.bundesimmobilien.de>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160308164106.6c1a0807>