Author: pierre
Date: Sun Jan 24 11:59:56 2016
New Revision: 16837

Log:
The current sed used for boost to allow using Python3 breaks the build
with Python2. The proposed change allows the build to pass with both
versions.

Modified:
   trunk/BOOK/general/genlib/boost.xml

Modified: trunk/BOOK/general/genlib/boost.xml
==============================================================================
--- trunk/BOOK/general/genlib/boost.xml Sun Jan 24 00:03:54 2016        (r16836)
+++ trunk/BOOK/general/genlib/boost.xml Sun Jan 24 11:59:56 2016        (r16837)
@@ -90,11 +90,11 @@
     <title>Installation of Boost</title>
 
     <para>
-      If you want Boost to use Python3 instead of Python2, fix a bug with
-      the header files path:
+      First, fix a bug with the header files path, when Python3 is used:
     </para>
 
-<screen><userinput>sed "/include.*python.*version/s/ ;/m ;/" -i 
tools/build/src/tools/python.jam</userinput></screen>
+<screen><userinput>sed -e 's@using python[^;]*@&: 
/usr/include/python${PYTHON_VERSION/3*/${PYTHON_VERSION}m} @'  \
+    -i bootstrap.sh</userinput></screen>
 
     <para>
       Install <application>Boost</application> by running the following
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to