Chromebook image - install fails

Ian Lepore ian at freebsd.org
Wed Jan 7 22:01:36 UTC 2015


On Wed, 2015-01-07 at 22:45 +0100, Torfinn Ingolfsen wrote:
> + export MAKEOBJDIRPREFIX=/home/tingo/work/cb2/obj
> + cd ./src
> + time nice -15 sudo make -j 1 -DNO_CLEAN TARGET_ARCH=armv6 DESTDIR=
> __MAKE_CONF=/home/tingo/work/cb2/config/make.conf
> SRCCONF=/home/tingo/work/cb2/config/src.conf KERNCONF=CB2 DESTDIR=/mnt
> installworld
> mkdir -p /tmp/install.uJjvI0ij
> progs=$(for prog in [ awk cap_mkdb cat chflags chmod chown  date echo
> egrep find grep id install   ln lockf make mkdir mtree mv pwd_mkdb  rm
> sed services_mkdb 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  $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.uJjvI0ij
> cp -R ${PATH_LOCALE:-"/usr/share/locale"} /tmp/install.uJjvI0ij/locale
> cd /usr/home/tingo/work/cb2/src; MAKEOBJDIRPREFIX=/usr/obj/arm.armv6
> MACHINE_ARCH=armv6 MACHINE=arm CPUTYPE=
> GROFF_BIN_PATH=/usr/obj/arm.armv6/usr/home/tingo/work/cb2/src/tmp/legacy/usr/bin GROFF_FONT_PATH=/usr/obj/arm.armv6/usr/home/tingo/work/cb2/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=/usr/obj/arm.armv6/usr/home/tingo/work/cb2/src/tmp/legacy/usr/share/tmac PATH=/usr/obj/arm.armv6/usr/home/tingo/work/cb2/src/tmp/legacy/usr/sbin:/usr/obj/arm.armv6/usr/home/tingo/work/cb2/src/tmp/legacy/usr/bin:/usr/obj/arm.armv6/usr/home/tingo/work/cb2/src/tmp/legacy/usr/games:/usr/obj/arm.armv6/usr/home/tingo/work/cb2/src/tmp/legacy/bin:/usr/obj/arm.armv6/usr/home/tingo/work/cb2/src/tmp/usr/sbin:/usr/obj/arm.armv6/usr/home/tingo/work/cb2/src/tmp/usr/bin:/usr/obj/arm.armv6/usr/home/tingo/work/cb2/src/tmp/usr/games:/tmp/install.uJjvI0ij  LD_LIBRARY_PATH=/tmp/install.uJjvI0ij  PATH_LOCALE=/tmp/install.uJjvI0ij/locale make -f Makefile.inc1    __MAKE_SHELL=/tmp/install.uJjvI0ij/sh re
>  install;

Oh... check your /usr/local/etc/sudoers file, make sure you allow
MAKEOBJDIRPREFIX to pass through the environment during sudo.  Here are
the relevant lines from my sudoers file (only the last line is relevant
to crossbuilding)...

Defaults env_keep += "PKG_PATH PKG_DBDIR PKG_TMPDIR PACKAGEROOT PACKAGESITE PKGDIR"
Defaults env_keep += "TMPDIR FTP_PASSIVE_MODE XDG_SESSION_COOKIE"
Defaults env_keep += "PORTSDIR PORTS_INDEX PORTS_DBDIR PACKAGES PKGTOOLS_CONF"
Defaults env_keep += "MAKEOBJDIRPREFIX MODULES_OVERRIDE SUBDIR_OVERRIDE"

-- Ian




More information about the freebsd-arm mailing list