Your message dated Tue, 07 Apr 2009 00:24:47 -0500
with message-id <[email protected]>
and subject line Re: Bug#519153: make-kpkg creates directories with wrong
permissions
has caused the Debian Bug report #519153,
regarding make-kpkg creates directories with wrong permissions
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
519153: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=519153
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: kernel-package
Version: 11.015
Severity: important
I downloaded latest 2.6.28 kernel, unpacked it into /usr/scr/linux (as
root), configured and tried to make a package with make-kpkg (again
under root). But make-kpkg failed:
chmod -R og=rX /usr/src/linux/debian/linux-image-2.6.28.7krasu
chown -R root:root /usr/src/linux/debian/linux-image-2.6.28.7krasu
dpkg --build
/usr/src/linux/debian/linux-image-2.6.28.7krasu ..
dpkg-deb: сборка пакета linux-image-2.6.28.7krasu в файл
../linux-image-2.6.28.7krasu_2.6.28.7krasu-10.00.Custom_i386.deb.
dpkg-deb: у управляющего каталога установлен недопустимый режим
доступа 2755 (должен быть >=0755 и <=0775)
make[2]: *** [debian/stamp/binary/linux-image-2.6.28.7krasu] Ошибка 2
make[2]: Leaving directory `/usr/src/linux'
make[1]: *** [debian/stamp/binary/pre-linux-image-2.6.28.7krasu] Ошибка 2
make[1]: Leaving directory `/usr/src/linux'
make: *** [kernel_image] Ошибка 2
The following solution helped me:
# chmod -s /usr/src/linux/debian/linux-image-2.6.28.7krasu/DEBIAN
After this make-kpkg created a package without any problem.
This is important bug because make-kpkg creates directories with wrong
permissions and fails to create a package at all.
--
--- End Message ---
--- Begin Message ---
On Tue, Mar 10 2009, Dmitry Baryshev wrote:
> I downloaded latest 2.6.28 kernel, unpacked it into /usr/scr/linux (as
> root), configured and tried to make a package with make-kpkg (again
> under root). But make-kpkg failed:
>
> chmod -R og=rX /usr/src/linux/debian/linux-image-2.6.28.7krasu
> chown -R root:root /usr/src/linux/debian/linux-image-2.6.28.7krasu
> dpkg --build
> /usr/src/linux/debian/linux-image-2.6.28.7krasu ..
> dpkg-deb: сборка пакета linux-image-2.6.28.7krasu в файл
> ../linux-image-2.6.28.7krasu_2.6.28.7krasu-10.00.Custom_i386.deb.
> dpkg-deb: у управляющего каталога установлен недопустимый режим
> доступа 2755 (должен быть >=0755 и <=0775)
> make[2]: *** [debian/stamp/binary/linux-image-2.6.28.7krasu] Ошибка 2
> make[2]: Leaving directory `/usr/src/linux'
> make[1]: *** [debian/stamp/binary/pre-linux-image-2.6.28.7krasu] Ошибка 2
> make[1]: Leaving directory `/usr/src/linux'
> make: *** [kernel_image] Ошибка 2
>
> The following solution helped me:
>
> # chmod -s /usr/src/linux/debian/linux-image-2.6.28.7krasu/DEBIAN
>
> After this make-kpkg created a package without any problem.
>
> This is important bug because make-kpkg creates directories with wrong
> permissions and fails to create a package at all.
Well, kernel package makes directories with the command:
install -p -d -o root -g root -m 755 /path/to/DEBIAN
If you have created a kernel source tree, unset the group suid
bit for the directory for the source tree. Most unix commands that
create and manipulate directories will not reset g-s bit.
manoj
--
O cursed ambition, thou devouring bird, how dost thou from the field of
honesty pick every grain of profit or delight, and mock the reaper's
toil! -- Harvard
Manoj Srivastava <[email protected]> <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
--- End Message ---