Package: kernel-package Version: 11.017 Followup-For: Bug #514482 The problem is that /usr/src is SGID. After one creates a directory in /usr/src, it becomes SGID too.
/home/linux-git# mkdir /usr/src/linux-2.6.29-rc5 /home/linux-git# git archive v2.6.29-rc5 | (cd /usr/src/linux-2.6.29-rc5/; tar xvf -) /home/linux-git# cd /usr/src/linux-2.6.29-rc5/ /usr/src/linux-2.6.29-rc5# cp ~/config .config /usr/src/linux-2.6.29-rc5# make-kpkg --append-to-version -20feb2009 --revision 1 debian exec make kpkg_version=11.017 -f /usr/share/kernel-package/ruleset/minimal.mk debian DEBIAN_REVISION=1 APPEND_TO_VERSION=-20feb2009 ====== making target debian/stamp/conf/minimal_debian [new prereqs: ]====== This is kernel package version 11.017. test -d debian || mkdir debian test ! -e stamp-building || rm -f stamp-building install -p -m 755 /usr/share/kernel-package/rules debian/rules for file in ChangeLog Control Control.bin86 config templates.in rules; do \ cp -f /usr/share/kernel-package/$file ./debian/; \ done for dir in Config docs examples ruleset scripts pkg po; do \ cp -af /usr/share/kernel-package/$dir ./debian/; \ done test -f debian/control || sed -e 's/=V/2.6.29-rc5-20feb2009/g' \ -e 's/=D/1/g' -e 's/=A/amd64/g' \ -e 's/=SA//g' -e 's/=L/ /g' \ -e 's/=I//g' \ -e 's/=CV/2.6/g' \ -e 's/=M/Dmitri Gribenko <griboz...@gmail.com>/g' \ -e 's/=ST/linux/g' -e 's/=B/x86_64/g' \ /usr/share/kernel-package/Control > debian/control test -f debian/changelog || sed -e 's/=V/2.6.29-rc5-20feb2009/g' \ -e 's/=D/1/g' -e 's/=A/amd64/g' \ -e 's/=ST/linux/g' -e 's/=B/x86_64/g' \ -e 's/=M/Dmitri Gribenko <griboz...@gmail.com>/g' \ /usr/share/kernel-package/changelog > debian/changelog chmod 0644 debian/control debian/changelog test -d ./debian/stamp || mkdir debian/stamp make -f debian/rules debian/stamp/conf/kernel-conf make[1]: Entering directory `/usr/src/linux-2.6.29-rc5' ====== making target debian/stamp/conf/kernel-conf [new prereqs: ]====== test ! -e scripts/package/builddeb || mv -f scripts/package/builddeb scripts/package/builddeb.kpkg-dist test ! -e scripts/package/Makefile || test -f scripts/package/Makefile.kpkg-dist || (mv -f scripts/package/Makefile scripts/package/Makefile.kpkg-dist && (echo "# Dummy file "; echo "help:") > scripts/package/Makefile) make EXTRAVERSION=-rc5-20feb2009 ARCH=x86_64 \ oldconfig; make[2]: Entering directory `/usr/src/linux-2.6.29-rc5' scripts/kconfig/conf -o arch/x86/Kconfig # # configuration written to .config # make[2]: Leaving directory `/usr/src/linux-2.6.29-rc5' make EXTRAVERSION=-rc5-20feb2009 ARCH=x86_64 prepare make[2]: Entering directory `/usr/src/linux-2.6.29-rc5' scripts/kconfig/conf -s arch/x86/Kconfig make[2]: Leaving directory `/usr/src/linux-2.6.29-rc5' make[2]: Entering directory `/usr/src/linux-2.6.29-rc5' CHK include/linux/version.h UPD include/linux/version.h CHK include/linux/utsrelease.h UPD include/linux/utsrelease.h SYMLINK include/asm -> include/asm-x86 CC kernel/bounds.s GEN include/linux/bounds.h CC arch/x86/kernel/asm-offsets.s GEN include/asm/asm-offsets.h CALL scripts/checksyscalls.sh make[2]: Leaving directory `/usr/src/linux-2.6.29-rc5' echo done > debian/stamp/conf/kernel-conf make[1]: Leaving directory `/usr/src/linux-2.6.29-rc5' make -f debian/rules debian/stamp/conf/full-changelog make[1]: Entering directory `/usr/src/linux-2.6.29-rc5' ====== making target debian/stamp/conf/full-changelog [new prereqs: ]====== ( test -f debian/official && test -f debian/control) || \ sed -e 's/=V/2.6.29-rc5-20feb2009/g' -e 's/=D/1/g' \ -e 's/=A/amd64/g' -e 's/=SA//g' \ -e 's/=L/lilo (>= 19.1) | grub, /g' -e 's/=I//g' \ -e 's/=CV/2.6/g' \ -e 's/=M/Dmitri Gribenko <griboz...@gmail.com>/g' \ -e 's/=ST/linux/g' -e 's/=B/x86_64/g' \ /usr/share/kernel-package/Control> debian/control test -f debian/official || \ sed -e 's/=V/2.6.29-rc5-20feb2009/g' -e 's/=D/1/g' \ -e 's/=A/amd64/g' -e 's/=M/Dmitri Gribenko <griboz...@gmail.com>/g' \ -e 's/=ST/linux/g' -e 's/=B/x86_64/g' \ /usr/share/kernel-package/changelog > debian/changelog chmod 0644 debian/control debian/changelog test -f debian/official || \ for file in ChangeLog Control Control.bin86 config templates.in rules; do \ cp -f /usr/share/kernel-package/$file ./debian/; \ done test -f debian/official || \ for dir in Config docs examples ruleset scripts pkg po; do \ cp -af /usr/share/kernel-package/$dir ./debian/; \ done install -p -m 755 /usr/share/kernel-package/rules debian/rules make[1]: Leaving directory `/usr/src/linux-2.6.29-rc5' echo done > debian/stamp/conf/minimal_debian /usr/src/linux-2.6.29-rc5# ls -al drwxr-sr-x 24 root src 928 Фев 20 13:20 . drwxrwsr-x 5 root src 1808 Фев 20 13:13 .. drwxrwxr-x 23 root root 616 Фев 14 01:31 arch drwxrwxr-x 2 root root 904 Фев 14 01:31 block -rw-r--r-- 1 root src 61009 Фев 20 13:20 .config -rw-r--r-- 1 root src 61009 Фев 20 13:17 .config.old -rw-rw-r-- 1 root root 18693 Фев 14 01:31 COPYING -rw-rw-r-- 1 root root 93499 Фев 14 01:31 CREDITS drwxrwxr-x 3 root root 2112 Фев 14 01:31 crypto drwxr-sr-x 10 root src 464 Фев 20 13:20 debian drwxrwxr-x 82 root root 6096 Фев 14 01:31 Documentation .... drwxr-sr-x 2 root src 48 Фев 20 13:20 .tmp_versions .... /usr/src/linux-2.6.29-rc5# LANG=C stat /usr/src File: `/usr/src' Size: 1808 Blocks: 3 IO Block: 4096 directory Device: 808h/2056d Inode: 859 Links: 5 Access: (2775/drwxrwsr-x) Uid: ( 0/ root) Gid: ( 40/ src) Access: 2009-02-20 13:27:13.000000000 +0200 Modify: 2009-02-20 13:13:46.000000000 +0200 Change: 2009-02-20 13:13:46.000000000 +0200 /usr/src/linux-2.6.29-rc5# LANG=C make-kpkg --append-to-version -20feb2009 --revision 1 kernel-image chmod -R og=rX /usr/src/linux-2.6.29-rc5/debian/linux-image-2.6.29-rc5-20feb2009 chown -R root:root /usr/src/linux-2.6.29-rc5/debian/linux-image-2.6.29-rc5-20feb2009 dpkg --build /usr/src/linux-2.6.29-rc5/debian/linux-image-2.6.29-rc5-20feb2009 .. dpkg-deb: building package `linux-image-2.6.29-rc5-20feb2009' in `../linux-image-2.6.29-rc5-20feb2009_1_amd64.deb'. dpkg-deb: control directory has bad permissions 2755 (must be >=0755 and <=0775) make[2]: *** [debian/stamp/binary/linux-image-2.6.29-rc5-20feb2009] Error 2 make[2]: Leaving directory `/usr/src/linux-2.6.29-rc5' make[1]: *** [debian/stamp/binary/pre-linux-image-2.6.29-rc5-20feb2009] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.29-rc5' make: *** [kernel-image] Error 2 -- System Information: Debian Release: 5.0 APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.29-rc2-21jan2009 (SMP w/2 CPU cores) Locale: LANG=ru_UA.UTF-8, LC_CTYPE=ru_UA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages kernel-package depends on: ii binutils 2.18.1~cvs20080103-7 The GNU assembler, linker and bina ii debianutils 2.31 Miscellaneous utilities specific t ii dpkg 1.14.25 Debian package management system ii dpkg-dev 1.14.25 Debian package development tools ii file 4.26-2 Determines file type using "magic" ii gcc [c-compiler] 4:4.3.2-2 The GNU C compiler ii gcc-4.3 [c-compiler 4.3.3-3 The GNU C compiler ii gettext 0.17-6 GNU Internationalization utilities ii make 3.81-5 The GNU version of the "make" util ii module-init-tools 3.4-1 tools for managing Linux kernel mo ii perl 5.10.0-19 Larry Wall's Practical Extraction ii po-debconf 1.0.15 manage translated Debconf template ii util-linux 2.13.1.1-1 Miscellaneous system utilities Versions of packages kernel-package recommends: ii bzip2 1.0.5-1 high-quality block-sorting file co ii libc6-dev [libc-dev] 2.7-18 GNU C Library: Development Librari Versions of packages kernel-package suggests: pn docbook-utils <none> (no description available) ii e2fsprogs 1.41.3-1 ext2/ext3/ext4 file system utiliti ii initramfs-tools [linux-in 0.92o tools for generating an initramfs pn libdb3-dev <none> (no description available) ii libncurses5-dev [libncurs 5.7+20081213-1 developer's libraries and docs for pn linux-source | kernel-sou <none> (no description available) pn xmlto <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org