package kernel-package
tags 123456 patch
thanks

This is due to the new (experimental) dpkg, here's what
dpkg-architecture gives:

$ dpkg-architecture
DEB_BUILD_ARCH=i386
DEB_BUILD_ARCH_OS=linux
DEB_BUILD_ARCH_CPU=i386
DEB_BUILD_GNU_CPU=i486
DEB_BUILD_GNU_SYSTEM=linux-gnu
DEB_BUILD_GNU_TYPE=i486-linux-gnu
DEB_HOST_ARCH=i386
DEB_HOST_ARCH_OS=linux
DEB_HOST_ARCH_CPU=i386
DEB_HOST_GNU_CPU=i486
DEB_HOST_GNU_SYSTEM=linux-gnu
DEB_HOST_GNU_TYPE=i486-linux-gnu

and here's a patch I believe could fix the issue without (totally) breaking
the rest:

-----
[EMAIL PROTECTED]:~$ diff -Nru /usr/share/kernel-package/rules.orig 
/usr/share/kernel-package/rules
--- /usr/share/kernel-package/rules.orig        2005-06-12 19:05:23.000000000 
+0200
+++ /usr/share/kernel-package/rules     2005-06-12 19:06:25.000000000 +0200
@@ -37,6 +37,8 @@
 export DEB_HOST_ARCH       := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_ARCH)
 export DEB_HOST_ARCH_OS    := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_ARCH_OS  \
                                 2>/dev/null|| true)
+export DEB_HOST_ARCH_CPU    := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_ARCH_CPU 
\+                               2>/dev/null|| true)
 export DEB_HOST_GNU_CPU    := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_GNU_CPU)
 export DEB_HOST_GNU_SYSTEM := $(shell $(DPKG_ARCH) $(ha) 
-qDEB_HOST_GNU_SYSTEM) export DEB_HOST_GNU_TYPE   := $(shell $(DPKG_ARCH) $(ha) 
-qDEB_HOST_GNU_TYPE)
@@ -131,7 +133,11 @@
 else
   #architecture:=$(shell CC=$(HOSTCC) dpkg --print-gnu-build-architecture)
   #architecture:=$(DEB_HOST_ARCH)
-  architecture:=$(DEB_HOST_GNU_CPU)
+  ifeq ($(DEB_HOST_ARCH_CPU),)
+    architecture:=$(DEB_HOST_GNU_CPU)
+  else
+    architecture:=$(DEB_HOST_ARCH_CPU)
+  endif
   ifeq ($(architecture), x86_64)
     architecture:=amd64
   endif
-----

-- 
Niv Sardi-Altivanik <[EMAIL PROTECTED]> 
  -  =  Debian::GNU/Linux::Addict  =  -                               

Attachment: pgpPUT4h8Pfvo.pgp
Description: PGP signature

Reply via email to