JillTyrell/sabotage — pull request #3 by JillTyrell (2014-06-16 02:50:10+00:00)
Title: butch-print: cleaning up /pkg, fixing 'world'

This PR took a bit of effort and tedious testing, but in time for butch's new [deps.host] and [deps.run], there is now butch-print for assisting in keeping /pkg in order.

'butch print (package)' will do the following:
1. Print [mirrors], [main], [deps], [deps.host], [deps.run], [build] off, in that order.
2. Each section has its body stripped of leading white-space.
3. Every section but [build] is also run through 'sort' and an empty line filter. [build] is untouched.
4. A trailing newline is added to each section.
5. Empty sections are omitted entirely.

The first three patches in this PR cover what is needed for butch-print. The 513 following commits were generated automatically by applying butch-print and committing packages that differed. Finally, the remaining eight commits repair missing dependencies encountered when attempting to build 'world'.

As of time of this PR, the current version of butch-print and all files have been used to build a chroot from stage0 -> s1 -> core -> world and onward to a total of 561 packages compiled successfully.

The current state of the PR is believed ready for inclusion, but feedback is appreciated.