HEADS UP: Building Jails on -CURRENT
Joe Marcus Clarke
marcus at marcuscom.com
Sun Jun 15 13:38:32 EDT 2008
On Sun, 2008-06-15 at 12:47 -0400, Joe Marcus Clarke wrote:
> You might get an error building Jails on recent -CURRENT relating to the
> removal of I4B. Something like this:
>
>
> "/space/jails/7.0/src/etc/Makefile", line 130: Malformed conditional
> (${MK_I4B} != "no")
> "/space/jails/7.0/src/etc/Makefile", line 132: if-less endif
>
> To workaround this, create a custom make.conf which defines MK_I4B=yes.
> For example, the above output is from a 7.0 Jail. Here, you would
> create /space/jails/7.0/make.conf with the following contents:
>
> MK_I4B= yes
Scratch this, MK_* can't be user-defined. The only way around this is
to add a Hook to patch ${JAIL}/src/etc/Makefile. This diff should work.
As should this preJailBuild Hook:
#!/bin/sh
major_version=$(echo ${jail} | sed -E -e 's|(^.).*$|\1|')
if [ ${major_version} = 7 ]; then
cd ${SRCBASE}
patch -p1 < /space/patches/etc_Makefile.diff
fi
Joe
--
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: etc_Makefile.diff
Type: text/x-patch
Size: 468 bytes
Desc: not available
URL: <http://marcuscom.com/pipermail/tinderbox-list/attachments/20080615/d86348a5/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://marcuscom.com/pipermail/tinderbox-list/attachments/20080615/d86348a5/attachment-0001.bin>
More information about the tinderbox-list
mailing list