Re: Can't build RELENG_6 from HEAD?

Matthew Jacob writes:
| gcc 4.X will barf all over RELENG_6 code. Better start thinking about
| a jailed build.

And if you do script something like:


REVISION=`cd ${ROOT}/sys/conf && grep REVISION= | cut -f2 -d'"'`
BRANCH=`cd ${ROOT}/sys/conf && grep BRANCH= | head -n1 | cut -f2 -d'"'`
UNAME_v="$UNAME_s $UNAME_r #0: Thu May 4 07:54:55 PDT 2006 root@a21p:/data/home/ambrisko/current/usr/src/sys/$UNAME_p/compile/THINK"
OSVERSION=`awk '/\#define.*__FreeBSD_version/ { print $3 }' < ${ROOT}/sys/sys/param.h`
if [ -r $ROOT/dev/zero ]
echo dev already mounted
sudo mount -t devfs dev $ROOT/dev
sudo ln -sf $ROOT/libexec/
sudo sh -c '( echo "" ;\
echo "") > ${ROOT}/etc/libmap.conf'
sudo cp ${ROOT}/etc/libmap.conf ${ROOT}/etc/libmap32.conf
sudo chroot $ROOT

You can then build i386 on amd64 or i386 on i386. Ports will build and
pkg_add works :-) Inside uname -a will report 6.X for i386.

I think it would be nice to put some of this into the src/Makefile
so you can do "make chroot" and it would set this up and throw you into
a chroot/jail/vimage.

At work we extended it to 4.X. This way we can build everything
on a FreeBSD amd64 machine for 6.X i386, 6.X amd64 or 4.X i386 code.
The 4.X is important to link with 3rd party code. It simplifies our
build machines and I can build our stuff on a amd64 -current box.

Doug A.
freebsd-current@xxxxxxxxxxx mailing list
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"

Relevant Pages

  • Re: Kickstart post install config
    ... You will probably need to ensure that an exact copy of the script you are ... running is in the same relative location in teh chrooted environment ... > the chroot and then manually chroot to /mnt/sysimage and execute the rest of ...
  • RE: Kickstart post install config
    ... so the alternative would be to setup another script and have that other ... > /mnt/sysimage) but I would like to be able to execute some commands ... > the chroot and then manually chroot to /mnt/sysimage and execute the rest ... > unsubscribe ...
  • Re: Daemons in schroot or how to start chroot automatically
    ... You should set up a usr/sbin/policy-rc.d script in your chroot. ... That will prevent installations from starting daemons in the chroot. ... The program I'd like to jail is a daemon which means I should use the ... What packages should I install? ...
  • Re: chroot to install packages
    ... linux distro and then run commands. ... Probably the easiest way to do this is to divide your script into two ... one piece runs inside the chroot, ... you should read the docs for the subprocess ...
  • Re: How do I configure thttpd to run cgi scripts ?
    ... echo "Hello CGI World!" ... That is my entire script. ... >> # Sets whether thttpd will chroot after starting. ...