--- portage-2.2.00.15320.ebuild.orig 2010-02-05 18:45:08 -0800 +++ portage-2.2.00.15320.ebuild 2010-02-05 20:29:35 -0800 @@ -81,6 +81,19 @@ epatch "${FILESDIR}"/${PN}-2.2.00.13849-ebuildshell.patch #155161 + if [[ ${CHOST} == *-interix* ]] ; then + # replace "xargs" with "xargs -s 4000" for all scripts in bin + find ./bin -type f | while read f ; do + # loose sanity check: only patch files beginning with '#' + [[ "$( head -c 1 "${f}" )" == "#" ]] || continue + if grep -q xargs "${f}" ; then + einfo patching xargs references in ${f} + sed -e 's/xargs/xargs -s 4000/g' -i "${f}" + fi + done + epatch "${FILESDIR}"/${PN}-2.2.00.15320-interix-temp.patch + fi + use prefix-chaining && epatch "${FILESDIR}"/${PN}-2.2.00.15200-prefix-chaining.patch }