diff -up texlive-2011/build/texlive-20110705-source/Build\~ texlive-2011/build/texlive-20110705-source/Build --- texlive-2011/build/texlive-20110705-source/Build~ 2011-06-21 08:15:42.000000000 +0900 +++ texlive-2011/build/texlive-20110705-source/Build 2011-11-13 21:17:20.163028036 +0900 @@ -100,7 +100,27 @@ cd $TL_WORKDIR || exit 1 $TL_CONF_XDVI_TOOLKIT \ $TL_CONFIGURE_ARGS \ "$@" \ - && eval $TL_BUILD_ENV time $TL_MAKE $TL_MAKE_FLAGS $TL_TARGET + || exit 1 + + (cd .. + ## Avoid pollution from internal libraries. + rm -rf ./libs/{expat,freetype2,gd,jpeg,libpng,libttf,ncurses,type1,t1lib,unzip,xpdf,zlib} || exit 1 + ## XXX Hacks to avoid accidental version clashs with system libraries. + hack_libs=( + zlib + libpng + t1lib + freetype2 + gd + xpdf + ) + for i in "${hack_libs[@]}"; do + mkdir -p ./libs/${i} + touch ./libs/${i}/configure + done + ) + + eval $TL_BUILD_ENV time $TL_MAKE $TL_MAKE_FLAGS $TL_TARGET # Too arcane to try to propagate the exit status through a pipeline. # Just use a temp file. Diff finished. Sun Nov 13 21:17:25 2011