Commit 732e2b9fb8 for perl
commit 732e2b9fb822164a3a24fdf0816176892caa6c10
Author: Karl Williamson <khw@cpan.org>
Date: Tue Nov 17 10:03:53 2026 -0700
makedependfile.SH: Don't discard stderr output
Previously this script captured stderr in a file and discarded it. This
hid various issues from us. Now that this script has been hardened to
take care of more cases, I want to see if anything remains, so don't
discard stderr.
diff --git a/makedependfile.SH b/makedependfile.SH
index 0eacbf25da..cde6d6871e 100644
--- a/makedependfile.SH
+++ b/makedependfile.SH
@@ -246,7 +246,7 @@ $echo "Finding dependencies for $filebase$_o"
touch UU/git_version.h
# Run the preprocess, and remove all the following irrelevant lines
-$cppstdin -DPERL_CORE $finc -I. -IUU $cppflags $cppminus <UU/$file.c >$$.cout 2>$$.cerr
+$cppstdin -DPERL_CORE $finc -I. -IUU $cppflags $cppminus <UU/$file.c >$$.cout
$sed -e '1d' \
-e '/^#.*<stdin>/d' \
-e '/^#.*<builtin>/d' \
@@ -268,10 +268,9 @@ $sed -e '1d' \
-e 's/^.*"\(.*\)".*$/'$filebase'\$(OBJ_EXT): \1/' \
-e 's/^# *[0-9][0-9]* \(.*\)$/'$filebase'\$(OBJ_EXT): \1/' \
-e 's|: \./|: |' \
- -e 's|\.c\.c|.c|' $uwinfix $$.cout $$.cerr \
+ -e 's|\.c\.c|.c|' $uwinfix $$.cout \
| $uniq | $sort | $uniq >> $outfile
rm $$.cout
-rm $$.cerr
$echo "$filebase\$(OBJ_EXT): $@" >>$outfile
!NO!SUBS!