Package: kernel-package Version: 10.057 Severity: normal Tags: patch Hi,
Running make-kpkg --arch um failed in spectacular ways, but it boiled down to the make invocations in /usr/share/kernel-package/ruleset/misc/version_vars.mk failing. It seems make is called on the upstream Makefile without ARCH=um. Simply adding ARCH=$(KERNEL_ARCH) after all $(MAKE) $(CROSS_ARG) fixed it for me, I attach these changes as a patch. Bye, -- System Information: Debian Release: Debian unstable (sid) APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-1-686 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages kernel-package depends on: ii bcc [c-compiler] 0.16.14-1.4 16-bit x86 C compiler ii dpkg 1.13.22 package maintenance system for Deb ii dpkg-dev 1.13.22 package building tools for Debian ii file 4.17-4 Determines file type using "magic" ii gcc [c-compiler] 4:4.1.1-7 The GNU C compiler ii gcc-3.3 [c-compiler] 1:3.3.6-13 The GNU C compiler ii gcc-3.4 [c-compiler] 3.4.6-4 The GNU C compiler ii gcc-4.0 [c-compiler] 4.0.3-7 The GNU C compiler ii gcc-4.1 [c-compiler] 4.1.1-14 The GNU C compiler ii gettext 0.15-2 GNU Internationalization utilities ii make 3.81-3 The GNU version of the "make" util ii perl 5.8.8-6.1 Larry Wall's Practical Extraction ii po-debconf 1.0.5 manage translated Debconf template Versions of packages kernel-package recommends: ii bzip2 1.0.3-6 high-quality block-sorting file co ii libc6-dev [libc-dev] 2.3.6.ds1-4 GNU C Library: Development Librari -- no debconf information -- Loïc Minier <[EMAIL PROTECTED]>
--- version_vars.mk.orig 2006-09-29 17:55:42.000000000 +0200 +++ version_vars.mk 2006-09-29 17:57:59.000000000 +0200 @@ -53,15 +53,15 @@ # Could have used :=, but some patches do seem to patch the # Makefile. perhaps deferring the rule makes that better $(eval $(which_debdir)) - VERSION :=$(shell $(MAKE) $(CROSS_ARG) --no-print-directory -sf \ + VERSION :=$(shell $(MAKE) $(CROSS_ARG) ARCH=$(KERNEL_ARCH) --no-print-directory -sf \ $(DEBDIR)/ruleset/kernel_version.mk debian_VERSION) - PATCHLEVEL :=$(shell $(MAKE) $(CROSS_ARG) --no-print-directory -sf \ + PATCHLEVEL :=$(shell $(MAKE) $(CROSS_ARG) ARCH=$(KERNEL_ARCH) --no-print-directory -sf \ $(DEBDIR)/ruleset/kernel_version.mk debian_PATCHLEVEL) - SUBLEVEL :=$(shell $(MAKE) $(CROSS_ARG) --no-print-directory -sf \ + SUBLEVEL :=$(shell $(MAKE) $(CROSS_ARG) ARCH=$(KERNEL_ARCH) --no-print-directory -sf \ $(DEBDIR)/ruleset/kernel_version.mk debian_SUBLEVEL) - EXTRA_VERSION:=$(shell $(MAKE) $(CROSS_ARG) --no-print-directory -sf \ + EXTRA_VERSION:=$(shell $(MAKE) $(CROSS_ARG) ARCH=$(KERNEL_ARCH) --no-print-directory -sf \ $(DEBDIR)/ruleset/kernel_version.mk debian_EXTRAVERSION) - LOCALVERSION :=$(shell $(MAKE) $(CROSS_ARG) --no-print-directory -sf \ + LOCALVERSION :=$(shell $(MAKE) $(CROSS_ARG) ARCH=$(KERNEL_ARCH) --no-print-directory -sf \ $(DEBDIR)/ruleset/kernel_version.mk debian_LOCALVERSION) else ifeq ($(DEB_HOST_GNU_SYSTEM), kfreebsd-gnu)