Author: ken
Date: Thu Apr 30 14:52:28 2015
New Revision: 15906

Log:
fix sessreg for gcc5

Modified:
   trunk/BOOK/introduction/welcome/changelog.xml
   trunk/BOOK/x/installing/x7app.xml

Modified: trunk/BOOK/introduction/welcome/changelog.xml
==============================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml       Thu Apr 30 09:47:53 
2015        (r15905)
+++ trunk/BOOK/introduction/welcome/changelog.xml       Thu Apr 30 14:52:28 
2015        (r15906)
@@ -48,6 +48,11 @@
       <para>April 30th, 2015</para>
       <itemizedlist>
         <listitem>
+          <para>[ken] - add a sed to sessreg (Xorg Applications)
+          to allow it to build with the changed cpp behaviour introduced with
+          gcc-5.</para>
+        </listitem>
+        <listitem>
           <para>[fernando] - Update to apr-1.5.2. Fixes
           <ulink url="&blfs-ticket-root;6445">#6445</ulink>.</para>
         </listitem>

Modified: trunk/BOOK/x/installing/x7app.xml
==============================================================================
--- trunk/BOOK/x/installing/x7app.xml   Thu Apr 30 09:47:53 2015        (r15905)
+++ trunk/BOOK/x/installing/x7app.xml   Thu Apr 30 14:52:28 2015        (r15906)
@@ -147,7 +147,7 @@
     expected applications available in previous X Window
     implementations.</para>
 
-    &lfs77_checked;
+    &lfs77_checked; &gcc5_checked;
 
     <bridgehead renderas="sect3">Package Information</bridgehead>
     <itemizedlist spacing="compact">
@@ -267,10 +267,13 @@
       line2="#  undef _XOPEN_SOURCE"
       line3="#  define _XOPEN_SOURCE 600"
       line4="#endif"
- 
+
       sed -i -e "s@#ifdef 
HAVE_CONFIG_H@$line1\n$line2\n$line3\n$line4\n\n&amp;@" sys.c
       unset line1 line2 line3 line4
     ;;
+    sessreg-* )
+      sed -e 's/\$(CPP) \$(DEFS)/$(CPP) -P $(DEFS)/' -i man/Makefile.in
+    ;;
   esac
   ./configure $XORG_CONFIG
   make
@@ -285,6 +288,19 @@
 
   </sect2>
 
+  <sect2 role="commands">
+    <title>Command Explanations</title>
+
+    <para>
+      <parameter>sed -e 's/\$(CPP) \$(DEFS)/$(CPP) -P $(DEFS)/' -i
+      man/Makefile.in</parameter>: with <application>gcc-5</application> the
+      behaviour of <command>cpp</command> was changed to emit line numbers.
+      That breaks the content of <filename>filenames.sed</filename>. Adding
+      <literal>-P</literal> restores the old behaviour.
+    </para>
+
+  </sect2>
+
   <sect2 role="content">
     <title>Contents</title>
 
-- 
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