* kernel: >> Cleaning... /usr/share/genkernel/gen_configurekernel.sh: line 99: [: : integer expression expected /usr/share/genkernel/gen_compile.sh: line 195: [: : integer expression expected * >> Compiling 2.6.12-gentoo-r4 bzimage... Reproducible: Always Steps to Reproduce: 1.genkernel --gensplash=livecd-2005.1 --gensplash-res=1024x768 --install all 2. 3. Actual Results: Compile finished successfully
This fix works and should by syntactically the same as what was attempted: /usr/share/genkernel/gen_configurekernel.sh: line 99: [: : integer expression expected Change: if [ "${KERN_24}" = '1' -o "${CMD_BOOTSPLASH}" = '1' ] to: if [ "${KERN_24}" == '1' -o "${CMD_BOOTSPLASH}" == '1' ] /usr/share/genkernel/gen_compile.sh: line 195: [: : integer expression expected Change: if [ "${VER}" -eq '2' -a "${KERN_24}" -eq '1' ] to: if [ "${VER}" == '2' -a "${KERN_24}" == '1' ]
Also: 209 and 216 in /usr/share/genkernel/gen_compile.sh Change: if [ "${VER}" -eq '2' -a "${KERN_24}" -eq '1' ] to: if [ "${VER}" == '2' -a "${KERN_24}" == '1' ] and Change: [ "${VER}" -eq '2' -a "${KERN_24}" -eq '1' ] && MAKEOPTS="${MAKEOPTS_SAVE}" to [ "${VER}" == '2' -a "${KERN_24}" == '1' ] && MAKEOPTS="${MAKEOPTS_SAVE}"
Hi, Can you try applying the following diff to gen_determineargs.sh and see if the errors also go away? diff -u -r1.38 gen_determineargs.sh --- gen_determineargs.sh 13 Jul 2005 21:16:59 -0000 1.38 +++ gen_determineargs.sh 14 Jul 2005 11:48:00 -0000 @@ -10,6 +10,7 @@ /bin/tar -xj -C ${tmp} -f ${CMD_KERNCACHE} kerncache.config if [ -e ${tmp}/kerncache.config ] then + KERN_24=0 VER=`grep ^VERSION\ \= ${tmp}/kerncache.config | awk '{ print $3 };'` PAT=`grep ^PATCHLEVEL\ \= ${tmp}/kerncache.config | awk '{ print $3 };'` SUB=`grep ^SUBLEVEL\ \= ${tmp}/kerncache.config | awk '{ print $3 };'` @@ -40,6 +40,7 @@ EXV=`grep ^EXTRAVERSION\ \= ${KERNEL_DIR}/Makefile | sed -e "s/EXTRAVERSION =//" -e "s/ //g"` if [ "${PAT}" -gt '4' -a "${VER}" -ge '2' -a -e ${KERNEL_DIR}/.config ] then + KERN_24=0 cd ${KERNEL_DIR} compile_generic prepare kernel > /dev/null 2>&1 cd - > /dev/null 2>&1
Fixed in 3.2.4; thanks!