kernel build script error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kernel-package (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: kernel-package
Ubuntu 10.04 LTS (server, not desktop)
kernel-package: 12.032
This is an extract from building 2.6.33.3 kernel with RT patches applied
my command was:
INSTALL_
make[1]: Leaving directory `/usr/src/
COLUMNS=150 dpkg -l 'gcc*' perl dpkg 'libc6*' binutils make dpkg-dev |\
awk '$1 ~ /[hi]i/ { printf("%s-%s\n", $2, $3) }'> debian/
uname -a >> debian/
echo using the compiler: >> debian/
if [ -f -f include/
grep LINUX_COMPILER include/
sed -e 's/.*LINUX_COMPILER "//' -e 's/"$//' >> \
elif [ -f include/
grep LINUX_COMPILER include/
sed -e 's/.*LINUX_COMPILER "//' -e 's/"$//' >> \
fi
[: 9: -f: unexpected operator
echo done > debian/
/usr/bin/make -f ./debian/rules debian/
make[1]: Entering directory `/usr/src/
====== making target debian/
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: kernel-package 12.032
Uname: Linux 2.6.33.3-rt19-bdd i686
Architecture: i386
Date: Thu May 27 14:22:29 2010
InstallationMedia: Ubuntu-Server 10.04 LTS "Lucid Lynx" - Release i386 (20100427)
PackageArchitec
ProcEnviron:
SHELL=/bin/bash
LANG=en_US.UTF-8
SourcePackage: kernel-package
Hi,
The simple fix is to delete this one "-f" in the referenced "if [ -f -f include/ generated/ compile. h ]; then \ <<<<==== this line is the error" line. So the line reads: generated/ compile. h ]; then \
if [ -f include/
I also can confirm that this bug doesn't exist in the Desktop version. Strange. I run into it on Ubuntu Server amd64.
- a8
PS: To say it in diff:
--- common.mk 2010-09-01 23:33:31.000000000 +0200 stamp/build/ info stamp/build/ info stamp/build/ info generated/ compile. h ]; then \ generated/ compile. h ]; then \ generated/ compile. h | \
debian/ stamp/build/ info;
+++ common.mk.new 2010-09-01 23:34:09.000000000 +0200
@@ -336,7 +336,7 @@
@echo this was built on a machine with the kernel: >> debian/
uname -a >> debian/
echo using the compiler: >> debian/
- if [ -f -f include/
+ if [ -f include/
grep LINUX_COMPILER include/
sed -e 's/.*LINUX_COMPILER "//' -e 's/"$$//' >> \