Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98944 - genkernel 3.2.3 errors in code
Summary: genkernel 3.2.3 errors in code
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-13 18:39 UTC by Kameron Hoffs
Modified: 2005-07-14 14:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kameron Hoffs 2005-07-13 18:39:56 UTC
* 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
Comment 1 Kameron Hoffs 2005-07-13 18:47:58 UTC
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' ]

Comment 2 Kameron Hoffs 2005-07-13 19:18:11 UTC
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}"
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2005-07-14 04:48:58 UTC
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
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2005-07-14 14:33:55 UTC
Fixed in 3.2.4; thanks!