]> git.donarmstrong.com Git - debhelper.git/commitdiff
comment munging
authorJoey Hess <joey@gnu.kitenet.net>
Wed, 18 Nov 2009 19:28:47 +0000 (14:28 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Wed, 18 Nov 2009 19:28:47 +0000 (14:28 -0500)
Debian/Debhelper/Buildsystem.pm
Debian/Debhelper/Buildsystem/cmake.pm
Debian/Debhelper/Buildsystem/perl_makemaker.pm

index 7f7465a42840171f1b73c34754da47d0a5376196..5b3423e60e6f9542c3e337102ced6a645e8d1677 100644 (file)
@@ -109,16 +109,16 @@ sub _set_builddir {
 }
 
 # This instance method is called to check if the build system is able
-# to build a source package. It will be called during build
-# system auto-selection process inside the root directory of the debian
-# source package. Current build step will be passed as an additional
-# argument. The value returned must be 0 if the source is not buildable
-# or a positive integer otherwise.
+# to build a source package. It will be called during the build
+# system auto-selection process, inside the root directory of the debian
+# source package. The current build step is passed as an argument.
+# Return 0 if the source is not buildable, or a positive integer
+# otherwise.
 #
 # Generally, it is enough to look for invariant unique build system
 # files shipped with clean source to determine if the source might
-# be buildable or not. However, if the build system enhances (i.e.
-# derives) from the other auto-buildable build system, this method
+# be buildable or not. However, if the build system is derived from
+# another other auto-buildable build system, this method
 # may also check if the source has already been built with this build
 # system partitially by looking for temporary files or other common
 # results the build system produces during the build process. The
index 3eddc74ff749db4182cc8dabdfdb5b06b99e06ba..ee90c1f9122814761db5decd5e5383f5b82e11b5 100644 (file)
@@ -18,6 +18,9 @@ sub check_auto_buildable {
        my ($step)=@_;
        if (-e $this->get_sourcepath("CMakeLists.txt")) {
                my $ret = $this->SUPER::check_auto_buildable(@_);
+               # Existence of CMakeCache.txt indicates cmake has already
+               # been used by a prior build step, so should be used
+               # instead of the parent makefile class.
                $ret++ if ($ret && -e $this->get_buildpath("CMakeCache.txt"));
                return $ret > 0 ? $ret : 1;
        }
index 473a3a7e8bf7e2c3747236b10bf91823f7f34bda..b2500ab71d6e78442b453981d3b787d9b6ff9d74 100644 (file)
@@ -23,12 +23,6 @@ sub check_auto_buildable {
                        return 1;
                }
                else {
-                       # This is backwards compatible (with << 7.3) until build, test and
-                       # clean steps are not reimplemented in the backwards compatibility
-                       # breaking way. However, this is absolutely necessary for
-                       # enforce_in_source_building() to work in corner cases in build,
-                       # test and clean steps as the next class (makefile) does not
-                       # enforce it.
                        return $this->SUPER::check_auto_buildable(@_);
                }
        }