Package: base-files
Version: 5.1
Severity: normal

To help investigate bug 571457, I wanted to compile an openvz upstream
kernel obtained by

    cd /usr/src
    git clone git://git.openvz.org/pub/linux-2.6.26-openvz openvz-git-kernel

For the actual kernel compile, I configured and then tried the Debian way:

    cd /usr/src/openvz-git-kernel
    make-kpkg --initrd kernel_image

Expected result: A linux-image .deb package gets built.

Result seen: The build fails, with an error message

    dpkg-deb: control directory has bad permissions 2755 (must be >=0755
and <=0775)

My analysis: base-files sets up /usr/src with the g+s permission bit,
that bit infects my entire source directory tree, make-kpkg doesn't like
that.

My take on this: Various Debian packages should fit together, but
base-files and make-kpkg don't, in this respect.

My own suggestion towards how to achieve cooperation: Drop the g+s bit
from /usr/src.

My workaround does exactly that:

    chroot -R g-s .

Final "pea-counting" remarks on the precise package version:

The build actually failed on a Lenny system with base-files version 5lenny5.

I verified that it is the base-files package that sets up the g+s
permission, via

   rm -rf /usr/src
   aptitude reinstall base-files
   ls -l /usr

But I did this verification on a different system (in fact, an openvz
guest of the Lenny system host) which has "testing" installed.

I didn't bother to retry the entire kernel compilation on that "testing"
system.  (I would be willing to do that if people think it's worth the
effort.)

Regards, and thank you for providing fine software,

Andreas

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-openvz-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages base-files depends on:
ii  base-passwd                   3.5.22     Debian base system master
password
ii  mawk [awk]                    1.3.3-15   a pattern scanning and text
proces

base-files recommends no packages.

base-files suggests no packages.

-- no debconf information

-- 
andreas.krue...@famsik.de
PGP-Schlüssel 0xA207E340 (http://blackhole.pca.dfn.de/)
Fingerprint B46B C7BA FFEE AD41 35DD  49C3 9D6A E529 A207 E340


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to