[108869] trunk/dports/devel/boost/files/patch-bootstrap.sh.diff

ryandesign at macports.org ryandesign at macports.org
Sat Aug 3 18:39:22 PDT 2013


Revision: 108869
          https://trac.macports.org/changeset/108869
Author:   ryandesign at macports.org
Date:     2013-08-03 18:39:21 -0700 (Sat, 03 Aug 2013)
Log Message:
-----------
boost: fix non-portable use of 'echo -n' (replace with 'printf')

Modified Paths:
--------------
    trunk/dports/devel/boost/files/patch-bootstrap.sh.diff

Modified: trunk/dports/devel/boost/files/patch-bootstrap.sh.diff
===================================================================
--- trunk/dports/devel/boost/files/patch-bootstrap.sh.diff	2013-08-04 01:12:54 UTC (rev 108868)
+++ trunk/dports/devel/boost/files/patch-bootstrap.sh.diff	2013-08-04 01:39:21 UTC (rev 108869)
@@ -1,11 +1,36 @@
---- bootstrap.sh.orig	2011-04-07 14:57:52.000000000 -0400
-+++ bootstrap.sh	2011-04-07 15:02:12.000000000 -0400
-@@ -279,7 +279,7 @@
+--- bootstrap.sh.orig	2013-03-09 16:55:05.000000000 -0600
++++ bootstrap.sh	2013-08-03 20:35:51.000000000 -0500
+@@ -213,7 +213,7 @@
  
+ # Build bjam
+ if test "x$BJAM" = x; then
+-  echo -n "Building Boost.Build engine with toolset $TOOLSET... "
++  printf "Building Boost.Build engine with toolset $TOOLSET... "
+   pwd=`pwd`
+   (cd "$my_dir/tools/build/v2/engine" && ./build.sh "$TOOLSET") > bootstrap.log 2>&1
+   if [ $? -ne 0 ]; then
+@@ -270,20 +270,20 @@
+ 
+ if test "x$flag_no_python" = x; then
+     if test "x$PYTHON_VERSION" = x; then
+-        echo -n "Detecting Python version... "
++        printf "Detecting Python version... "
+         PYTHON_VERSION=`$PYTHON -c "import sys; print (\"%d.%d\" % (sys.version_info[0], sys.version_info[1]))"`
+         echo $PYTHON_VERSION
+     fi
+ 
      if test "x$PYTHON_ROOT" = x; then
-         echo -n "Detecting Python root... "
+-        echo -n "Detecting Python root... "
 -        PYTHON_ROOT=`$PYTHON -c "import sys; print sys.prefix"`
++        printf "Detecting Python root... "
 +        PYTHON_ROOT=`$PYTHON -c "import sys; print (sys.prefix)"`
          echo $PYTHON_ROOT
      fi    
  fi
+ 
+ # Configure ICU
+-echo -n "Unicode/ICU support for Boost.Regex?... "
++printf "Unicode/ICU support for Boost.Regex?... "
+ if test "x$flag_icu" != xno; then
+   if test "x$ICU_ROOT" = x; then
+     COMMON_ICU_PATHS="/usr /usr/local /sw"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130803/633bf02a/attachment.html>


More information about the macports-changes mailing list