Index: linux-info.eclass =================================================================== RCS file: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v retrieving revision 1.103 --- linux-info.eclass +++ linux-info.eclass @@ -495,7 +495,11 @@ if [[ -z ${OUTPUT_DIR} ]]; then # Decide the function used to extract makefile variables. - local mkfunc=$(get_makefile_extract_function "${KERNEL_MAKEFILE}") + if [[ "${EBUILD_PHASE}" == "pretend" ]]; then + local mkfunc=getfilevar_noexec + else + local mkfunc=$(get_makefile_extract_function "${KERNEL_MAKEFILE}") + fi # And if we didn't pass it, we can take a nosey in the Makefile. OUTPUT_DIR=$(${mkfunc} KBUILD_OUTPUT "${KERNEL_MAKEFILE}")