[Debian-salsa-ci] Repacking source package files in Salsa-CI
Otto Kekäläinen
otto at debian.org
Tue Jan 6 16:39:49 GMT 2026
Hello!
..
> I've documented[4] the resulting source package build process. That
> build relies on invoking both 'gbp export-orig' and then
> 'mk-origtargz' to repack the sources without the excluded files (NB:
> 'gbp export-orig' does not yet[5] support this natively).
What you have done seems way too complicated. All you need to do is to
fork the upstream repository, create a branch debian/latest and in
debian/copyright define the Files-Excluded, and then let `gbp
import-orig` automation take care of all the details. See
https://optimizedbyotto.com/post/debian-packaging-from-git/ for longer
explanation in blog form and e.g.
https://salsa.debian.org/games-team/godot/-/tree/debian/latest/debian
for a real example in Salsa.
Note also that concept of "fork" does not need to be bound to a single
forge such as GitHub. If you have a copy of upstream git on
salsa.debian.org, and I would also call it a fork.
More information about the Debian-salsa-ci
mailing list