Le mer. 7 janv. 2026 à 01:35, Charles Plessy <[email protected]> a écrit :

> Hello everybody,
>
> When I run sbuild in 'unshare' mode (with Apt-Cacher NG) to prepare a
> package
> update, is there a standard and efficient way (like reusing the chroot
> where
> some of the dependencies were already installed to build the package) to
> run
> autopkgtest after the package build, in a way that reproduces closely what
> ci.debian.net is doing?  I guess somebody has already figured it out but I
> could not find a straigthforward answer on the Internet...
>

I don't think that's possible, or even a good idea, since the whole point
of autopkgtest is to have a clean environment.

For reference:
https://wiki.debian.org/sbuild

My config ends up like this:
$clean_source = 0;
$unshare_mmdebstrap_max_age = 604800;
$chroot_mode = 'unshare';
$apt_update = 1;
$unshare_tmpdir_template = '/tmp/sharedmem/tmp.sbuild.XXXXXXXXXX';
$unshare_mmdebstrap_keep_tarball = 1;

$external_commands = {
 "build-failed-commands" => [ [ '%SBUILD_SHELL' ] ],
};

$run_autopkgtest = 1;
$autopkgtest_opts = [ '--shell-fail', '--apt-upgrade', '--', 'unshare',
'--release', '%r', '--arch', '%a' ];

$unshare_mmdebstrap_extra_args = [
 '*-{backports}' => ['--setup-hook=echo "deb http://deb.debian.org/debian
%r main" > "$1"/etc/apt/sources.list.d/%r.list'],
 qr/^(experimental|rc-buggy)$/ => ['--setup-hook=echo "deb
http://deb.debian.org/debian experimental main" >
"$1"/etc/apt/sources.list.d/experimental.list'],
 '*' => ['--aptopt=\'Acquire::http { Proxy "http://127.0.0.1:3142";; }\'',
'--include=auto-apt-proxy,vim,quilt']
];

Jérémy


>
> Have a nice day,
>
> Charles
>
> --
> Charles Plessy                         Nagahama, Yomitan, Okinawa, Japan
> Debian Med packaging team         http://www.debian.org/devel/debian-med
> Tooting from home                  https://framapiaf.org/@charles_plessy
> - You  do not have  my permission  to use  this email  to train  an AI -
>
>

Reply via email to