PDA

View Full Version : Bug in CustomBuild 1.2.11



winggundamth
02-04-2009, 04:08 AM
I found a bug in CustomBuild 1.2.11 that will cause error when install Jailed shell.

My Environment is FreeBSD 7.1 start setup from scratch with option 3 to use CustomBuild 1.2

Solution: in file /usr/local/directadmin/custombuild/build line 535 change from


SU_FILE=${JAIL_DIR}/ap${APACHE_OPT}/suexec.c

to


SU_FILE=/ap${APACHE_OPT}/suexec.c

Now I try to install DA on FreeBSD 7.1 32-bit and when it success I will write how to.

Thank you

winggundamth
02-04-2009, 06:55 AM
I found another bug when I install icu with setup from scratch or with command ./build icu It will show an error



You must use /usr/local/bin/gmake to build ICU.
Done. Making icu-4_0_1...
Trying to make icu...
Error expanding embedded variable.

*** The make has failed, do you want to try to make again? (y,n):


I found that if I use command gmake at /usr/local/directadmin/custombuild/icu/source I can be compile and install icu with no problem. But if I use make I will show an error Error expanding embedded variable.

Solution: edit /usr/local/directadmin/custombuild/build line 4404 from


make

to


gmake

and line 4431 from


make install

to


gmake install

DirectAdmin Support
02-04-2009, 04:10 PM
Hello,

Thanks for the information.

I've gone through the 1.2 script and changed all instances of:
${JAIL_DIR}/${SU_FILE}to just
${SU_FILE}to match the 1.1 scripts.
I've left this as is:
SU_FILE=${JAIL_DIR}/ap${APACHE_OPT}/suexec.cWhich is essentially the same as what you suggested, just from the other end.

Regarding ICU, I replaced:
make

with:
if [ "$OS" = "FreeBSD" ]; then
/usr/local/bin/gmake
else
make
fiand the same for "/usr/local/bin/gmake install". It seems to only be a freebsd issue.

John

winggundamth
02-04-2009, 07:43 PM
So you mean it is updated from server already?

Thank you for update :)

DirectAdmin Support
02-04-2009, 09:24 PM
Yes, "./build update".