To avoid re-breaking packages that were already broken a first time by
dpkg-buildpackage unconditionally setting the environment, and unbroke it
by unsetting variables in the rules file. (Example: numpy)
# Sets environment variables from dpkg-buildflags. Avoids changing
# any existing environment variables.
sub set_buildflags {
# Sets environment variables from dpkg-buildflags. Avoids changing
# any existing environment variables.
sub set_buildflags {
- # optimisation
- return if $ENV{DH_INTERNAL_BUILDFLAGS};
+ return if $ENV{DH_INTERNAL_BUILDFLAGS} || compat(8);
$ENV{DH_INTERNAL_BUILDFLAGS}=1;
eval "use Dpkg::BuildFlags";
$ENV{DH_INTERNAL_BUILDFLAGS}=1;
eval "use Dpkg::BuildFlags";
=head1 BUILD SYSTEM OPTIONS
=head1 BUILD SYSTEM OPTIONS
-All of the B<dh_auto_>I<*> debhelper programs set environment variables
-listed by B<dpkg-buildflags>, unless they are already set. They
-support DEB_BUILD_OPTIONS=noopt too.
-
The following command line options are supported by all of the B<dh_auto_>I<*>
debhelper programs. These programs support a variety of build systems,
and normally heuristically determine which to use, and how to use them.
The following command line options are supported by all of the B<dh_auto_>I<*>
debhelper programs. These programs support a variety of build systems,
and normally heuristically determine which to use, and how to use them.
B<dh> does not default to enabling --with=python-support
B<dh> does not default to enabling --with=python-support
+=item -
+
+All of the B<dh_auto_>I<*> debhelper programs and B<dh> set
+environment variables listed by B<dpkg-buildflags>, unless
+they are already set. They support DEB_BUILD_OPTIONS=noopt too.
+
-debhelper (8.9.4) UNRELEASED; urgency=low
+debhelper (8.9.4) unstable; urgency=low
* dh: The --before --after --until and --remaining options are deprecated.
Use override targets instead.
* dh: The --before --after --until and --remaining options are deprecated.
Use override targets instead.
(Modestas Vainius) Closes: #601590
* dh_auto_test: Run cmake tests in parallel when allowed by
DEB_BUILD_OPTIONS. (Modestas Vainius) Closes: #587885
(Modestas Vainius) Closes: #601590
* dh_auto_test: Run cmake tests in parallel when allowed by
DEB_BUILD_OPTIONS. (Modestas Vainius) Closes: #587885
+ * dpkg-buildflags is only used to set environment in v9, to avoid
+ re-breaking packages that were already broken a first time by
+ dpkg-buildpackage unconditionally setting the environment, and
+ worked around that by unsetting variables in the rules file.
+ (Example: numpy)
- -- Joey Hess <joeyh@debian.org> Fri, 05 Aug 2011 10:58:36 -0400
+ -- Joey Hess <joeyh@debian.org> Sat, 06 Aug 2011 18:58:59 -0400
debhelper (8.9.3) unstable; urgency=low
debhelper (8.9.3) unstable; urgency=low
A sequence can also run dependent targets in debian/rules. For
example, the "binary" sequence runs the "install" target.
A sequence can also run dependent targets in debian/rules. For
example, the "binary" sequence runs the "install" target.
-B<dh> sets environment variables listed by B<dpkg-buildflags>, unless
-they are already set. It supports DEB_BUILD_OPTIONS=noopt too.
-
B<dh> uses the B<DH_INTERNAL_OPTIONS> environment variable to pass information
through to debhelper commands that are run inside override targets. The
contents (and indeed, existence) of this environment variable, as the name
B<dh> uses the B<DH_INTERNAL_OPTIONS> environment variable to pass information
through to debhelper commands that are run inside override targets. The
contents (and indeed, existence) of this environment variable, as the name