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

Consistently generate build tags on Make 4.3+ #7059

Merged
merged 1 commit into from
Feb 25, 2023

Conversation

sigv
Copy link
Contributor

@sigv sigv commented Feb 23, 2023

refs: cosmos/gaia#2017

Description

With Make 4.3+, the empty whitespace does not seem to work as originally intended. Agoric SDK only uses one build tag "ledger" and therefore does not currently experience malformed tags.

However, on Gaia (Cosmoshub) it was identified that build tags were produced as "netgo ledger," on Ubuntu 22.04 and other systems that include the newer Make version. The build tags were originally intended as "netgo,ledger" which can be observed on Make 4.2 (shipped with Ubuntu 20.04).

This change ensures that in future, if Agoric decides to expand on build tags, it will work consistently across old and new systems.

This change swaps out the += use in favor of an explicit :=. (Make Reference)

Security Considerations

None.

Scaling Considerations

None.

Documentation Considerations

None.

Testing Considerations

None.

Copy link
Member

@michaelfig michaelfig left a comment

Choose a reason for hiding this comment

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

Cute! 😸 Thanks for the contribution.

@michaelfig michaelfig added automerge:squash Automatically squash merge automerge:rebase Automatically rebase updates, then merge and removed automerge:squash Automatically squash merge labels Feb 25, 2023
With Make 4.3+, the empty whitespace does not seem to work as
originally intended. Agoric SDK only uses one build tag "ledger"
and therefore does not currently experience malformed tags.

However, on Gaia (Cosmoshub) it was identified that build tags
were produced as "netgo ledger," on Ubuntu 22.04 and other
systems that include the newer Make version. The build tags
were originally intended as "netgo,ledger" which can be observed
on Make 4.2 (shipped with Ubuntu 20.04).

This change ensures that in future, if Agoric decides to expand
on build tags, it will work consistently across old and new systems.

This change swaps out the `+=` use in favor of an explicit `:=`.
Ref: https://www.gnu.org/software/make/manual/html_node/Appending.html

Upstream: cosmos/gaia@297cdb9
@mergify
Copy link
Contributor

mergify bot commented Feb 25, 2023

⚠️ This pull request got rebased on behalf of a random user of the organization.
This behavior will change on the 1st February 2023, Mergify will pick the author of the pull request instead.

To get the future behavior now, you can configure bot_account options (e.g.: bot_account: { author } or update_bot_account: { author }.

Or you can create a dedicated github account for squash and rebase operations, and use it in different bot_account options.

@mhofman mhofman force-pushed the build_tags_make_4_3 branch from 64097e0 to 9f67387 Compare February 25, 2023 04:38
@mergify mergify bot merged commit 554dafc into Agoric:master Feb 25, 2023
@sigv sigv deleted the build_tags_make_4_3 branch February 25, 2023 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants