diff --git a/starlab-4.4.3-gcc44.patch b/starlab-4.4.3-gcc44.patch new file mode 100644 index 0000000..1049fb9 --- /dev/null +++ b/starlab-4.4.3-gcc44.patch @@ -0,0 +1,25 @@ +Fix build with GCC 4.4 + +Lubomir Rintel + +diff -up starlab-4.4.3/src/std/pgetopt.C.gcc44 starlab-4.4.3/src/std/pgetopt.C +--- starlab-4.4.3/src/std/pgetopt.C.gcc44 2009-03-01 14:34:04.000000000 +0100 ++++ starlab-4.4.3/src/std/pgetopt.C 2009-03-01 14:42:08.000000000 +0100 +@@ -108,7 +108,7 @@ local inline char *get_version(const cha + + if (!cvs_id) return NULL; + +- char *start = strstr(cvs_id, "Revision:"); ++ const char *start = strstr(cvs_id, "Revision:"); + if (!start) return NULL; + + start += 9; +@@ -116,7 +116,7 @@ local inline char *get_version(const cha + + if (start - cvs_id > strlen(cvs_id)) return NULL; + +- char *end = start; ++ const char *end = start; + while (*end > ' ') end++; + + if (*end == ' ') { diff --git a/starlab.spec b/starlab.spec index 45c1d29..366b408 100644 --- a/starlab.spec +++ b/starlab.spec @@ -1,6 +1,6 @@ Name: starlab Version: 4.4.3 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A Software Environment for Collisional Stellar Dynamics Group: Applications/Multimedia @@ -12,6 +12,7 @@ Patch1: starlab-4.4.3-libdeps.patch Patch2: starlab-4.4.3-buildcwd.patch Patch3: starlab-4.4.3-autoconf263.patch Patch4: starlab-4.4.3-tstarplot.patch +Patch5: starlab-4.4.3-gcc44.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: zlib-devel @@ -288,6 +289,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sun Mar 1 2009 Lubomir Rintel (Fedora Astronomy) - 4.4.3-5 +- Fix build with GCC 4.4 + * Wed Feb 25 2009 Fedora Release Engineering - 4.4.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild