Package: kernel-package
Version: 12.036+nmu3
Severity: important

Dear Maintainer,

make-kpkg fails to build a kernel-package for linux-3.7.1 (and possibly
earlier versions) when CONFIG_MODULES is unset. The reason for this
seems to be the following regular expression to check the kernel
config file for module support which appears several times in the
ruleset files:

grep -E ^[^\#]*CONFIG_MODULES $(CONFIG_FILE)

Unfortunately somewhere between linux 3.4 and 3.7 new config defines got
added, namely CONFIG_MODULES_USE_ELF_REL and CONFIG_MODULES_USE_ELF_RELA
which are set even if CONFIG_MODULES is unset. The above regexp
obviously also matches these new defines which makes make-kpkg think
that it's building a kernel package including loadable module support.
The result of this is a call to "make modules" which aborts with the
following error message:

The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.


A possible fix for this bug would be to change the above mentioned grep
invocation to read:

grep -E ^[^\#]*CONFIG_MODULES[^_] $(CONFIG_FILE)

With this change applied I could successfully create a kernel package.


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages kernel-package depends on:
ii  binutils           2.22-7.1
ii  build-essential    11.5
ii  debianutils        4.3.2
ii  file               5.11-2
ii  gettext            0.18.1.1-9
ii  make               3.81-8.2
ii  module-init-tools  9-2
ii  po-debconf         1.0.16+nmu2
ii  util-linux         2.20.1-5.3

Versions of packages kernel-package recommends:
ii  cpio  2.11-8

Versions of packages kernel-package suggests:
pn  btrfs-tools                             <none>
ii  bzip2                                   1.0.6-4
pn  docbook-utils                           <none>
ii  e2fsprogs                               1.42.5-1
pn  grub | grub2                            <none>
ii  initramfs-tools [linux-initramfs-tool]  0.109
pn  jfsutils                                <none>
ii  libncurses5-dev [libncurses-dev]        5.9-10
pn  linux-source | kernel-source            <none>
pn  mcelog                                  <none>
pn  oprofile                                <none>
pn  pcmciautils                             <none>
ii  ppp                                     2.4.5-5.1+b1
ii  procps                                  1:3.3.3-2
pn  quota                                   <none>
pn  reiserfsprogs                           <none>
pn  squashfs-tools                          <none>
ii  udev                                    175-7
pn  xfsprogs                                <none>
pn  xmlto                                   <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to