HEADS UP: Building a 6.X or 5.X Jail on -CURRENT
Joe Marcus Clarke
marcus at marcuscom.com
Tue Jun 5 00:21:18 EDT 2007
Here is a patch that will allow a 6.X or 5.X Jail to build on -CURRENT.
It was taken from
http://users.gotsky.com/cvonk/linux/siso/ap-kernel-binutils-patch.html
and I've confirmed it does work. Applying this is somewhat tricky. If
you are using my Tinderbox 2.4 alpha code, you can use a preJailBuild
hook to patch the source prior to a build. For example, your hook could
be:
#!/bin/sh
major_version=$(echo ${JAIL} | sed -E -e 's|(^.).*$|\1|')
if [ ${major_version} -le 6 ]; then
cd ${SRCBASE}
patch -p1 < /path/to/binutils.diff
fi
exit 0
If you are not using hooks yet, you will have to hack mkjail to pause
after the update to allow you to apply the patch. The patch will need
to be applied each time the Jail is updated.
http://www.marcuscom.com/downloads/binutils.diff
Joe
--
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://marcuscom.com/pipermail/tinderbox-list/attachments/20070605/05dde773/attachment.bin
More information about the tinderbox-list
mailing list