Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 40585

Summary: Portage ${ARCH} variable override kernel 2.6 ${ARCH} variable
Product: Portage Development Reporter: Frederick Ros <sl33p3r>
Component: Core - Ebuild SupportAssignee: x86-kernel (DEPRECATED) <x86-kernel>
Status: RESOLVED WONTFIX    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Frederick Ros 2004-02-06 04:33:20 UTC
I'm currently porting one of my ebuild to 2.6. This ebuild compiles a kernel module used for an xDSL modem. When doing an emake, the variable ${ARCH} is exported with a value of x86 ... Unfortunately kernel 2.6 Makefile uses this variable if it's set in the environment... but there's no x86 architecture for linux kernel (only i386 or x86_64) 
I think that a shortcut for me whould be to unset the ARCH variable before calling emake (or set it to i386) and changes it back after but it seems awkward .. Perhaps there's a better solution.




Reproducible: Always
Steps to Reproduce:
1.Write a module makefile that uses new kernel 2.6 Makefile architecture
2.Write an ebuild that call this Makefile
3.ebuild my_ebuild.ebuild compile


Actual Results:  
*** No rule to make target `/usr/src/linux-2.6.2-rc2-mm1/arch/x86/Makefile'. Stop.

Expected Results:  
Try to use /usr/src/linux-2.6.2-rc2-mm1/arch/i386/Makefile instead
Comment 1 SpanKY gentoo-dev 2004-02-06 04:48:09 UTC
env -u ARCH

unless the kernel peeps feel like doing something with this, i guess we can close this as WONTFIX
Comment 2 Frederick Ros 2004-02-06 05:33:43 UTC
OK...
Perhaps it worth a line in the Official Documentation for creating ebuild ?