[git-buildpackage] Configuring git-buildpackage to include files ignored by git
Guido Günther
agx at sigxcpu.org
Tue Aug 27 09:52:31 CEST 2024
Hi,
On Mon, Aug 26, 2024 at 10:48:44PM +0200, Mohammed Amar-Bensaber wrote:
> Hello,
>
> I wish to package host-specific package configuration using git-buildpackage
> such as nginx, wireguard, nftables... etc. While git-buildpackage works really
> well, it seems to not allow the possibility to create non-reproducible
> packages i.e., packages that include secret files that are not tracked by git.
>
> Here's an example describing the current behavior.
>
> ```console
> $ cd repo
> $ git init .
> $ # Populate the repository
> $ cat debian/gbp.conf
> [DEFAULT]
> upstream-tag=v%(version)s
> upstream-branch=debian/bookworm
> debian-branch=debian/bookworm
>
> [buildpackage]
> export-dir = ../build-area
If you use `export-dir` then `--git-export=WC` should achieve the
desired behavior.
-- Guido
More information about the git-buildpackage
mailing list