-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I got a similar error as [EMAIL PROTECTED] when using make-kpkg. The only
difference was that make seemed to open a file called
"--no-print-directory" (I have kernel-package 10.060).
I found out that it is caused by a faulty version_vars.mk file: the -f
option there is placed directly before the --no-print-directory option.
The result is that the version variables in there are not properly defined.
Attached is a patch that puts the -f option in the right place, which
makes my kernel compile again.

Regards,
  Bsatain
- --
  ,''`.                  Bastian Kleineidam
 : :' :                    GnuPG Schlüssel
 `. `'    gpg --keyserver wwwkeys.pgp.net --recv-keys 32EC6F3E
   `-

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFINQqeBwlBDLsbz4RAt0wAJ0TKKQIEm8FMketeXmXNIiqiz2vXQCeNzem
5WRrIlY/WZwRi4lo7g9ukhs=
=Adwl
-----END PGP SIGNATURE-----
--- /usr/share/kernel-package/ruleset/misc/version_vars.mk      2006-09-30 
16:34:00.000000000 +0200
+++ version_vars.mk     2006-10-02 10:36:40.000000000 +0200
@@ -56,29 +56,29 @@
   # Call this twice; if there are problems in the .config, kbuild rewrites 
   # .config, and the informational message messes up the variable.
   TEST         :=$(shell $(MAKE) $(CROSS_ARG)                                  
  \
-                         $(if $(strip $(KERNEL_ARCH)),ARCH=$(KERNEL_ARCH),) 
-sf  \
+                         $(if $(strip $(KERNEL_ARCH)),ARCH=$(KERNEL_ARCH),) -s 
  \
                          --no-print-directory                                  
  \
-                         $(DEBDIR)/ruleset/kernel_version.mk debian_VERSION)
+                         -f $(DEBDIR)/ruleset/kernel_version.mk debian_VERSION)
   VERSION      :=$(shell $(MAKE) $(CROSS_ARG)                                  
  \
-                         $(if $(strip $(KERNEL_ARCH)),ARCH=$(KERNEL_ARCH),) 
-sf  \
+                         $(if $(strip $(KERNEL_ARCH)),ARCH=$(KERNEL_ARCH),) -s 
  \
                          --no-print-directory                                  
  \
-                         $(DEBDIR)/ruleset/kernel_version.mk debian_VERSION)
+                         -f $(DEBDIR)/ruleset/kernel_version.mk debian_VERSION)
   PATCHLEVEL   :=$(shell $(MAKE) $(CROSS_ARG)                                  
  \
-                         $(if $(strip $(KERNEL_ARCH)),ARCH=$(KERNEL_ARCH),) 
-sf  \
+                         $(if $(strip $(KERNEL_ARCH)),ARCH=$(KERNEL_ARCH),) -s 
  \
                          --no-print-directory                                  
  \
-                         $(DEBDIR)/ruleset/kernel_version.mk debian_PATCHLEVEL)
+                         -f $(DEBDIR)/ruleset/kernel_version.mk 
debian_PATCHLEVEL)
   SUBLEVEL     :=$(shell $(MAKE) $(CROSS_ARG)                                  
  \
-                         $(if $(strip $(KERNEL_ARCH)),ARCH=$(KERNEL_ARCH),) 
-sf  \
+                         $(if $(strip $(KERNEL_ARCH)),ARCH=$(KERNEL_ARCH),) -s 
  \
                          --no-print-directory                                  
  \
-                         $(DEBDIR)/ruleset/kernel_version.mk debian_SUBLEVEL)
+                         -f $(DEBDIR)/ruleset/kernel_version.mk 
debian_SUBLEVEL)
   EXTRA_VERSION:=$(shell $(MAKE) $(CROSS_ARG)                                  
  \
-                         $(if $(strip $(KERNEL_ARCH)),ARCH=$(KERNEL_ARCH),) 
-sf  \
+                         $(if $(strip $(KERNEL_ARCH)),ARCH=$(KERNEL_ARCH),) -s 
  \
                          --no-print-directory                                  
  \
-                         $(DEBDIR)/ruleset/kernel_version.mk 
debian_EXTRAVERSION)
+                         -f $(DEBDIR)/ruleset/kernel_version.mk 
debian_EXTRAVERSION)
   LOCALVERSION :=$(shell $(MAKE) $(CROSS_ARG)                                  
  \
-                         $(if $(strip $(KERNEL_ARCH)),ARCH=$(KERNEL_ARCH),) 
-sf  \
+                         $(if $(strip $(KERNEL_ARCH)),ARCH=$(KERNEL_ARCH),) -s 
  \
                          --no-print-directory                                  
  \
-                         $(DEBDIR)/ruleset/kernel_version.mk 
debian_LOCALVERSION)
+                         -f $(DEBDIR)/ruleset/kernel_version.mk 
debian_LOCALVERSION)
   # If the variable TEST did get a mesage about .config beng written, pass it 
on.
   ifneq ($(strip $(TEST)),$(strip $(VERSION)))
     $(warn configuration written to .config)

Reply via email to