I cannot build kernel_xxx packages by make-kpkg.
Egor Tur writes:
> Hi folk.
> I have problem with build kernel_image.
> I try kernel-source-2.4.20 from testing & unstable; kernel-package and modutils from testing & unstable & stable;
>
> Errors are when make-kpkg try build package:
>
> find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
> if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b /usr/src/linux/debian/tmp-image -r 2.4.20; fi
> depmod: Can't open /usr/src/linux/debian/tmp-image/lib/modules/extra/modules.dep for writing
> make[2]: *** [_modinst_post] Error 255
> make[2]: Leaving directory `/usr/src/kernel-source-2.4.20'
> make[1]: *** [real_stamp_image] Error 2
> make[1]: Leaving directory `/usr/src/kernel-source-2.4.20'
This looks like you are building as a regular user and not as root.
make-kpkg needs you to be root, or use something like fakeroot.
Jerry Quinn
Reply to: