util-linux: fix build, add LDFLAGS="-lm" on Linux #235572
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This was attempted in #214529, but not actually fixed. This changes the approach from an environment variable to a
makecommand argument. Full explanation in discussion.Closes https://github.com/orgs/Homebrew/discussions/5421
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>, where<formula>is the name of the formula you're submitting?brew test <formula>, where<formula>is the name of the formula you're submitting?brew audit --strict <formula>(after doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)? If this is a new formula, does it passbrew audit --new <formula>?Install & test results
gist logs
Alternatives: @cho-m is working on a more general fix in #235571. If that's accepted and solves this issue (I'll be thrilled and) we won't need this, nor #214529.
I suggest merging this simple fix now, then backing out both when #235571 lands.
(If you don't want this fix now, I suggest backing out #214529, and I'll just keep my
brew edit util-linuxversion until the general fix lands.)