-
-
Notifications
You must be signed in to change notification settings - Fork 441
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
Update configure.ac with some m4 magic to add a git commit id... #1456
Update configure.ac with some m4 magic to add a git commit id... #1456
Conversation
|
|
and a reference of the last tag, the changes since then and the dirty flag from `git describe`
36b58d8
to
2acd62d
Compare
@fasterit Some more questions:
My wish is to have a solution that works in a longer term. And that hacking with M4/Autoconf doesn't look like a long term solution to me. |
Making this change commit ids on every build would need to target |
@fasterit And I found some Stack Overflow posts like this and this. And it look like it's possible for git to put the commit ID into a file during |
There are many helper scripts floating around. There's the |
GitHub has this download source code archive feature for the web interface whether we use it or not. The user could download from there and if it's me, I would add support of this use case.
While I am personally not convinced, I did look up the use of M4 macros in
|
Small note: @fasterit Would be nice, if we could report this commit id also as part of the summary report at the bottom of the configure output. |
It's already part of the version string at the summary report. Example build log has it: |
An issue with the current solution by @fasterit:
Perhaps there is another issue worth mentioning, in the maintenance perspective:
|
Both are rather cosmetic. The important information in the first case is the commit id. If there's a git tag and tags available, we at least know about how much changed since the last release it was build upon. Also, the second issue, is something I somehow find redundant, but to little to actually care … The team has to be able to understand those versions after all … |
Speaking of, I have experimented the git-version-gen script from Gnulib (used in Autoconf too), and I found it has some weaknesses preventing me from adopting for htop:
|
I would guess they are to address the sorting issue. When a package version is generated that way, it affects the name of |
... and a reference of the last tag, the changes since then and the
dirty flag from
git describe