[blfs-book] r12099 - trunk/BOOK/x/lib

igor at higgs.linuxfromscratch.org igor at higgs.linuxfromscratch.org
Wed Oct 30 07:19:55 PDT 2013


Author: igor
Date: Wed Oct 30 07:19:55 2013
New Revision: 12099

Log:
prevent qt configure to write in / if building as root

Modified:
   trunk/BOOK/x/lib/qt4.xml

Modified: trunk/BOOK/x/lib/qt4.xml
==============================================================================
--- trunk/BOOK/x/lib/qt4.xml	Wed Oct 30 04:47:38 2013	(r12098)
+++ trunk/BOOK/x/lib/qt4.xml	Wed Oct 30 07:19:55 2013	(r12099)
@@ -214,6 +214,8 @@
 
 <screen><userinput>sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \
      config.tests/unix/libmng/libmng.cpp &&
+sed -i '/CONFIG -/ a\isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../..' \
+     src/3rdparty/webkit/Source/WebKit2/DerivedSources.pro &&
 
 ./configure -prefix         /usr                 \
             -bindir         /usr/lib/qt4/bin     \
@@ -311,6 +313,8 @@
 
 <screen><userinput>sed -i -e "/#if/d" -e "/#error/d" -e "/#endif/d" \
      config.tests/unix/libmng/libmng.cpp &&
+sed -i '/CONFIG -/ a\isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../..' \
+     src/3rdparty/webkit/Source/WebKit2/DerivedSources.pro &&
 
 export QTDIR=/opt/qt-&qt4-version;
 
@@ -373,8 +377,9 @@
     <title>Command Explanations</title>
 
     <para>
-      <command>sed -i "..." ...</command>: This command fixes
-      detection of <application>libmng</application> 2.0.
+      <command>sed -i ...</command>: First command fixes detection of
+      <application>libmng</application> 2.0 and second one prevents configure
+      script to write in root directory if building as privileged user.
     </para>
 
     <para>



More information about the blfs-book mailing list