Package: kernel-package
Version: 13.018+nmu1
Severity: normal

I was trying to build a new kernel (5.4.35) for an old system and had an issue
where the build process would get stuck at syncconfig.  Eventually I found out
that the Debian rules were inconsistent in passing the ARCH parameter to make.
It so happens that make ARCH=i386 oldconfig removes the "# CONFIG_64BIT is not
set" line from .config, and then a few commands later make syncconfig doesn't
see that line and wants to ask some questions.  But since the particular place
where it's called from directs output elsewhere, the user never sees those
questions.  The attached patch fixes the issue.  I haven't tried building an
amd64 kernel with it, but since other places pass the ARCH parameter I don't
expect any trouble.


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 4.9.0-atom (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages kernel-package depends on:
ii  bc               1.07.1-2+b2
ii  binutils         2.35.1-6
ii  build-essential  12.8
ii  bzip2            1.0.8-4
ii  dpkg-dev         1.20.5
ii  file             1:5.39-3
ii  gettext          0.21-3
ii  kmod             27+20200310-2
ii  po-debconf       1.0.21+nmu1
ii  xmlto            0.0.28-2.1
ii  xz-utils [lzma]  5.2.4-1+b1

Versions of packages kernel-package recommends:
ii  cpio           2.13+dfsg-4
pn  docbook-utils  <none>
pn  kernel-common  <none>
pn  uboot-mkimage  <none>

Versions of packages kernel-package suggests:
ii  libncurses-dev  6.2+20201114-1
pn  linux-source    <none>

-- Configuration Files:
/etc/kernel-pkg.conf changed [not included]

-- no debconf information
--- /usr/share/kernel-package/ruleset/targets/common.mk.orig    2016-02-17 
01:35:18.000000000 +0200
+++ /usr/share/kernel-package/ruleset/targets/common.mk 2021-01-04 
00:57:52.837829683 +0200
@@ -185,8 +185,8 @@
 # Use the kernel's Makefile to calculate the TOPDIR.
 # TOPDIR is obsolete in 2.6 kernels, so the kernel_version.mk
 # will get us the right answer
-       @echo $(shell $(MAKE) --no-print-directory -sf 
$(DEBDIR)/ruleset/kernel_version.mk debian_TOPDIR 2>/dev/null | tail -n 1) 
>/dev/null
-       @sed -e 's%$(shell $(MAKE) --no-print-directory -sf 
$(DEBDIR)/ruleset/kernel_version.mk debian_TOPDIR 2>/dev/null | tail -n 
1)%$$(TOPDIR)%g' debian/stamp/conf/mak     > debian/stamp/conf/vars
+       @echo $(shell $(MAKE) --no-print-directory -sf 
$(DEBDIR)/ruleset/kernel_version.mk ARCH=$(KERNEL_ARCH) $(CROSS_ARG) 
debian_TOPDIR 2>/dev/null | tail -n 1) >/dev/null
+       @sed -e 's%$(shell $(MAKE) --no-print-directory -sf 
$(DEBDIR)/ruleset/kernel_version.mk ARCH=$(KERNEL_ARCH) $(CROSS_ARG) 
debian_TOPDIR 2>/dev/null | tail -n 1)%$$(TOPDIR)%g' debian/stamp/conf/mak     
> debian/stamp/conf/vars
        @rm -f debian/stamp/conf/mak
        @touch debian/stamp/conf/vars
 

Reply via email to