Skip to content

Fix COPR build failure induced by git tag finder - #39

Merged
vhrabar merged 1 commit into
mainfrom
packaging/copr-git-fix
Aug 19, 2026
Merged

vhrabar merged 1 commit into
mainfrom
packaging/copr-git-fix

Conversation

@vhrabar

@vhrabar vhrabar commented Aug 19, 2026

Copy link
Copy Markdown
Owner

This pull request addresses a build failure in the COPR packaging process by deferring the resolution of the release version until after git is installed, ensuring the version is correctly determined and providing a clear error message if no tag is found. This improves the robustness of the build process and provides better feedback in error cases.

Build process improvements:

  • Moved the logic for resolving the package version with git describe from Makefile parsing time to execution time in the srpm recipe, ensuring git is installed before version resolution and preventing empty version errors. Now, if no tag is found, the build fails with a clear message instructing the user to submit the build with a tagged commit. (.copr/Makefile)
  • Updated all references in the srpm recipe to use the resolved version variable instead of the previous VERSION make variable. (.copr/Makefile)

Documentation:

  • Added a changelog entry describing the fix for COPR build failures due to version resolution issues. (CHANGELOG.md)

…cipe #38

Moved version resolution with `git describe` from Makefile parsing into the recipe, ensuring `git` is installed beforehand. Added error handling for clones without reachable tags. Updated `.copr/Makefile` and `CHANGELOG.md` accordingly.

Signed-off-by: Vedran Hrabar <vedran.hrabar@outlook.com>
@vhrabar vhrabar added this to the Phase IV: Initial GUI milestone Aug 19, 2026
@vhrabar vhrabar added bug Something isn't working packaging labels Aug 19, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in SecureEye Aug 19, 2026
@vhrabar
vhrabar merged commit 666a0e6 into main Aug 19, 2026
3 of 4 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in SecureEye Aug 19, 2026
@vhrabar
vhrabar deleted the packaging/copr-git-fix branch August 19, 2026 07:23
vhrabar added a commit that referenced this pull request Aug 19, 2026
Fix COPR build failure induced by git tag finder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working packaging

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant