]> git.donarmstrong.com Git - debhelper.git/commitdiff
Revert "Always respect DEB_${flag}_{APPEND,SET} envvars."
authorJoey Hess <joey@kitenet.net>
Mon, 20 Jun 2011 15:49:15 +0000 (11:49 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 20 Jun 2011 15:49:15 +0000 (11:49 -0400)
This reverts commit fcfcd1298f6ea1fcfb2b2b5a529303270aa800d9.

Per Raphael's mail.

Debian/Debhelper/Dh_Lib.pm
debian/changelog
dh
dh_auto_build
dh_auto_configure

index 86f729adab3f1ea2fe8e7a0db38d2c518418d090..174970b010c052966e27e551a28bdd568dd907cf 100644 (file)
@@ -917,7 +917,7 @@ sub set_buildflags {
        $buildflags->load_config();
        foreach my $flag ($buildflags->list()) {
                next unless $flag =~ /^[A-Z]/; # Skip flags starting with lowercase
-               if (! exists $ENV{$flag} || $buildflags->get_origin($flag) eq "env") {
+               if (! exists $ENV{$flag}) {
                        $ENV{$flag} = $buildflags->get($flag);
                }
        }
index c20d5b241e4818bdf06e07b766334a903944335d..57eb40c75744059a07fce055962adb14936d354a 100644 (file)
@@ -9,9 +9,7 @@ debhelper (8.1.7) UNRELEASED; urgency=low
     in --libexecdir when using autoconf. Closes: #541458
   * dh_auto_build, dh_auto_configure, dh: Set environment variables
     listed by dpkg-buildflags --export. Any environment variables that
-    are already set to other values will not be changed unless
-    appropriate DEB_${flag}_{APPEND,SET} environment variables are also
-    set (see dpkg-buildflags(1)).
+    are already set to other values will not be changed.
     Closes: #544844
   * dh_movefiles: Optimise use of xargs. Closes: #627737
   * Correct docs about multiarch and v9. Closes: #630826
diff --git a/dh b/dh
index 5ea6643ad33205b5cada9f410bfbeab78489e72a..aba8c270efb29d8bc9c4ebbcec67e14775d63b58 100755 (executable)
--- a/dh
+++ b/dh
@@ -193,18 +193,6 @@ sequence addons like this:
        %:
                dh $@ --with quilt
 
-In order to override standard build flags, export appropriate environment
-variables as documented in the L<dpkg-buildflags(1)> manual page. They will be
-preferred over directly exported their counterparts (CFLAGS, CXXFLAGS, LDFLAGS
-etc.). For example, to append -Wall to the standard CFLAGS and CXXFLAGS, use:
-
-       #!/usr/bin/make -f
-       export DEB_CFLAGS_APPEND = -Wall
-       export DEB_CXXFLAGS_APPEND = -Wall
-       
-       %:
-               dh $@
-
 Here is an example of overriding where the B<dh_auto_>I<*> commands find
 the package's source, for a package where the source is located in a
 subdirectory.
index 77b55eef84d5ee48d1249018e4ff402f7c2c1056..dccd04a0436a48cd6713ad19a2b0db9d573daf23 100755 (executable)
@@ -25,11 +25,6 @@ This is intended to work for about 90% of packages. If it doesn't work,
 you're encouraged to skip using B<dh_auto_build> at all, and just run the
 build process manually.
 
-In order to override standard build flags, export appropriate environment
-variables as documented in the L<dpkg-buildflags(1)> manual page. They will be
-preferred over directly exported their counterparts (CFLAGS, CXXFLAGS, LDFLAGS
-etc.).
-
 =head1 OPTIONS
 
 See L<debhelper(7)/B<BUILD SYSTEM OPTIONS>> for a list of common build
index f08c0f6f5d2e47715742f4c2b1cdafd537b05893..daf5ed047af223fbf8a61544d0ef4a4b20acf851 100755 (executable)
@@ -28,11 +28,6 @@ This is intended to work for about 90% of packages. If it doesn't work,
 you're encouraged to skip using B<dh_auto_configure> at all, and just run
 F<./configure> or its equivalent manually.
 
-In order to override standard build flags, export appropriate environment
-variables as documented in the L<dpkg-buildflags(1)> manual page. They will be
-preferred over directly exported their counterparts (CFLAGS, CXXFLAGS, LDFLAGS
-etc.).
-
 =head1 OPTIONS
 
 See L<debhelper(7)/B<BUILD SYSTEM OPTIONS>> for a list of common build