Index: x/lib/qt4.xml
===================================================================
--- x/lib/qt4.xml	(revision 16efe57a730871bf655bb4e04e673ec0312d8407)
+++ x/lib/qt4.xml	(revision 14c0f145e83417ca6ca9bff3f7cf713c60345412)
@@ -7,5 +7,5 @@
   <!ENTITY qt4-download-http "http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-&qt4-version;.tar.gz">
   <!ENTITY qt4-download-ftp  "ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-&qt4-version;.tar.gz">
-  <!ENTITY qt4-md5sum        "e8a5fdbeba2927c948d9f477a6abe904">
+  <!ENTITY qt4-md5sum        "7960ba8e18ca31f0c6e4895a312f92ff">
   <!ENTITY qt4-size          "228 MB">
   <!ENTITY qt4-buildsize     "1.8 GB (full), 619 (essential)">
@@ -30,9 +30,13 @@
     <title>Introduction to Qt4</title>
 
-    <para>The <application>Qt4</application> package contains several
-    <application>C++</application> libraries with both GUI and non-GUI
-    components.  One of the major users of <application>Qt4</application> is
-    <application>KDE4</application>.</para>
-
+    <para><application>Qt</application> is a cross-platform application 
+    framework that is widely used for developing application software 
+    with a graphical user interface (GUI) (in which cases Qt is classified 
+    as a widget toolkit), and also used for developing non-GUI programs such 
+    as command-line tools and consoles for servers. One of the major users 
+    of <application>Qt4</application> is <application>KDE</application>.</para>
+
+    &lfs71_checked;    
+    
     <bridgehead renderas="sect3">Package Information</bridgehead>
     <itemizedlist spacing="compact">
@@ -57,4 +61,20 @@
     </itemizedlist>
 
+
+    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
+    <itemizedlist spacing="compact">
+      <listitem>
+        <para>GCC 4.7 patch: <ulink
+	url="&patch-root;/qt-everywhere-opensource-src-&qt4-version;-gcc_fix-1.patch"/>
+	</para>
+      </listitem>
+      <listitem>
+        <para>GLib 2.32 patch: <ulink
+	url="&patch-root;/qt-everywhere-opensource-src-&qt4-version;-glib_fix-1.patch"/>
+        </para>
+       </listitem>
+    </itemizedlist>
+
+    
     <bridgehead renderas="sect3">Qt Dependencies</bridgehead>
 
@@ -81,5 +101,5 @@
       <xref linkend="mysql"/>,
       <xref linkend="postgresql"/>,
-      <xref linkend="unixodbc"/>, and
+      <xref linkend="unixodbc"/> and
       <xref linkend="sqlite"/>
     </para>
@@ -115,5 +135,5 @@
     <filename class='directory'>/usr</filename> hierarchy.
     This is the method that most commercial distributions use.</para>
-
+<!--
     <note>
       <para>There is no conflict between the <application>Qt3</application>
@@ -139,5 +159,5 @@
       other Qt bin directory.  </para>
     </note>
-
+-->
     <caution>
       <para>If <application>Qt4</application> is being reinstalled and the
@@ -168,17 +188,19 @@
     class='directory'>/opt/qt-&qt4-version;/</filename>
     and then creates a symbolic link to <filename>/opt/qt/</filename>.</para>
-
-    <para>Install <application>Qt4</application> by running the
+    
+    <para>Configure <application>Qt4</application> by running the
     following commands:</para>
 
-<screen><userinput>./configure -prefix /opt/qt-&qt4-version;  \
-            -release                 \
-            -nomake examples         \
-            -nomake demos            \
-            -system-sqlite           \
-            -no-nis                  \
-            &amp;&amp;
-make</userinput></screen>
-
+<screen><userinput>patch -Np1 -i ../qt-everywhere-opensource-src-&qt4-version;-gcc_fix-1.patch &amp;&amp;
+patch -Np1 -i ../qt-everywhere-opensource-src-&qt4-version;-glib_fix-1.patch &amp;&amp;
+./configure -prefix /opt/qt-&qt4-version;  \
+            -release               \
+            -nomake examples       \
+            -nomake demos          \
+            -system-sqlite         \
+            -no-nis                \
+	    -opensource            \
+	    -confirm-license</userinput></screen>
+    
     <note><title>Phonon</title>
     <para>If <application>KDE4</application> is intended to be installed, add
@@ -187,4 +209,14 @@
     <application>Phonon</application> libraries will be installed which better
     matches the needs of the <application>KDE4</application> desktop.</para></note>
+       
+    <para>If you are compiling with <application>GCC</application> 4.7 you need
+    to suppress some warnings that would otherwise cause the build to fail. This 
+    can be achieved by modifying some Makefiles:</para>
+    
+    <screen><userinput>find src/3rdparty/webkit/Source/{WebCore,WebKit} -name 'Makefile*' -exec sed -i 's@-Werror @@' {} \;</userinput></screen>
+
+    <para>Now, build the package:</para>
+    
+    <screen><userinput>make</userinput></screen>
     
     <para>This package does not come with a test suite.</para>
@@ -205,4 +237,8 @@
     <title>Command Explanations</title>
 
+    <para><command>patch -Np1 -i qt-everywhere-...</command>:
+    The two patches fix compiling with <application>GCC</application>
+    4.7 and <application>GLib</application> 2.32.</para>
+    
     <para><parameter>-nomake examples, -nomake demos</parameter>:
     These switches disable building programs that are only of interest
@@ -245,5 +281,5 @@
 
 <screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF" &amp;&amp;
-<literal># Begin qt addition to /etc/ld.so.conf
+<literal># Begin qt addition
 
 /opt/qt/lib
