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

extend/fileutils.rb: make the make convenience routine more robust #1100

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gsteemso
Copy link
Contributor

The make convenience method is a great, well, convenience - but the existing implementation breaks under Tiger, which is the only situation where it needs to do anything besides just call the system make. This change fixes that and also improves error reporting.

@sevan
Copy link
Contributor

sevan commented Mar 16, 2024

Can you describe the scenario where it breaks on Tiger? (so the issue can be reproduced)

@gsteemso
Copy link
Contributor Author

If brewed make is not installed, Tiger’s system make is too old to do the job. The existing implementation not only fails to handle that case, it doesn’t even really check for it very well.

Copy link
Owner

@mistydemeo mistydemeo left a comment

Choose a reason for hiding this comment

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

Handling an error here seems reasonable, though I might make the abort a named exception instead.

The make method is only meant to be called in formulae that need it, rather than every package; most packages build with make 3.80, but a few need 3.81 or newer. Those packages have a make dependency, but it's still useful to guard against the possibility I forgot to add the dependency even though the make method gets used.

@gsteemso
Copy link
Contributor Author

gsteemso commented Mar 25, 2024 via email

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.

None yet

3 participants