php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch error2stderr-buildconf for *Compile Issues Bug #77041

Patch version 2018-10-20 03:45 UTC

Return to Bug #77041 | Download this patch
Patch Revisions:

Developer:

diff --git a/build/buildcheck.sh b/build/buildcheck.sh
index 6601fc9943..90a6a5605b 100755
--- a/build/buildcheck.sh
+++ b/build/buildcheck.sh
@@ -28,16 +28,16 @@ fi
 # autoconf 2.68 or newer
 ac_version=`$PHP_AUTOCONF --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
 if test -z "$ac_version"; then
-echo "buildconf: autoconf not found."
-echo "           You need autoconf version 2.68 or newer installed"
-echo "           to build PHP from Git."
+echo "buildconf: autoconf not found." >&2
+echo "           You need autoconf version 2.68 or newer installed" 1>&2
+echo "           to build PHP from Git." >&2
 exit 1
 fi
 IFS=.; set $ac_version; IFS=' '
 if test "$1" = "2" -a "$2" -lt "68" || test "$1" -lt "2"; then
-echo "buildconf: autoconf version $ac_version found."
-echo "           You need autoconf version 2.68 or newer installed"
-echo "           to build PHP from Git."
+echo "buildconf: autoconf version $ac_version found." >&2
+echo "           You need autoconf version 2.68 or newer installed" 1>&2
+echo "           to build PHP from Git." >&2
 exit 1
 else
 echo "buildconf: autoconf version $ac_version (ok)"
diff --git a/build/genif.sh b/build/genif.sh
index 1df7c93164..a6eb627b0c 100755
--- a/build/genif.sh
+++ b/build/genif.sh
@@ -12,7 +12,7 @@ awk=$1
 shift
 
 if test -z "$infile" || test -z "$srcdir"; then
-	echo "please supply infile and srcdir"
+	echo "please supply infile and srcdir" >&2
 	exit 1
 fi
 
diff --git a/buildconf b/buildconf
index 23d10061f2..4b72ef8efb 100755
--- a/buildconf
+++ b/buildconf
@@ -27,8 +27,8 @@ while test $# -gt 0; do
 done
 
 if test "$dev" = "0" -a "$devok" = "0"; then
-  echo "You should not run buildconf in a release package."
-  echo "use buildconf --force to override this check."
+  echo "You should not run buildconf in a release package." >&2
+  echo "use buildconf --force to override this check." >&2
   exit 1
 fi
 
diff --git a/config.sub b/config.sub
index 20f7cf29a9..13c4f1929e 100644
--- a/config.sub
+++ b/config.sub
@@ -89,7 +89,7 @@ while test $# -gt 0 ; do
     - )	# Use stdin as input.
        break ;;
     -* )
-       echo "$me: invalid option $1$help"
+       echo "$me: invalid option $1$help" >&2
        exit 1 ;;
 
     *local*)
diff --git a/makedist b/makedist
index ea17bafa77..452768683a 100755
--- a/makedist
+++ b/makedist
@@ -65,8 +65,8 @@ DIR=php-$VER
 DIRPATH=$MY_OLDPWD/$DIR
 
 if test -d "$DIRPATH"; then
-    echo "The directory $DIR"
-    echo "already exists, rename or remove it and run makedist again."
+    echo "The directory $DIR" >&2
+    echo "already exists, rename or remove it and run makedist again." >&2
     exit 1
 fi
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC