Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle binary emerges specially #59

Open
4 tasks
vincentdephily opened this issue Dec 9, 2024 · 0 comments
Open
4 tasks

Handle binary emerges specially #59

vincentdephily opened this issue Dec 9, 2024 · 0 comments

Comments

@vincentdephily
Copy link
Owner

Whishlist

  • distinguish binary emerges in log
  • show binary/compiled in predict
  • take binary/compile into account when predicting ETA
  • show binary/compiled counts in stats

Available info

  • /var/cache/edb/mtimedb has a binpkgssection and distinhuishes ebuild from binary in the mergelist section
  • emerge.log shows something like this
1733743818:  >>> emerge (3 of 29) dev-libs/simdjson-3.11.0 to /
1733743818:  === (3 of 29) Merging Binary (dev-libs/simdjson-3.11.0::/var/cache/binpkgs/dev-libs/simdjson-3.11.0.gpkg.tar)
1733743821:  >>> AUTOCLEAN: dev-libs/simdjson:0
1733743821:  === Unmerging... (dev-libs/simdjson-3.10.1)
1733743824:  >>> unmerge success: dev-libs/simdjson-3.10.1
1733743826:  === (3 of 29) Post-Build Cleaning (dev-libs/simdjson-3.11.0::/var/cache/binpkgs/dev-libs/simdjson-3.11.0.gpkg.tar)
1733743826:  ::: completed emerge (3 of 29) dev-libs/simdjson-3.11.0 to /

Which means that we need to parse new lines and handle state to know if a logged merge was binary or not (so far we only needed to parse the >>> emerge line). Should be easy enough but might slow things down. On the plus side, this would allow us to show the current merge step even to non-root users.

Not sure how, algorithmically, we should separate bin merges from compile merges. I'd like to find something compatible with #56.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant