Hi Santiago, On Sat, 23 Dec 2023 15:50:24 +0100 Santiago Vila <sanv...@debian.org> wrote: > I'm trying to use faketime with sbuild. Currently, I managed to make it work > by replacing dpkg-buildpackage inside the chroot with a wrapper script: > > #!/bin/sh > faketime -f "@2028-12-31 12:00:00" real-dpkg-buildpackage > > But I would prefer not to fiddle with the contents of the chroot. > Is there a less intrusive way? > > Somewhere in the source I see this hardcoded: > > system('/usr/bin/dpkg-buildpackage', > > so maybe we would just need some new environment variable string to be used > as a prefix for that.
sorry for taking so long to follow up here... This must've slipped through the cracks and I only found it again now thanks to some bug triage by Richard Lewis. To prefix dpkg-buildpackage with something else, you can use BUILD_ENV_CMND or $build_env_cmnd in your ~/.config/sbuild/conf.pl. Can you confirm that this works for you? Thanks! cheers, josch
signature.asc
Description: signature