Skip to content

repro-build: pass VERSION to the install step - #9514

Open
kwsantiago wants to merge 1 commit into
ElementsProject:masterfrom
privkeyio:repro-build-install-version
Open

kwsantiago wants to merge 1 commit into
ElementsProject:masterfrom
privkeyio:repro-build-install-version

Conversation

@kwsantiago

Copy link
Copy Markdown

tools/repro-build.sh passes VERSION to the build but not to make install. version_gen.h depends on $(FORCE), so the install step regenerates it from git describe and relinks, and the installed binaries report the describe string rather than the requested version.

It is invisible when building from an exact tag, where the two agree, and shows up when FORCE_VERSION is used anywhere else.

Full repro build of master at a34b975 with FORCE_VERSION=v26.06.7-prtest:

before:  lightningd --version -> v26.06-295-ga34b975
after:   lightningd --version -> v26.06.7-prtest

Version updated appears twice in the build log before the change and once after.

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.

1 participant