Package: sbuild
Version: 0.88.1

Hello josch.

After adding the following lines to my .sbuildrc file:

use Dpkg::Build::Info;
$environment_filter = [Dpkg::BuildInfo::get_build_env_allowed(), 
'GNUMAKEFLAGS'];

the build logs now contain variables (used by the script I use to call
sbuild) which were never meant to be passed to the build environment.

Note: I discovered this by "accident":

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1090244


The lines I added to .sbuildrc are copied verbatim from the manpage:

# Appending FOOBAR to the default
use Dpkg::Build::Info;
$environment_filter = [Dpkg::BuildInfo::get_build_env_allowed(), 'FOOBAR'];

except that I'm using GNUMAKEFLAGS (to pass --shuffle) instead of FOOBAR.

So it seems that there is something wrong somewhere, but I don't know where.
It is completely possible that I misunderstood the given example.

One thing that I don't understand here is why the example should work at all,
given that get_build_env_allowed() returns a list of environment variables,
not a list of regular expressions. Is the example correct at all?

Thanks.

Reply via email to