The attached patch for bug 238753 makes base.eclass support EAPI 2 functions. None of the previous functionality of exported functions is changed, so you can still do base_src_unpack autopatch. It's only the default actions of base_src_compile and base_src_unpack that's affected and only if EAPI=2. The case..esac for EXPORT_FUNCTIONS is borrowed from kde4-base. I've not done tree-rebuilds with this, so please give it a thorough review. I'm not entirely happy about the base_src_work and base_src_util function names, so suggestions are welcome. -- /PA