r6800 - in trunk/BOOK: . introduction/welcome x/lib

dnicholson at linuxfromscratch.org dnicholson at linuxfromscratch.org
Thu Jun 7 20:47:39 PDT 2007


Author: dnicholson
Date: 2007-06-07 21:47:39 -0600 (Thu, 07 Jun 2007)
New Revision: 6800

Modified:
   trunk/BOOK/general.ent
   trunk/BOOK/introduction/welcome/changelog.xml
   trunk/BOOK/x/lib/qt.xml
Log:
Changed the Qt install so all files accessible from QTDIR=/usr/share/qt


Modified: trunk/BOOK/general.ent
===================================================================
--- trunk/BOOK/general.ent	2007-05-31 13:36:35 UTC (rev 6799)
+++ trunk/BOOK/general.ent	2007-06-08 03:47:39 UTC (rev 6800)
@@ -3,11 +3,11 @@
 $Date$
 -->
 
-<!ENTITY day          "31">                   <!-- Always 2 digits -->
-<!ENTITY month        "05">                   <!-- Always 2 digits -->
+<!ENTITY day          "07">                   <!-- Always 2 digits -->
+<!ENTITY month        "06">                   <!-- Always 2 digits -->
 <!ENTITY year         "2007">
 <!ENTITY version      "svn-&year;&month;&day;">
-<!ENTITY releasedate  "May &day;st, &year;">
+<!ENTITY releasedate  "June &day;th, &year;">
 <!ENTITY pubdate      "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
 <!ENTITY blfs-version "svn">                  <!-- svn|[release #] -->
 <!ENTITY lfs-version  "development">          <!-- version|testing|unstable|development] -->

Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml	2007-05-31 13:36:35 UTC (rev 6799)
+++ trunk/BOOK/introduction/welcome/changelog.xml	2007-06-08 03:47:39 UTC (rev 6800)
@@ -42,6 +42,16 @@
 -->
 
     <listitem>
+      <para>June 7th, 2007</para>
+      <itemizedlist>
+        <listitem>
+          <para>[dnicholson] - Changed the Qt /usr install with symlinks to
+          the bin, include and lib directories in /usr/share/qt.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>May 31st, 2007</para>
       <itemizedlist>
         <listitem>

Modified: trunk/BOOK/x/lib/qt.xml
===================================================================
--- trunk/BOOK/x/lib/qt.xml	2007-05-31 13:36:35 UTC (rev 6799)
+++ trunk/BOOK/x/lib/qt.xml	2007-06-08 03:47:39 UTC (rev 6800)
@@ -185,9 +185,7 @@
 
     <para>Continue with:</para>
 
-<screen><userinput>sed -i -e 's:$(QTDIR)/include:&/qt:' \
-       -e 's:$(QTDIR)/lib:&/qt:' \
-    mkspecs/linux*/qmake.conf &&
+<screen><userinput>sed -i '/QMAKE_RPATH/d' mkspecs/linux*/qmake.conf &&
 
 bash
 export PATH=$PWD/bin:$PATH &&
@@ -212,7 +210,6 @@
             -thread \
             -tablet &&
 
-find -type f -name Makefile | xargs sed -i "s at -Wl,-rpath,/usr/lib@@g" &&
 make &&
 exit</userinput></screen>
 
@@ -223,6 +220,9 @@
 
 <screen role="root"><userinput>make install &&
 ln -v -sf libqt-mt.so /usr/lib/libqt.so &&
+ln -v -snf ../../bin /usr/share/qt/bin &&
+ln -v -snf ../../include/qt /usr/share/qt/include &&
+ln -v -snf ../../lib /usr/share/qt/lib &&
 cp -v -r doc/man /usr/share &&
 cp -v -r examples /usr/share/doc/qt</userinput></screen>
 
@@ -293,9 +293,10 @@
   <sect2 role="commands">
     <title>Command Explanations</title>
 
-    <para><command>sed -i -e ... mkspecs/linux*/qmake.conf</command>:
-    Directories in <filename>qmake.conf</filename> need to be adjusted
-    to match the BLFS Method 1 installation directories.</para>
+    <para><command>sed -i '/QMAKE_RPATH/d' mkspecs/linux*/qmake.conf</command>:
+    In Method 1, <application>Qt</application> is being installed into
+    the standard system directories. The runtime library search path does not
+    need to be set in this case.</para>
 
     <para><command>bash</command>: This command enters a sub-shell to isolate
     environment changes.</para>
@@ -347,16 +348,17 @@
     <para><parameter>-thread</parameter>: This switch adds
     support for multi-threading.</para>
 
-    <para><command>find -type f -name Makefile | xargs sed -i
-    "s at -Wl,-rpath,/usr/lib@@g"</command>: This command removes hardcoded
-    run-time paths. Otherwise, <command>uic</command> always tries to run
-    with <application>Qt</application> libraries in
-    <filename>/usr/lib</filename>.</para>
-
-    <para><command>ln -v -s libqt-mt.so /usr/lib/libqt.so</command>: This
+    <para><command>ln -v -sf libqt-mt.so /usr/lib/libqt.so</command>: This
     command allows <command>configure</command> scripts to find a working
     <application>Qt</application> installation.</para>
 
+    <para><command>ln -v -snf ../../bin /usr/share/qt/bin</command>: This
+    command and the following two allow the
+    <filename class="directory">/usr</filename> style installation to mimic
+    the <filename class="directory">/opt</filename> style installation by
+    making all binaries, headers and libraries available from a single
+    directory, <filename class="directory">/usr/share/qt</filename>.</para>
+
     <para><command>cp -v -r doc/man examples /usr/share (or
     /opt/qt/doc)</command>:
     This command installs the man pages and examples which are missed by
@@ -381,9 +383,9 @@
       <filename>/etc/profile</filename> file.</para>
 
       <para>For Method 1 (This is optional, only set this if an application is
-      unable to find the installed libraries):</para>
+      unable to find the installed libraries or headers):</para>
 
-<screen><literal>export QTDIR=/usr</literal></screen>
+<screen><literal>export QTDIR=/usr/share/qt</literal></screen>
 
       <para>or for Method 2:</para>
 




More information about the blfs-book mailing list