From fde0a620f908a6e49952d4cd6668558bc7e453f7 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 11 Feb 2026 12:56:01 -0800 Subject: [PATCH] debian: Ensure that gbp creates a clean tarball prior to build - Without the --git-export-dir option, gbp builds from the current directory which contains .container and many other large files. All of these files will get included into the tarball by default when 'gbp buildpackage' is executed in an unclean folder. - With the --git-export-dir option set, 'git export' is first executed to a temporary directory and this git operation respects patterns in .gitignore. Thus only expected files end up in the freedombox package source tarball. Tests: - When the source directory contains files in ./container, running 'gbp buildpackage' results in freedombox*.tar.xz containing the disk images of the containers. With this change, the tarball is clean and none of the files in .gitignore endup in the tarball. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- debian/gbp.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/gbp.conf b/debian/gbp.conf index 85d542409..4209d43e2 100644 --- a/debian/gbp.conf +++ b/debian/gbp.conf @@ -1,6 +1,9 @@ [DEFAULT] debian-branch = main +[buildpackage] +export-dir = ../build-area/ + [dch] git-log = --no-merges multimaint-merge = True