[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Kernel build with kpkg (was Install of VMware)



On Sat, 23 Sep 2000, Tom Hoover wrote:
> I've successfully built a new kernel package with make-kpkg, but only if I use:
> 
>         fakeroot -- make-kpkg --revision=custom.X.XX.XXXX kernel_image

I'll usually run fakeroot make-kpkg ...  I've never needed that --

> Am I misreading the docs?  

I don't know. What I could suggest you to do is this:

make-kpkg --revision... build
fakeroot make -f debian/rules kernel-image-deb
fakeroot make-kpkg modules_image

The above sequence has never failed me. It builds the kernel without a
fakeroot jail, and does the install-and-create-a-deb pass inside a single
fakeroot jail.

I dislike compiling the modules under fakeroot (and the fakeroot docs do
warn not to do this), but ALSA seems not to mind it. Anyway, I dislike the
horrible idea of compiling something as true root much more, so... (and I've
not checked for another way to do it yet. Might as well go read the source
of kernel-package and file a bug if there isn't one...)

> Here's the last few lines of messages when the build fails:
[...] 
> install -p -d -o root -g root -m 755 debian/tmp-image/DEBIAN
> install: debian/tmp-image: Operation not permitted
> make: *** [kernel-image-deb] Error 1

This suggests a bug in kernel-package. It's not wrapping the *whole*
install-and-create-the-deb pass with the root wrapper, apparently.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

Attachment: pgpcxhnDe8bp4.pgp
Description: PGP signature


Reply to: