emerging rt2500-1.1.0_beta3 prints a lot of errors while compiling:
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/rt2500-1.1.0_beta3/work/rt2500-1.1.0-b3 ...
sed: can't read oid.h: No such file or directory
* Preparing rt2500 module
Followed by lots of:
/var/tmp/portage/rt2500-1.1.0_beta3/work/rt2500-1.1.0-b3/Module/oid.h:108:5:
warning: "RT2500_DBG" is not defined
The line 42 of the ebuild,
sed -i "s:#if RT2500_DBG:#ifdef RT2500_DBG:" oid.h
seems wrong, as the "oid.h" file is in the "Module" directory.
Maybe:
sed -i "s:#if RT2500_DBG:#ifdef RT2500_DBG:" Module/oid.h