Compiling Ubuntu kernel sources fails

Christoph Bier christoph.bier at web.de
Thu Dec 18 13:40:46 UTC 2008


Hello,

I need to compile my own Ubuntu kernel because I need to patch it to get 
support for the "Active Protection System" of my ThinkPad. For 
convenience I chose the Debian way guided by 
https://help.ubuntu.com/community/Kernel/Compile#AltBuildMethod. But it 
fails:


root at skull-tp:/usr/src/linux-source-2.6.27# fakeroot make-kpkg
--initrd --append-to-version=-aps-patch kernel-image kernel-headers
[...]
/bin/sh: line 0: [: -ge: unary operator expected
/bin/sh: line 0: [: -ge: unary operator expected
/bin/sh: line 0: [: -ge: unary operator expected
/bin/sh: line 0: [: -lt: unary operator expected
/bin/sh: line 0: [: -eq: unary operator expected
/bin/sh: line 0: [: -eq: unary operator expected
/bin/sh: line 0: [: -eq: unary operator expected
/bin/sh: line 0: [: -lt: unary operator expected
/bin/sh: line 0: [: -eq: unary operator expected
/bin/sh: line 0: [: -eq: unary operator expected
/bin/sh: line 0: [: -gt: unary operator expected
/bin/sh: line 0: [: -ge: unary operator expected
/bin/sh: line 0: [: -gt: unary operator expected
/bin/sh: line 0: [: -ge: unary operator expected
/bin/sh: line 0: [: -ge: unary operator expected

====== making target CONFIG-common [new prereqs: testdir]======

====== making target debian/stamp-conf [new prereqs: ]======
The changelog says we are creating 2.6.27.2-aps-patch.
However, I thought the version is ..-aps-patch
exit 3
make: *** [debian/stamp-conf] Error 3



I already changed /bin/sh from Dash to Bash because I read about 
problems with dash:

root at skull-tp:/usr/src/linux-source-2.6.27# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2008-12-07 11:37 /bin/sh -> bash

But it didn't help. What's going wrong here? I had the same issue last 
week with a vanilla kernel (but now I try to compile the Ubuntu kernel 
sources).

Best
Christoph
-- 
+++ Typografie-Regeln: http://zvisionwelt.de/downloads.html (1.6)





More information about the ubuntu-users mailing list