#1053789 sbuild: should support --env=VAR=VALUE command line option like autopkgtest

#1053789#5
Date:
2023-10-11 09:08:00 UTC
From:
To:
Hello,

it would be nice if sbuild supported the --env=VAR=VALUE command line
option like autopkgtest:

#1053789#8
Date:
2023-10-11 12:09:10 UTC
From:
To:
Hi Raphaël,

Quoting Raphaël Hertzog (2023-10-11 11:08:00)

this doesn't sound like a bad idea. I will happily review patches that
implement this.

Thanks!

cheers, josch

#1053789#13
Date:
2024-01-05 11:15:39 UTC
From:
To:
Hi!
the variable name and its value on the CLI we could add support for
appending values to $environment_filter, ie: specify which variables
should be whitelisted.

Something like:
  --allow-var=FOO --allow-var=BAR

Resulting in:
  $environment_filter = [Dpkg::BuildInfo::get_build_env_allowed(), 'FOO', 'BAR'];

Either way, definitely a useful feature!