View Full Version : [ubuntu] Compiling ubuntu

February 4th, 2009, 08:38 AM
Hi all,

I am trying to compile Ubuntu with some specials changes on menuconfig, I clone it from the repository, with:

git clone git://kernel.ubuntu.com/ubuntu/ubuntu-hardy.git

then I create a branch on the tag:
git checkout -b Ubuntu-2.6.24-22.44 Ubuntu-2.6.24-22.44

and do the following instruction, to compile:

make-kpkg -initrd -revision=2.6.24-22.44 kernel-image kernel-headers modules_image

And i got the following log:

create_md5sums_fn () { cd $1 ; find . -type f ! -regex '.*/DEBIAN/.*' ! -regex './etc/.*' ! -regex '.*lib/modules/[^/]*/modules\..*' -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums ; if [ -z "DEBIAN/md5sums" ] ; then rm -f "DEBIAN/md5sums" ; fi ; } ; create_md5sums_fn /usr/src/ubuntu-hardy/debian/linux-image-
chmod -R og=rX /usr/src/ubuntu-hardy/debian/linux-image-
chown -R root:root /usr/src/ubuntu-hardy/debian/linux-image-
dpkg --build /usr/src/ubuntu-hardy/debian/linux-image- ..
dpkg-deb: building package `linux-image-' in `../linux-image-'.
dpkg-deb: control directory has bad permissions 2755 (must be >=0755 and <=0775)
make[1]: *** [debian/linux-image-] Error 2
make[1]: Leaving directory `/usr/src/ubuntu-hardy'
make: *** [binary/linux-image-] Error 2

Does any one can help me with this, I am very stock with this,

thanks for you help and time

Diego - omzatru@gmail.com -