In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/31b42f2e3560656f5b499423a3e567c017a8c89a?hp=c6eacdc3acc965cb069ded02e066d3c00e9385df>
- Log ----------------------------------------------------------------- commit 31b42f2e3560656f5b499423a3e567c017a8c89a Author: David Mitchell <[email protected]> Date: Wed Dec 3 13:30:12 2014 +0000 reduce stderr noise in build Ideally you should be able to do (Configure && make test) 2> /tmp/err with /tmp/err being empty. This is not the case, and this commit is a first step towards that goal. The fprintf (stderr, "Sizeof time_t = %ld\n", sizeof (time_t)); in Configure appears to be just a debugging aid; it's also a copy of the code in Porting/timecheck.c, which people can always run if need-be. hints/linux.sh appears to be looking for symbols in libdb.so; if the library is stripped, this produces to stderr: /bin/nm: /lib/libdb.so: no symbols I've silenced it for now with a 2>/dev/null, but I'm not sure if the whole test is flawed, since with no symbols, 'nm libdb.so | grep pthread' is a no-op. make_patchnum.pl, when running backticks, prints $? to stderr if it's non-zero; since a similar print in the other branch is already commented out, I assume its just left-over debugging. ----------------------------------------------------------------------- Summary of changes: Configure | 1 - hints/linux.sh | 2 +- make_patchnum.pl | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Configure b/Configure index 4a014d6..fc8a8f4 100755 --- a/Configure +++ b/Configure @@ -21448,7 +21448,6 @@ int check_min () int main (int argc, char *argv[]) { - fprintf (stderr, "Sizeof time_t = %ld\n", sizeof (time_t)); check_max (); check_min (); return (0); diff --git a/hints/linux.sh b/hints/linux.sh index d4f0823..fb5a46e 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -514,7 +514,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then - if ${nm:-nm} -u $DBLIB | grep pthread >/dev/null + if ${nm:-nm} -u $DBLIB 2>/dev/null | grep pthread >/dev/null then if ldd $DBLIB | grep pthread >/dev/null then diff --git a/make_patchnum.pl b/make_patchnum.pl index 3f857b5..fc28d58 100644 --- a/make_patchnum.pl +++ b/make_patchnum.pl @@ -100,7 +100,7 @@ sub backtick { } else { my $result= `$subcd $command`; $result="" if ! defined $result; - warn "$subcd $command: \$?=$?\n" if $?; + #warn "$subcd $command: \$?=$?\n" if $?; print "#> $subcd $command ->\n $result\n" if !$? and $opt_v; chomp $result; return $result; -- Perl5 Master Repository
