* make-kpkg target failing for v3.1
@ 2011-10-24 19:04 Steven R. Wright
2011-10-24 19:21 ` Sven Joachim
0 siblings, 1 reply; 2+ messages in thread
From: Steven R. Wright @ 2011-10-24 19:04 UTC (permalink / raw)
To: linux-kernel
while trying to build kernel v3.1 today, i ran into this error:
****************************************
create_md5sums_fn () { cd $1 ; find . -type f ! -regex './DEBIAN/.*' !
-regex './var/.*' -printf '%P\0' | xargs -r0 md5sum >
DEBIAN/md5sums ; if [ -z "DEBIAN/md5sums" ] ; then rm -f
"DEBIAN/md5sums" ; fi ; } ; create_md5sums_fn
/usr/src/linux-3.1/debian/linux-image-3.1.0
chmod -R og=rX /usr/src/linux-3.1/debian/linux-image-3.1.0
chown -R root:root /usr/src/linux-3.1/debian/linux-image-3.1.0
dpkg --build
/usr/src/linux-3.1/debian/linux-image-3.1.0 ..
dpkg-deb: error: control directory has bad permissions 2755 (must be
>=0755 and <=0775)
make[2]: *** [debian/stamp/binary/linux-image-3.1.0] Error 2
make[2]: Leaving directory `/usr/src/linux-3.1'
make[1]: *** [debian/stamp/binary/pre-linux-image-3.1.0] Error 2
make[1]: Leaving directory `/usr/src/linux-3.1'
make: *** [kernel_image] Error 2
****************************************
i have not encountered this error building the kernel in v3.0.4 and
before (i generally build and install most of the new stable releases,
and have done so since v.2.4). the command i used, and always have, was:
make-kpkg --initrd --rootcmd fakeroot kernel_image
there is a difference in the perms in a 3.1 build tree vs. a 3.0.4 tree
#52 decca:/usr/src/linux-3.1/debian
> ls -l | egrep "^d"
drwxr-sr-x 2 root root 4096 Nov 18 2010 Config
drwxr-sr-x 3 root root 4096 Nov 18 2010 docs
drwxr-sr-x 3 root root 4096 Nov 18 2010 examples
drwxr-sr-x 7 root root 4096 Oct 24 13:55 linux-image-3.1.0
drwxr-sr-x 7 root root 4096 Mar 17 2010 pkg
drwxr-sr-x 2 root root 4096 Nov 18 2010 po
drwxr-sr-x 6 root root 4096 Nov 18 2010 ruleset
drwxr-sr-x 2 root root 4096 Nov 18 2010 scripts
drwxr-sr-x 6 root src 4096 Oct 24 13:55 stamp
#64 decca:/usr/src/linux-3.0.4/debian
> ls -l | egrep "^d"
drwxr-xr-x 2 root root 4096 Nov 18 2010 Config
drwxr-xr-x 3 root root 4096 Nov 18 2010 docs
drwxr-xr-x 3 root root 4096 Nov 18 2010 examples
drwxr-xr-x 7 root root 4096 Aug 30 11:37 linux-image-3.0.4
drwxr-xr-x 7 root root 4096 Mar 17 2010 pkg
drwxr-xr-x 2 root root 4096 Nov 18 2010 po
drwxr-xr-x 6 root root 4096 Nov 18 2010 ruleset
drwxr-xr-x 2 root root 4096 Nov 18 2010 scripts
drwxr-xr-x 6 root root 4096 Aug 30 11:37 stamp
while it certainly *looks* like the "chmod og=rX" should take place in
the 3.0.4 build process, the directory does not reflect it, and the
dpkg-deb process is content and completes.
sRw
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: make-kpkg target failing for v3.1
2011-10-24 19:04 make-kpkg target failing for v3.1 Steven R. Wright
@ 2011-10-24 19:21 ` Sven Joachim
0 siblings, 0 replies; 2+ messages in thread
From: Sven Joachim @ 2011-10-24 19:21 UTC (permalink / raw)
To: Steven R. Wright; +Cc: linux-kernel
On 2011-10-24 21:04 +0200, Steven R. Wright wrote:
> while trying to build kernel v3.1 today, i ran into this error:
>
> ****************************************
> create_md5sums_fn () { cd $1 ; find . -type f ! -regex './DEBIAN/.*' !
> -regex './var/.*' -printf '%P\0' | xargs -r0 md5sum >
> DEBIAN/md5sums ; if [ -z "DEBIAN/md5sums" ] ; then rm -f
> "DEBIAN/md5sums" ; fi ; } ; create_md5sums_fn
> /usr/src/linux-3.1/debian/linux-image-3.1.0
> chmod -R og=rX /usr/src/linux-3.1/debian/linux-image-3.1.0
> chown -R root:root /usr/src/linux-3.1/debian/linux-image-3.1.0
> dpkg --build
> /usr/src/linux-3.1/debian/linux-image-3.1.0 ..
> dpkg-deb: error: control directory has bad permissions 2755 (must be
>>=0755 and <=0775)
> make[2]: *** [debian/stamp/binary/linux-image-3.1.0] Error 2
> make[2]: Leaving directory `/usr/src/linux-3.1'
> make[1]: *** [debian/stamp/binary/pre-linux-image-3.1.0] Error 2
> make[1]: Leaving directory `/usr/src/linux-3.1'
> make: *** [kernel_image] Error 2
> ****************************************
>
> i have not encountered this error building the kernel in v3.0.4 and
> before (i generally build and install most of the new stable releases,
> and have done so since v.2.4). the command i used, and always have,
> was:
> make-kpkg --initrd --rootcmd fakeroot kernel_image
You may want to use "make deb-pkg" instead.
> there is a difference in the perms in a 3.1 build tree vs. a 3.0.4 tree
> #52 decca:/usr/src/linux-3.1/debian
>> ls -l | egrep "^d"
> drwxr-sr-x 2 root root 4096 Nov 18 2010 Config
> drwxr-sr-x 3 root root 4096 Nov 18 2010 docs
> drwxr-sr-x 3 root root 4096 Nov 18 2010 examples
> drwxr-sr-x 7 root root 4096 Oct 24 13:55 linux-image-3.1.0
> drwxr-sr-x 7 root root 4096 Mar 17 2010 pkg
> drwxr-sr-x 2 root root 4096 Nov 18 2010 po
> drwxr-sr-x 6 root root 4096 Nov 18 2010 ruleset
> drwxr-sr-x 2 root root 4096 Nov 18 2010 scripts
> drwxr-sr-x 6 root src 4096 Oct 24 13:55 stamp
Do you build kernels as root? You really should not do this.
> #64 decca:/usr/src/linux-3.0.4/debian
>> ls -l | egrep "^d"
> drwxr-xr-x 2 root root 4096 Nov 18 2010 Config
> drwxr-xr-x 3 root root 4096 Nov 18 2010 docs
> drwxr-xr-x 3 root root 4096 Nov 18 2010 examples
> drwxr-xr-x 7 root root 4096 Aug 30 11:37 linux-image-3.0.4
> drwxr-xr-x 7 root root 4096 Mar 17 2010 pkg
> drwxr-xr-x 2 root root 4096 Nov 18 2010 po
> drwxr-xr-x 6 root root 4096 Nov 18 2010 ruleset
> drwxr-xr-x 2 root root 4096 Nov 18 2010 scripts
> drwxr-xr-x 6 root root 4096 Aug 30 11:37 stamp
>
> while it certainly *looks* like the "chmod og=rX" should take place in
> the 3.0.4 build process, the directory does not reflect it, and the
> dpkg-deb process is content and completes.
I have just built a 3.1 kernel from Linus' tree with make-kpkg, also in
a sticky directory, and it worked. But I'm not building kernels (or
other Debian packages) as root.
Which kernel-package version do you use?
Cheers,
Sven
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-24 19:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-24 19:04 make-kpkg target failing for v3.1 Steven R. Wright
2011-10-24 19:21 ` Sven Joachim
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.