Hello,

On Mon, 02 Dec 2024 15:03:48 +0100 Johannes Schauer Marin Rodrigues <jo...@debian.org> wrote:
On Sat, 23 Dec 2023 15:50:24 +0100 Santiago Vila <sanv...@debian.org> wrote:
> so maybe we would just need some new environment variable string to be used
> as a prefix for that.

[...]

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?

I've been keen to try this out since I'm currently looking into one of those "will FTBFS during trixie support period bugs".

Unfortunately, this doesn't work when added to the sbuild config:

    $build_env_cmnd = 'faketime -f "@2028-06-10 12:00:00"';

which results in:

Can't exec "faketime -f "@2028-06-10 12:00:00"": No such file or directory at /usr/libexec/sbuild-usernsexec line 515.

In addition, it seems that this configuration setting only accepts a string, since using an array doesn't work, it tries to use the variable reference in the command line rather than expand the array items.

So, it would be quite useful if $build_env_cmnd was adjusted to be able to accept not only an executable but command-line arguments as well.

Thanks,

-- Jérôme

Reply via email to