[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#649394: linux-source-2.6.32: can't build 2.6.32-5 using 2.6_2.6.32-34squeeze1



Package: linux-source-2.6.32
Version: 2.6.32-38
Severity: normal

I'm running 2.6.32-5-xen-amd64 and I'd like to compile a new vmlinuz
with enhanced errno reporting (distinguish between ENOMEM returns
in fork.c).  When I try to build 2.6.32-5, it applies all the patches
through 34squeeze1 (and actually fails to do that as one of the
later patches conflicts with my change).

What I did:

    dpkg-source -x linux-2.6_2.6.32-34squeeze1.dsc
    /usr/src/kernel-patches/all/2.6.32/apply/debian 5
    cd linux-2.6-2.6.32
    vi kernel/fork.c
    fakeroot make -f debian/rules.gen binary-arch_amd64_xen

What happened:

    (all the rest of the patches started to apply, and failed at version
    14 where there was another edit to fork.c, so the build
    failed)

What I expected:

    A build without all the rest of the patches being applied.



Variant:

    in "What I did", I tried this also, and all the patches still got
    applied:

    dpkg-source -x linux-2.6_2.6.32-34squeeze1.dsc
    /usr/src/kernel-patches/all/2.6.32/apply/debian 5
    cd linux-2.6-2.6.32
    vi kernel/fork.c
    fakeroot make -f debian/rules.gen build_amd64_xen_amd64_real


I looked in the makefiles, and noted that in debian/rules.real, the
apply-patch command definition has no way to specify the patch-level:

define patch_cmd
cd '$(DIR)'; python '$(CURDIR)/debian/bin/patch.apply' --overwrite-home='$(CURDIR)/debian/patches'
endef

Maybe the $(ABINAME) could be used to produce a "patch-level" for this
command?

I'm not all that familiar with building Debian kernels from source, I'd
be happy to learn the "right way" if I was doing it wrong.  I was
following instructions from
http://wiki.debian.org/HowToRebuildAnOfficialDebianKernelPackage
and supplemented it by reading the makefiles.

bjb





-- System Information:
Debian Release: 6.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages linux-source-2.6.32 depends on:
ii  binutils                      2.20.1-16  The GNU assembler, linker and bina
ii  bzip2                         1.0.5-6    high-quality block-sorting file co

Versions of packages linux-source-2.6.32 recommends:
ii  gcc                           4:4.4.5-1  The GNU C compiler
ii  libc6-dev [libc-dev]          2.11.2-10  Embedded GNU C Library: Developmen
ii  make                          3.81-8     An utility for Directing compilati

Versions of packages linux-source-2.6.32 suggests:
ii  kernel-package            12.036+nmu1    A utility for building Linux kerne
ii  libncurses5-dev [ncurses- 5.7+20100313-5 developer's libraries and docs for
pn  libqt3-mt-dev             <none>         (no description available)

-- no debconf information



Reply to: