builderv2: support fetching sources from git (and making tarball out of it for packaging purposes) #9088
Labels
C: builder
Qubes Builder
P: default
Priority: default. Default priority for new issues, to be replaced given sufficient information.
pr submitted
A pull request has been submitted for this issue.
T: enhancement
Type: enhancement. A new feature that does not yet exist or improvement of existing functionality.
How to file a helpful issue
The problem you're addressing (if any)
Not all projects publish tarballs, some publish only a git repository. When on github.com, one can get github-generated tarball (and in some places we do), but that isn't perfect. If the release tag is signed, we could use that for integrity verification, even if tarballs are not.
The solution you'd like
Support setting git repository as a source in
.qubesbuilder
file. This should support setting:@VERSION@
should be recognized)If fetch and verify succeeds, it should produce a tarball that can be consumed by rpm/dpkg for package building.
Note: this would be the first(?) feature in
.qubesbuilder
that doesn't have matching legacy builder equivalent. Since R4.2 should be compatible with both qubes-builder versions, this new feature needs to either be used only for R4.3+ packages, or it needs to be supported with legacy builder too (most likely via some canonical snippet for theget-sources
target inMakefile
).The value to a user, and who that user might be
Easier packaging of software distributed as git repository only. And in some places, bypass manually generated tarballs that could be a place where backdoor is inserted.
Completion criteria checklist
.qubesbuilder
entriesThe text was updated successfully, but these errors were encountered: