rpms/cmake/devel cmake-2.6.1-parens.patch, NONE, 1.1 cmake.spec, 1.38, 1.39

Rex Dieter rdieter at fedoraproject.org
Tue Aug 26 20:05:45 UTC 2008


Author: rdieter

Update of /cvs/pkgs/rpms/cmake/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3595

Modified Files:
	cmake.spec 
Added Files:
	cmake-2.6.1-parens.patch 
Log Message:
* Tue Aug 26 2008 Rex Dieter <rdieter at fedoraproject.org> - 2.6.1-2
- attempt to patch logic error, crasher


cmake-2.6.1-parens.patch:

--- NEW FILE cmake-2.6.1-parens.patch ---
diff -up cmake-2.6.1/Source/cmELF.cxx.parens cmake-2.6.1/Source/cmELF.cxx
--- cmake-2.6.1/Source/cmELF.cxx.parens	2008-08-01 10:34:52.000000000 -0500
+++ cmake-2.6.1/Source/cmELF.cxx	2008-08-26 14:58:23.000000000 -0500
@@ -884,8 +884,8 @@ cmELF::StringEntry const* cmELF::GetSONa
 cmELF::StringEntry const* cmELF::GetRPath()
 {
   if(this->Valid() &&
-     this->Internal->GetFileType() == cmELF::FileTypeExecutable ||
-     this->Internal->GetFileType() == cmELF::FileTypeSharedLibrary)
+     (this->Internal->GetFileType() == cmELF::FileTypeExecutable ||
+     this->Internal->GetFileType() == cmELF::FileTypeSharedLibrary) )
     {
     return this->Internal->GetRPath();
     }
@@ -899,8 +899,8 @@ cmELF::StringEntry const* cmELF::GetRPat
 cmELF::StringEntry const* cmELF::GetRunPath()
 {
   if(this->Valid() &&
-     this->Internal->GetFileType() == cmELF::FileTypeExecutable ||
-     this->Internal->GetFileType() == cmELF::FileTypeSharedLibrary)
+     (this->Internal->GetFileType() == cmELF::FileTypeExecutable ||
+     this->Internal->GetFileType() == cmELF::FileTypeSharedLibrary) )
     {
     return this->Internal->GetRunPath();
     }


Index: cmake.spec
===================================================================
RCS file: /cvs/pkgs/rpms/cmake/devel/cmake.spec,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- cmake.spec	5 Aug 2008 19:43:33 -0000	1.38
+++ cmake.spec	26 Aug 2008 20:05:15 -0000	1.39
@@ -4,7 +4,7 @@
 
 Name:           cmake
 Version:        2.6.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Cross-platform make system
 
 Group:          Development/Tools
@@ -16,6 +16,11 @@
 #Submitted upstream: http://public.kitware.com/Bug/view.php?id=7333
 Patch0:         cmake-2.6.0-jni.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+# fix a crasher, see 
+# http://www.redhat.com/archives/fedora-devel-list/2008-August/msg01145.html
+Patch1:         cmake-2.6.1-parens.patch   
+
 BuildRequires:  ncurses-devel, libX11-devel
 BuildRequires:  qt4-devel, desktop-file-utils
 BuildRequires:  curl-devel, expat-devel, zlib-devel
@@ -43,7 +48,10 @@
 
 %prep
 %setup -q -n %{name}-%{version}
-%patch -p1 -b .jni
+
+%patch0 -p1 -b .jni
+%patch1 -p1 -b .parens
+
 # Fixup permissions
 find -name \*.h -o -name \*.cxx -print0 | xargs -0 chmod -x
 
@@ -114,6 +122,9 @@
 
 
 %changelog
+* Tue Aug 26 2008 Rex Dieter <rdieter at fedoraproject.org> - 2.6.1-2
+- attempt to patch logic error, crasher
+
 * Tue Aug 5 2008 Orion Poplawski <orion at cora.nwra.com> - 2.6.1-1
 - Update to 2.6.1
 




More information about the fedora-extras-commits mailing list