by making the test stop after it sees one line of output from make. (This
may be better replaced with dh's makefile parser in the future.)
# Use make -n to check to see if the target would do
# anything. There's no good way to test if a target exists.
- my $ret=`$makecmd -s -n --no-print-directory $target 2>/dev/null`;
+ my $ret=`$makecmd -s -n --no-print-directory $target 2>/dev/null | head -n 1`;
chomp $ret;
return length($ret);
}
+debhelper (7.4.7) UNRELEASED; urgency=low
+
+ * make: Avoid infinite loop that occurrs when testing existence of a target
+ in a certian horribly broken makefile, by making the test stop after
+ it sees one line of output from make. (This may be better replaced with
+ dh's makefile parser in the future.) Closes: #557307
+
+ -- Joey Hess <joeyh@debian.org> Sat, 21 Nov 2009 13:29:01 -0500
+
debhelper (7.4.6) unstable; urgency=low
* Update --list to reflect buildsystem autoselection changes.