Well, I've gone and done it again, I haven't finished the eclean re-write and I've found something else to work on. It all started from a forum post. He wanted to fix his mistakes and it looked like the only way was the hard way.
Having been doing more gentoolkit coding I put together a quick and dirty python script to output some USE flag info about his installed pkgs. With that and me saying I could add some more code to spit out a package.use file populated with what is installed/what flags enabled/disabled. I have now been coding it up and have it now working for USE flag analysis and rebuild. I plan on adding more so it can analyse and repair keywords and mask files too.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkJ_80FHzVZA21Df33cUP7Rvwi9AMnynBEbXi8Nf_JzjfAVm6BPGPSieXyeJFMi614aPHC0ZtcU0tQMeHVwHWtt5F2PsV_ZZC1BH9HpRDEA3IVUku2lsmZsADwVCfu4VdqJ0LYuK46aUXR/s200/rebuild3.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6EQBqIs-n_YzZzJwEYpZan_ht-V6eAvHO7kGSy8YxTGEEoNuAZhIKvTc77ecF0jr3p3P6Uy-a2i9BXCeqbIKI5QdC0xAQMF3ONBp1nUxOWPE1dqD7MHc_L_RF8c9fCQYxBcqWGUwnqlVw/s200/rebuild2.png)
I also would like to code up yet another /etc/portage/package.* cleaning tool. Since It'll have nearly/all the functions needed for gathering the info, may as well do that too. All the main functionality will also be importable for other apps to use as library functions/methods.
analyse rebuild -pv use
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpnvNiwY5rQ4kFFW3D6wK0FEr5i0ujzos5sWAPVKS3oAPeQY8SQnVxUPWnoI7rPldA7gV61tQ_JSyr7lOzFc0fhADPE-Du_eiRGHO_5zO6ADw1rwMpy9EhoxkshW8BQRS078KLtXVyYsgC/s200/rebuild1.png)
analyse analyse -uv use
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZCeTnQ9qWnbzdqi7KBeTTI3dvUjr1XnyfCtPAZLunspQDfnS5y3eNxsDjICAEyoV3lXFhurKd2fZLCc1snVvLSVdBCrxEwuaPldFTpH_g1uxI0zsf0D0-AFmSX7AwuSY8NpR6afBso_6n/s320/analyse1.png)
left: showing the output of the report. Enabled USE flags are marked with a leading + and colored blue. Disabled USE flags are marked - and colored red. Unset USE flags are plain text.
It also indicates if the flag is a system default, the number of packages that have it enabled/disabled/unset and using the --verbose option lists the packages.
right: Part way down the report. notice that mplayer has faac faad flags enabled but ffmpeg does not. Something that I didn't notice before. Now I know to set them for ffmpeg too.
Also if you can think of a good "e" name for it to go along with the other gentoolkit apps like eclean & equery. Post a comment.
some of the names so far:
- erepair
- esylana (analyse spelled backward)