Skip to content

Improve bootstrap's script handling of dependencies and related documentation #195

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

Merged
merged 5 commits into from
May 9, 2025

Conversation

spenap
Copy link
Collaborator

@spenap spenap commented Apr 10, 2025

The dependencies needed to run bootstrap.py are not listed in README, and are only apparent after running the script.

This PR addresses that by making them explicit, bailing out earlier if not available.

Additionally, by handling subprocess errors with try - except, subsequent errors raised by Cerbero are also easier to spot (and address).

I noticed part of this had been raised as an issue in #172 , so this PR closes it.

Simon Pena added 4 commits April 10, 2025 13:01
boostrap.py uses Popen to invoke readelf, git and tar. Add checks to
ensure they are installed to avoid runtime failure.
Wrap subprocess.check_called with try / except and handle failures with
CalledProcessError.
@spenap spenap requested a review from aperezdc April 29, 2025 08:17
Copy link
Member

@aperezdc aperezdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I left a small comment. At any rate, we can merge it and continue improving as needed.

ruby-getoptlong and ruby-erb are needed on Arch
@spenap spenap merged commit 4f109bb into Igalia:main May 9, 2025
2 checks passed
@spenap spenap deleted the spena/bootstrap_dependencies branch May 9, 2025 12:58
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

Successfully merging this pull request may close these issues.

2 participants