Gentoo Archives: gentoo-commits

From: "Andreas HAttel (dilfridge)" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/cmake/files: cmake-2.8.6-CodeBlocks.patch
Date: Sun, 30 Oct 2011 23:09:40
Message-Id: 20111030230930.B099D2004C@flycatcher.gentoo.org
1 dilfridge 11/10/30 23:09:30
2
3 Added: cmake-2.8.6-CodeBlocks.patch
4 Log:
5 Add upstream fix for QtCreator and CodeBlocks support, bug 388695
6
7 (Portage version: 2.1.10.31/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 dev-util/cmake/files/cmake-2.8.6-CodeBlocks.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cmake/files/cmake-2.8.6-CodeBlocks.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/cmake/files/cmake-2.8.6-CodeBlocks.patch?rev=1.1&content-type=text/plain
14
15 Index: cmake-2.8.6-CodeBlocks.patch
16 ===================================================================
17 From 240d39a6a4f72fe0e45fc1a1403e0b578d36a142 Mon Sep 17 00:00:00 2001
18 From: Clinton Stimpson <clinton@××××××××.com>
19 Date: Wed, 5 Oct 2011 10:02:32 -0600
20 Subject: [PATCH] Fix XML safety issue with adding preprocessor defines in CodeBlocks project.
21
22 ---
23 Source/cmExtraCodeBlocksGenerator.cxx | 4 +++-
24 1 files changed, 3 insertions(+), 1 deletions(-)
25
26 diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx
27 index 7db91c7..9a0b1ea 100644
28 --- a/Source/cmExtraCodeBlocksGenerator.cxx
29 +++ b/Source/cmExtraCodeBlocksGenerator.cxx
30 @@ -19,6 +19,7 @@
31 #include "cmGeneratedFileStream.h"
32 #include "cmTarget.h"
33 #include "cmSystemTools.h"
34 +#include "cmXMLSafe.h"
35
36 #include <cmsys/SystemTools.hxx>
37
38 @@ -585,7 +586,8 @@ void cmExtraCodeBlocksGenerator::AppendTarget(cmGeneratedFileStream& fout,
39 for(std::vector<std::string>::const_iterator di = defs.begin();
40 di != defs.end(); ++di)
41 {
42 - fout <<" <Add option=\"-D" << di->c_str() << "\" />\n";
43 + cmXMLSafe safedef(di->c_str());
44 + fout <<" <Add option=\"-D" << safedef.str() << "\" />\n";
45 }
46 }
47
48 --
49 1.7.0