[OE-core] [OE-Core][PATCH] gcc-4.7: Fix build with texinfo 5.0+

Khem Raj raj.khem at gmail.com
Thu Feb 28 06:56:42 UTC 2013


[YOCTO #3947]

Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta/recipes-devtools/gcc/gcc-4.7.inc              |    3 +-
 .../gcc-4.7/texinfo-5.0-PR-bootstrap-56258.patch   |   86 ++++++++++++++++++++
 2 files changed, 88 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-devtools/gcc/gcc-4.7/texinfo-5.0-PR-bootstrap-56258.patch

diff --git a/meta/recipes-devtools/gcc/gcc-4.7.inc b/meta/recipes-devtools/gcc/gcc-4.7.inc
index 8735e48..615499e 100644
--- a/meta/recipes-devtools/gcc/gcc-4.7.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.7.inc
@@ -1,6 +1,6 @@
 require gcc-common.inc
 
-PR = "r18"
+PR = "r19"
 
 # Third digit in PV should be incremented after a minor release
 # happens from this branch on gcc e.g. currently its 4.7.1
@@ -75,6 +75,7 @@ SRC_URI = "${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
 	   file://0001-crtstuff.c-USE_PT_GNU_EH_FRAME-Define-for-systems-us.patch \
 	   file://0001-Makefile.in-vis_hide-gen-hide-list-Do-not-make-defin.patch \
 	   file://use-ml-conf-files-from-B.patch \
+	   file://texinfo-5.0-PR-bootstrap-56258.patch \
 	  "
 SRC_URI[md5sum] = "cc308a0891e778cfda7a151ab8a6e762"
 SRC_URI[sha256sum] = "8a9283d7010fb9fe5ece3ca507e0af5c19412626384f8a5e9434251ae100b084"
diff --git a/meta/recipes-devtools/gcc/gcc-4.7/texinfo-5.0-PR-bootstrap-56258.patch b/meta/recipes-devtools/gcc/gcc-4.7/texinfo-5.0-PR-bootstrap-56258.patch
new file mode 100644
index 0000000..f72e689
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-4.7/texinfo-5.0-PR-bootstrap-56258.patch
@@ -0,0 +1,86 @@
+Fix build when using texinfo 5.0+
+
+Upstream version of this patch is posted here
+
+http://patchwork.ozlabs.org/patch/222190/
+
+Upstream-Status: Backport
+
+Signed-off-by: Khem Raj <raj.khem at gmail.com>
+
+Index: gcc-4.7.2/gcc/ada/gnat-style.texi
+===================================================================
+--- gcc-4.7.2.orig/gcc/ada/gnat-style.texi	2011-08-02 00:42:46.000000000 -0700
++++ gcc-4.7.2/gcc/ada/gnat-style.texi	2013-02-27 22:31:04.385167878 -0800
+@@ -42,7 +42,7 @@
+ @titlepage
+ @titlefont{GNAT Coding Style:}
+ @sp 1
+- at title @hfill A Guide for GNAT Developers
++ at title A Guide for GNAT Developers
+ @subtitle GNAT, The GNU Ada Compiler
+ @versionsubtitle
+ @author Ada Core Technologies, Inc.
+Index: gcc-4.7.2/gcc/ada/projects.texi
+===================================================================
+--- gcc-4.7.2.orig/gcc/ada/projects.texi	2012-02-22 06:03:25.000000000 -0800
++++ gcc-4.7.2/gcc/ada/projects.texi	2013-02-27 22:31:04.389167881 -0800
+@@ -48,8 +48,7 @@
+ @item Source file naming conventions; you can specify these either globally or for
+   individual compilation units (@pxref{Naming Schemes}).
+ @item Change any of the above settings depending on external values, thus enabling
+-  the reuse of the projects in various @b{scenarios} (@pxref{Scenarios
+-  in Projects}).
++  the reuse of the projects in various @b{scenarios} (@pxref{Scenarios in Projects}).
+ @item Automatically build libraries as part of the build process
+   (@pxref{Library Projects}).
+ 
+@@ -353,8 +352,8 @@
+ 
+ @item For various reasons, it is sometimes useful to have a project with no
+   sources (most of the time because the attributes defined in the project
+-  file will be reused in other projects, as explained in @pxref{Organizing
+-  Projects into Subsystems}. To do this, the attribute
++  file will be reused in other projects, as explained in
++  @pxref{Organizing Projects into Subsystems}. To do this, the attribute
+   @emph{Source_Files} is set to the empty list, i.e. @code{()}. Alternatively,
+   @emph{Source_Dirs} can be set to the empty list, with the same
+   result.
+@@ -381,8 +380,9 @@
+   This can be done thanks to the attribute @b{Excluded_Source_Files}
+   (or its synonym @b{Locally_Removed_Files}).
+   Its value is the list of file names that should not be taken into account.
+-  This attribute is often used when extending a project, @xref{Project
+-  Extension}. A similar attribute @b{Excluded_Source_List_File} plays the same
++  This attribute is often used when extending a project,
++  @xref{Project Extension}. A similar attribute
++  @b{Excluded_Source_List_File} plays the same
+   role but takes the name of file containing file names similarly to
+   @code{Source_List_File}.
+ 
+Index: gcc-4.7.2/gcc/doc/invoke.texi
+===================================================================
+--- gcc-4.7.2.orig/gcc/doc/invoke.texi	2013-02-27 22:27:14.757163582 -0800
++++ gcc-4.7.2/gcc/doc/invoke.texi	2013-02-27 22:51:34.649190971 -0800
+@@ -5442,7 +5442,7 @@
+ @opindex fdump-rtl-postreload
+ Dump after post-reload optimizations.
+ 
+- at itemx -fdump-rtl-pro_and_epilogue
++ at item -fdump-rtl-pro_and_epilogue
+ @opindex fdump-rtl-pro_and_epilogue
+ Dump after generating the function prologues and epilogues.
+ 
+Index: gcc-4.7.2/libjava/classpath/doc/cp-tools.texinfo
+===================================================================
+--- gcc-4.7.2.orig/libjava/classpath/doc/cp-tools.texinfo	2012-08-06 07:34:27.000000000 -0700
++++ gcc-4.7.2/libjava/classpath/doc/cp-tools.texinfo	2013-02-27 22:31:04.389167881 -0800
+@@ -2022,7 +2022,7 @@
+ 
+ @item Virtual Machine Options
+ @xref{Virtual Machine Options,,Options Controlling Gjdoc Behavior}.
+- at gccoptlist{-classpath}  @gccoptlist{-bootclasspath}  @gccoptlist{-J}@var{vmopt}
++ at gccoptlist{-classpath  -bootclasspath  -J @var{vmopt}}
+ 
+ @end table
+ 
-- 
1.7.9.5





More information about the Openembedded-core mailing list