They are initialized by the loader with values searched in the
needed libraries.
+ * scripts/Dpkg/BuildOptions.pm (set): Change the default value of
+ the overwrite parameter to 1. The only use of this function in
+ dpkg-buildpackage is missing the parameter and actually wants to
+ overwrite the whole variable.
+ * scripts/t/300_Dpkg_BuildOptions.t: Adjust the test suite for this
+ change.
+
2008-01-04 Raphael Hertzog <hertzog@debian.org>
* scripts/Dpkg/Shlibs/SymbolFile.pm: Replace #DEPRECATED by
* Explain better the order in which postinst/prerm scripts are called
between a package and its dependencies. Thanks to Nicolas François and
Helge Kreutzmann for their suggestions. Closes: #379641
+ * Fix Dpkg::BuildOptions so that dpkg-buildpackage doesn't double all
+ options in DEB_BUILD_OPTIONS when called with the -j parameter.
+ Closes: #453656
[ Guillem Jover ]
* Move compression related variables to a new Dpkg::Compression module.
sub set {
my ($opts, $overwrite) = @_;
+ $overwrite = 1 if not defined($overwrite);
my $env = $overwrite ? '' : $ENV{DEB_BUILD_OPTIONS}||'';
if ($env) { $env .= ',' }
$ENV{DEB_BUILD_OPTIONS} = 'foobar';
$dbo = { noopt => '' };
-$env = Dpkg::BuildOptions::set($dbo);
+$env = Dpkg::BuildOptions::set($dbo, 0);
is($env, "foobar,noopt,", 'set (append)');