--- python-2.5.4-r2.ebuild 2009-05-09 11:17:10.000000000 +0000 +++ python-2.5.4-r2.ebuild.new 2009-05-09 11:20:14.000000000 +0000 @@ -64,6 +64,13 @@ fi 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.5.2-cross-setup-sysroot.patch" + fi + sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \ Lib/distutils/command/install.py \ Lib/distutils/sysconfig.py \