diff --git a/stellarium-0.8.2-x64.patch b/stellarium-0.8.2-x64.patch new file mode 100644 index 0000000..b5a94dc --- /dev/null +++ b/stellarium-0.8.2-x64.patch @@ -0,0 +1,14 @@ +--- stellarium-0.8.2/src/translator.cpp.org 2006-10-15 21:14:08.000000000 +0200 ++++ stellarium-0.8.2/src/translator.cpp 2006-10-15 21:15:42.000000000 +0200 +@@ -73,9 +73,9 @@ + //change systemLangName to ISO 639 / ISO 3166. + unsigned int pos = Translator::systemLangName.find(':', 0); + if(pos != Translator::systemLangName.npos) +- Translator::systemLangName.resize(pos); ++ Translator::systemLangName.resize(pos+1); + pos = Translator::systemLangName.find('.', 0); +- if(pos == 5) Translator::systemLangName.resize(pos); ++ if(pos == 5) Translator::systemLangName.resize(pos+1); + } + + void Translator::reload() diff --git a/stellarium.spec b/stellarium.spec index b0804a0..c69ab67 100644 --- a/stellarium.spec +++ b/stellarium.spec @@ -1,6 +1,6 @@ Name: stellarium Version: 0.8.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Photo-realistic nightsky renderer Group: Amusements/Graphics @@ -9,6 +9,7 @@ URL: http://stellarium.free.fr/ Source0: http://switch.dl.sf.net/stellarium/stellarium-%{version}.tar.gz Source1: stellarium.desktop Source2: http://switch.dl.sf.net/stellarum/stellarium_user_guide-0.8.1-1.pdf +Patch1: stellarium-0.8.2-x64.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: SDL-devel @@ -39,6 +40,7 @@ You will need a PDF viewer to read the user guide. %prep %setup -q +%patch1 -p1 %build %configure @@ -83,6 +85,9 @@ rm -rf $RPM_BUILD_ROOT %doc COPYING stellarium_user_guide-0.8.1-1.pdf %changelog +* Thu Oct 19 2006 Jochen Schmitt 0.8.2-2 +- Fix segfault on x64 systems (#210525) + * Tue Oct 10 2006 Jochen Schmitt 0.8.2-1 - New upstream release