--- python-2.6.2.ebuild 2009-05-09 11:17:03.000000000 +0000 +++ python-2.6.2.ebuild.new 2009-05-09 11:18:47.000000000 +0000 @@ -66,6 +66,12 @@ EPATCH_SUFFIX="patch" epatch "${WORKDIR}/${PV}" + if tc-is-cross-compiler ; then + # Change setup.py to respect the PYTHON_SYSROOT environment variable. + # By doing so, we are able to cross-compile the python modules! + epatch "${FILESDIR}/python-2.6-cross-setup-sysroot.patch" + fi + sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \ Lib/distutils/command/install.py \ Lib/distutils/sysconfig.py \