Creating a 13/STABLE chroot from source

From: Jonathan Chen <jonc_at_chen.org.nz>
Date: Sun, 13 Jun 2021 08:35:32 +1200
Hi,

I'm trying installkernel/installworld to create a chroot'd system,
using the output from a pre-built source tree. The following command
used to work with 12/STABLE, but it's now failing on 13/STABLE:

src,8:27am# make DESTDIR=/tmp/t installkernel installworld
....
make[1]: "/usr/obj/usr/src/amd64.amd64/toolchain-metadata.mk" line 1:
Using cached toolchain metadata from build at jade.inside.chen.org.nz
on Sun 30 May 2021 11:27:02 NZST
--------------------------------------------------------------
>>> Install check world
--------------------------------------------------------------
mkdir -p /tmp/install.kZJR36et
progs=$(for prog in [ awk cap_mkdb cat chflags chmod chown cmp cp
date echo egrep find grep id install   ln make mkdir mtree mv pwd_mkdb
 rm sed services_mkdb sh sort strip sysctl test true uname wc  zic
tzsetup  makewhatis; do  if progpath=`env
PATH=/usr/obj/usr/src/amd64.amd64/tmp/bin:/usr/obj/usr/src/amd64.amd64/tmp/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sbin:/usr/bin
which $prog`; then  echo $progpath;  else  echo "Required tool $prog
not found in PATH ($PATH)." >&2;  exit 1;  fi;  done);  if [ -z "" ] ;
then  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);  fi;  cp $libs $progs /tmp/install.kZJR36et
Required library libdialog.so.8 not found.
*** Error code 1

Stop.
make[1]: stopped in /usr/src
*** Error code 1

Stop.
make: stopped in /usr/src

Is there a new way to do this?

Cheers.
-- 
Jonathan Chen <jonc_at_chen.org.nz>
Received on Sat Jun 12 2021 - 20:35:32 UTC

Original text of this message