--- glibc-2.10.1-r1.ebuild.old 2010-01-22 19:37:02.000000000 +0000 +++ glibc-2.10.1-r1.ebuild 2010-03-15 19:25:32.201373273 +0000 @@ -183,8 +183,11 @@ done eblit-src_unpack-post() { + cd "${S}" + einfo "Patching Glibc to export fadvise64" + epatch "${FILESDIR}"/2.10/glibc-2.10-export-fadvise64.patch + if use hardened ; then - cd "${S}" einfo "Patching to get working PIE binaries on PIE (hardened) platforms" gcc-specs-pie && epatch "${FILESDIR}"/2.5/glibc-2.5-hardened-pie.patch epatch "${FILESDIR}"/2.10/glibc-2.10-hardened-configure-picdefault.patch