Source: sbuild Version: 0.90.2 I have $run_autopkgtest = 1; set in my ~/.config/sbuild/config.pl
When preparing transitions (or building against any packaged dependency that isn't in Debian yet), it is helpful to use sbuild --extra-package . I'm frustrated that these extra packages aren't passed along to autopkgtest. One or more .deb filenames can be passed to autopkgtest but they need to be passed with the absolute path. I'm attaching a preliminary patch. It works if --extra-package= contains an absolute path directory or absolute path filename. It fails if relative paths are used. It also isn't using any checks that sbuild has already done on these .deb packages. I'm not very familiar with perl or the sbuild codebase, so maybe this is enough of a start for someone who is to get this feature working. Thank you, Jeremy BĂcha
From 655c8479b2a4d796ab3a83995f9f5536488145a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jeremy=20B=C3=ADcha?= <[email protected]> Date: Wed, 10 Sep 2025 16:56:34 -0400 Subject: [PATCH] Use --extra-package for autopkgtest post-build --- lib/Sbuild/Build.pm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/Sbuild/Build.pm b/lib/Sbuild/Build.pm index 30e2ef96..c5ba7ddc 100644 --- a/lib/Sbuild/Build.pm +++ b/lib/Sbuild/Build.pm @@ -2168,6 +2168,23 @@ sub run_autopkgtest { push @autopkgtest_command, $self->get_conf('AUTOPKGTEST_ROOT_ARGS'); } push @autopkgtest_command, $autopkgtest; + + for my $deb (@{$self->get_conf('EXTRA_PACKAGES')}) { + if (-f $deb) { + push @autopkgtest_command, $deb; + } elsif (-d $deb) { + opendir(D, $deb); + while (my $f = readdir(D)) { + next if (! -f "$deb/$f"); + next if ("$deb/$f" !~ /\.deb$/); + push @autopkgtest_command, "$deb/$f"; + } + closedir(D); + } else { + $self->log_warning("$deb is neither a regular file nor a directory. Skipping...\n"); + } + } + my $tmpdir; my @cwd_files; # If the source package was not instructed to be built, then it will not -- 2.51.0

