This tool uses regexes to identify possible trivial fixing opportunities in pkgsrc bulk build reports.
npm install -g trivialfix
wget -r --level=1 http://us-east.manta.joyent.com/pkgsrc/public/reports/upstream-trunk64/20140604.0931/meta/report.html
trivialfix logs/ > report.html
The regexes used by this tool might provide false positives. Some packages might not be trivial to fix but still listed. There might be better fixes than the proposed ones. Other error and portability fixes might still be needed in addition to the proposed ones. Apply common sense. Pull requests for better patterns welcome.