Skip to content

Conversation

@hebasto
Copy link
Member

@hebasto hebasto commented May 15, 2020

This PR makes build process not using git to get the client version from the repository.
clientversion.cpp uses the client version data that are explicitly provided in configure.ac.

gitian/guix builds are not touched yet.

Alternative to #18902.

Seeking for concept acks.

@laanwj
Copy link
Member

laanwj commented May 15, 2020

Concept ACK. I like how this simplifies things.

As I noted on IRC, all the version information for releases including the RC level is self-contained in configure.ac now. There's no need to peek into git. Releases are built from a tag and every tag needs to have unique major/minor/build/rc numbers anyhow. Furthermore, my make-tag script verifies that these numbers match before making and signing the tag.

There is one time it's useful to look at git during the build process: if someone builds from git source, to be able to see the commit they built from in the program. This is somewhat useful for developers but if it causes too much difficulty and complexity (how many times has then been 'fixed' throughout Bitcoin Core's history?) I'm okay with foregoing it.

@DrahtBot
Copy link
Contributor

DrahtBot commented May 15, 2020

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@tryphe
Copy link
Contributor

tryphe commented May 17, 2020

Concept ACK. Since we're already using ac defines, one less script and one less header looks delicious!

@hebasto
Copy link
Member Author

hebasto commented May 22, 2020

Rebased f04a6b4 -> 9e8a1d0 (pr18980.01 -> pr18980.02) due to the conflict with #18677.

@luke-jr
Copy link
Member

luke-jr commented Oct 12, 2020

Doesn't this break including the current commit hash when doing actual git builds?

@DrahtBot
Copy link
Contributor

🐙 This pull request conflicts with the target branch and needs rebase.

Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft".

@fanquake
Copy link
Member

Concept ACK

@DrahtBot
Copy link
Contributor

There hasn't been much activity lately and the patch still needs rebase. What is the status here?
  • Is it still relevant? ➡️ Please solve the conflicts to make it ready for review and to ensure the CI passes.
  • Is it no longer relevant? ➡️ Please close.
  • Did the author lose interest or time to work on this? ➡️ Please close it and mark it 'Up for grabs' with the label, so that it can be picked up in the future.

@fanquake
Copy link
Member

fanquake commented Oct 3, 2022

Changing my concept ACK to ~0. It's not clear the tradeoff of losing git info from source builds is worth this change, and for some reason that tradeoff isn't mentioned in the PR description.

Otherwise, what is the status of this?

@hebasto hebasto closed this Oct 5, 2022
@bitcoin bitcoin locked and limited conversation to collaborators Oct 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants