Debian's linux-image-2.6.24 and above will report "x86" as ARCH for i386
and amd64 in linux-2.6.24 packages.
This break madwifi build:
/usr/bin/make -C /usr/src/modules/madwifi modules \
KERNELPATH=/lib/modules/2.6.24-1-686/build KERNELRELEASE=2.6.24-1-686 KERNELCONF=/lib/modules/2.6.24-1-686/build/.config
make[2]: Entering directory `/usr/src/modules/madwifi'
Checking requirements... ok.
Checking kernel configuration... ok.
/usr/bin/make -C /lib/modules/2.6.24-1-686/build SUBDIRS=/usr/src/modules/madwifi modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.24-1-686'
/usr/src/modules/madwifi/scripts/get_arch.mk:44: *** ARCH mismatch: supplied "x86", determined "i386". Stop.
make[3]: *** [_module_/usr/src/modules/madwifi] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.24-1-686'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/usr/src/modules/madwifi'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/modules/madwifi'
make: *** [kdist_build] Error 2
For more infomation, see http://bugs.debian.org/463353
Do you think there is better way to address this problem than what is attached
below?
Thanks, Kel.
---
--- a/scripts/get_arch.mk
+++ b/scripts/get_arch.mk
@@ -40,6 +40,14 @@
ifeq (,$(ARCH))
ARCH = $(ARCH-y)
else
+ifeq ($(filter-out x86,$(ARCH)),)
+ifeq (x86_64,$(ARCH-y))
+ARCH = $(ARCH-y)
+endif
+ifeq (i386,$(ARCH-y))
+ARCH = $(ARCH-y)
+endif
+endif
ifneq ($(ARCH),$(ARCH-y))
$(error ARCH mismatch: supplied "$(ARCH)", determined "$(ARCH-y)")
endif
---
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Madwifi-devel mailing list
Madwifi-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/madwifi-devel| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 006/196] Chinese: add translation of oops-tracing.txt |
| Eric Sandeen | Re: [RFC] Heads up on sys_fallocate() |
| YOSHIFUJI Hideaki / | request_module: runaway loop modprobe net-pf-1 (is Re: Linux 2.6.21-rc1) |
git: | |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Ben Greear | Re: MACVLANs really best solution? How about a bridge with multiple bridge virtual... |
| Rafael J. Wysocki | 2.6.29-rc8: Reported regressions from 2.6.28 |
