Thanks Kyle, but it seems that rebuilding the kernel is a little harder, or perhaps the linux-source package is broken. I had tried basically your suggestion before and failed, and I just tried again.
I installed linux-source-2.6.20 and unpacked /usr/src/linux-source-2.6.20.tar.bz2, and then in the resulting directory I ran "dpkg-buildpackage -rfakeroot" as you suggested. That did some stuff but eventually died with:
====== making target clean [new prereqs: stamp-clean]======
dpkg-source -b linux-source-2.6.20
dpkg-parsechangelog: error: cannot open ./linux-source-2.6.20/debian/changelog to find format: No such file or directory
dpkg-source: error: syntax error in parsed version of changelog at line 0: empty file
the command "fakeroot debian/rules binary-debs flavours=generic" dies with
====== making target .config [new prereqs: Makefile]======
test -f .config || test ! -f .config.save || \ cp -pf .config.save .config
test -f .config || test ! -f ./debian/Config/config || \ cp -pf ./debian/Config/config .config
test -f .config || test ! -f ./debian/config || \ cp -pf ./debian/config .config
test -f .config || (echo "*** Need a config file .config" && false)
====== making .config because of Makefile ======
test -f .config || test ! -f .config.save || \ cp -pf .config.save .config
test -f .config || test ! -f .config || \ cp -pf .config .config
test -f .config || test ! -f ./debian/config || \ cp -pf ./debian/config .config
test -f .config || (echo "*** Need a config file .config" && false)
make: *** No rule to make target `binary-debs'. Stop.
Thanks Kyle, but it seems that rebuilding the kernel is a little harder, or perhaps the linux-source package is broken. I had tried basically your suggestion before and failed, and I just tried again.
I installed linux-source-2.6.20 and unpacked /usr/src/ linux-source- 2.6.20. tar.bz2, and then in the resulting directory I ran "dpkg-buildpackage -rfakeroot" as you suggested. That did some stuff but eventually died with:
====== making target clean [new prereqs: stamp-clean]====== elog: error: cannot open ./linux- source- 2.6.20/ debian/ changelog to find format: No such file or directory
dpkg-source -b linux-source-2.6.20
dpkg-parsechang
dpkg-source: error: syntax error in parsed version of changelog at line 0: empty file
the command "fakeroot debian/rules binary-debs flavours=generic" dies with
====== making target .config [new prereqs: Makefile]======
test -f .config || test ! -f .config.save || \
cp -pf .config.save .config Config/ config || \
cp -pf ./debian/ Config/ config .config
cp -pf ./debian/config .config
test -f .config || test ! -f ./debian/
test -f .config || test ! -f ./debian/config || \
test -f .config || (echo "*** Need a config file .config" && false)
====== making .config because of Makefile ======
test -f .config || test ! -f .config.save || \
cp -pf .config.save .config
cp -pf .config .config
cp -pf ./debian/config .config
test -f .config || test ! -f .config || \
test -f .config || test ! -f ./debian/config || \
test -f .config || (echo "*** Need a config file .config" && false)
make: *** No rule to make target `binary-debs'. Stop.
So it ain't that easy :)