From 9182ff9cf2af5a803e476cc79774cbcde9c11e0c Mon Sep 17 00:00:00 2001 From: Christopher Aillon Date: Apr 08 2008 04:32:53 +0000 Subject: - Fix the build against GCC 4.3; simply missing some #includes --- diff --git a/lilypond-gcc43.patch b/lilypond-gcc43.patch new file mode 100644 index 0000000..3b6eaa2 --- /dev/null +++ b/lilypond-gcc43.patch @@ -0,0 +1,106 @@ +diff -up lilypond-2.10.33/flower/file-name.cc.gcc43 lilypond-2.10.33/flower/file-name.cc +--- lilypond-2.10.33/flower/file-name.cc.gcc43 2008-04-08 00:13:27.000000000 -0400 ++++ lilypond-2.10.33/flower/file-name.cc 2008-04-08 00:13:55.000000000 -0400 +@@ -10,8 +10,10 @@ + #include "file-name.hh" + + #include ++#include + #include + #include ++#include + + using namespace std; + +diff -up lilypond-2.10.33/flower/include/rational.hh.gcc43 lilypond-2.10.33/flower/include/rational.hh +--- lilypond-2.10.33/flower/include/rational.hh.gcc43 2008-04-08 00:14:23.000000000 -0400 ++++ lilypond-2.10.33/flower/include/rational.hh 2008-04-08 00:15:09.000000000 -0400 +@@ -9,6 +9,8 @@ + #ifndef RATIONAL_HH + #define RATIONAL_HH + ++#include ++ + #include "std-string.hh" + + #include "std-string.hh" +diff -up lilypond-2.10.33/flower/include/std-vector.hh.gcc43 lilypond-2.10.33/flower/include/std-vector.hh +--- lilypond-2.10.33/flower/include/std-vector.hh.gcc43 2008-04-08 00:11:55.000000000 -0400 ++++ lilypond-2.10.33/flower/include/std-vector.hh 2008-04-08 00:12:58.000000000 -0400 +@@ -22,6 +22,7 @@ + #include /* find, reverse, sort */ + #include /* unary_function */ + #include ++#include + + using namespace std; + +diff -up lilypond-2.10.33/lily/midi-stream.cc.gcc43 lilypond-2.10.33/lily/midi-stream.cc +--- lilypond-2.10.33/lily/midi-stream.cc.gcc43 2008-04-08 00:19:35.000000000 -0400 ++++ lilypond-2.10.33/lily/midi-stream.cc 2008-04-08 00:19:44.000000000 -0400 +@@ -9,6 +9,7 @@ + #include "midi-stream.hh" + + #include ++#include + using namespace std; + + #include "international.hh" +diff -up lilypond-2.10.33/lily/piano-pedal-engraver.cc.gcc43 lilypond-2.10.33/lily/piano-pedal-engraver.cc +--- lilypond-2.10.33/lily/piano-pedal-engraver.cc.gcc43 2008-04-08 00:21:48.000000000 -0400 ++++ lilypond-2.10.33/lily/piano-pedal-engraver.cc 2008-04-08 00:22:09.000000000 -0400 +@@ -10,6 +10,8 @@ + bracketed pedals. + */ + ++#include ++ + #include "engraver.hh" + + #include "axis-group-interface.hh" +diff -up lilypond-2.10.33/lily/prob.cc.gcc43 lilypond-2.10.33/lily/prob.cc +--- lilypond-2.10.33/lily/prob.cc.gcc43 2008-04-08 00:22:39.000000000 -0400 ++++ lilypond-2.10.33/lily/prob.cc 2008-04-08 00:22:50.000000000 -0400 +@@ -6,6 +6,8 @@ + (c) 2004--2007 Jan Nieuwenhuizen + */ + ++#include ++ + #include "prob.hh" + #include "main.hh" + #include "item.hh" +diff -up lilypond-2.10.33/lily/relocate.cc.gcc43 lilypond-2.10.33/lily/relocate.cc +--- lilypond-2.10.33/lily/relocate.cc.gcc43 2008-04-08 00:23:10.000000000 -0400 ++++ lilypond-2.10.33/lily/relocate.cc 2008-04-08 00:23:23.000000000 -0400 +@@ -16,6 +16,7 @@ + + #include + #include ++#include + + #if HAVE_GETTEXT + #include +diff -up lilypond-2.10.33/lily/source-file.cc.gcc43 lilypond-2.10.33/lily/source-file.cc +--- lilypond-2.10.33/lily/source-file.cc.gcc43 2008-04-08 00:24:09.000000000 -0400 ++++ lilypond-2.10.33/lily/source-file.cc 2008-04-08 00:24:48.000000000 -0400 +@@ -18,6 +18,7 @@ + #endif + + #include ++#include + + #if HAVE_SSTREAM + #include +diff -up lilypond-2.10.33/lily/translator.cc.gcc43 lilypond-2.10.33/lily/translator.cc +--- lilypond-2.10.33/lily/translator.cc.gcc43 2008-04-08 00:25:53.000000000 -0400 ++++ lilypond-2.10.33/lily/translator.cc 2008-04-08 00:26:05.000000000 -0400 +@@ -6,6 +6,8 @@ + (c) 1997--2007 Han-Wen Nienhuys + */ + ++#include ++ + #include "translator.hh" + + #include "context-def.hh" diff --git a/lilypond.spec b/lilypond.spec index 8058909..7dac3a8 100644 --- a/lilypond.spec +++ b/lilypond.spec @@ -1,12 +1,13 @@ Name: lilypond Version: 2.10.33 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A typesetting system for music notation Group: Applications/Publishing License: GPLv2 URL: http://www.lilypond.org Source0: http://download.linuxaudio.org/lilypond/sources/v2.10/%{name}-%{version}.tar.gz +Patch1: %{name}-gcc43.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: ghostscript >= 8.15 @@ -29,6 +30,7 @@ files. %prep %setup -q +%patch1 -p1 -b .gcc43 %build @@ -92,6 +94,9 @@ fi %changelog +* Mon Apr 7 2008 Christopher Aillon - 2.10.33-3 +- Fix the build against GCC 4.3; simply missing some #includes + * Tue Feb 19 2008 Fedora Release Engineering - 2.10.33-2 - Autorebuild for GCC 4.3