Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40585 - Portage ${ARCH} variable override kernel 2.6 ${ARCH} variable
Summary: Portage ${ARCH} variable override kernel 2.6 ${ARCH} variable
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-06 04:33 UTC by Frederick Ros
Modified: 2004-02-06 05:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ?