Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-forensics/ovaldi/files/
Date: Wed, 02 Aug 2017 21:17:54
Message-Id: 1501708668.d357a6d09d5ed562c08a5cc7582beb3eed828d4d.monsieurp@gentoo
1 commit: d357a6d09d5ed562c08a5cc7582beb3eed828d4d
2 Author: Labbe Corentin <clabbe.montjoie <AT> gmail <DOT> com>
3 AuthorDate: Wed Aug 2 19:03:37 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 2 21:17:48 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d357a6d0
7
8 app-forensics/ovaldi: remove unused patches.
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.1
11 Closes: https://github.com/gentoo/gentoo/pull/5280
12
13 .../files/ovaldi-5.10.1.2-add-selinux-libs.patch | 11 -
14 .../ovaldi-5.10.1.2-disable-ldap-probes.patch | 11 -
15 .../ovaldi-5.10.1.2-disable-selinux-probes.patch | 94 -------
16 .../ovaldi-5.10.1.2-missing-memory-header.patch | 20 --
17 .../ovaldi/files/ovaldi-5.10.1.2-strnicmp.patch | 11 -
18 .../ovaldi/files/ovaldi-5.10.1.2-xerces3.patch | 306 ---------------------
19 .../files/ovaldi-5.9.1-disable-ldap-probes.patch | 32 ---
20 .../ovaldi/files/ovaldi-5.9.1-strnicmp.patch | 11 -
21 .../ovaldi/files/ovaldi-5.9.1-xerces3.patch | 270 ------------------
22 9 files changed, 766 deletions(-)
23
24 diff --git a/app-forensics/ovaldi/files/ovaldi-5.10.1.2-add-selinux-libs.patch b/app-forensics/ovaldi/files/ovaldi-5.10.1.2-add-selinux-libs.patch
25 deleted file mode 100644
26 index d390be2ed6c..00000000000
27 --- a/app-forensics/ovaldi/files/ovaldi-5.10.1.2-add-selinux-libs.patch
28 +++ /dev/null
29 @@ -1,11 +0,0 @@
30 ---- project/linux/Makefile.orig 2012-01-02 12:08:20.400871287 +0100
31 -+++ project/linux/Makefile 2012-01-02 12:08:48.966488826 +0100
32 -@@ -50,7 +50,7 @@
33 - LIBDIR = -L/usr/local/lib -L/usr/lib
34 -
35 - # What libraries do we need?
36 --LIBS = -lxerces-c -lxalan-c -lpcre -lpopt -lgcrypt -lblkid
37 -+LIBS = -lxerces-c -lxalan-c -lpcre -lpopt -lgcrypt -lblkid -lsepol -lselinux
38 -
39 - # Determine what package management system is being used
40 - #PACKAGE_RPM = $(shell /usr/bin/env rpm --version 2>/dev/null)
41
42 diff --git a/app-forensics/ovaldi/files/ovaldi-5.10.1.2-disable-ldap-probes.patch b/app-forensics/ovaldi/files/ovaldi-5.10.1.2-disable-ldap-probes.patch
43 deleted file mode 100644
44 index 1a15ca25d62..00000000000
45 --- a/app-forensics/ovaldi/files/ovaldi-5.10.1.2-disable-ldap-probes.patch
46 +++ /dev/null
47 @@ -1,11 +0,0 @@
48 ---- src/linux/ProbeFactory.cpp 2010-12-10 13:37:00.019140703 +0100
49 -+++ src/linux/ProbeFactory.cpp 2010-08-27 21:23:41.000000000 +0200
50 -@@ -61,8 +61,6 @@
51 - probe = XmlFileContentProbe::Instance();
52 - } else if(objectName.compare("textfilecontent54_object") == 0) {
53 - probe = TextFileContent54Probe::Instance();
54 -- } else if(objectName.compare("ldap_object") == 0) {
55 -- probe = LDAPProbe::Instance();
56 -
57 - // here are the objects defined in the unix schema
58 - } else if(objectName.compare("file_object") == 0) {
59
60 diff --git a/app-forensics/ovaldi/files/ovaldi-5.10.1.2-disable-selinux-probes.patch b/app-forensics/ovaldi/files/ovaldi-5.10.1.2-disable-selinux-probes.patch
61 deleted file mode 100644
62 index f93304deb1b..00000000000
63 --- a/app-forensics/ovaldi/files/ovaldi-5.10.1.2-disable-selinux-probes.patch
64 +++ /dev/null
65 @@ -1,94 +0,0 @@
66 ---- ./src/linux/ProbeFactory.cpp.old 2011-08-18 14:45:11.314556346 +0200
67 -+++ ./src/linux/ProbeFactory.cpp 2011-08-18 14:45:23.151011753 +0200
68 -@@ -101,10 +101,6 @@
69 - #endif
70 - } else if (objectName.compare("partition_object") == 0) {
71 - probe = PartitionProbe::Instance();
72 -- } else if (objectName.compare("selinuxsecuritycontext_object") == 0) {
73 -- probe = SelinuxSecurityContextProbe::Instance();
74 -- } else if (objectName.compare("selinuxboolean_object") == 0) {
75 -- probe = SelinuxBooleanProbe::Instance();
76 - } else if (objectName.compare("iflisteners_object") == 0) {
77 - probe = IfListenersProbe::Instance();
78 - } else {
79 ---- src/linux/ProbeFactory.h.old 2011-08-18 14:47:23.226501075 +0200
80 -+++ src/linux/ProbeFactory.h 2011-08-18 14:47:34.183998019 +0200
81 -@@ -71,8 +71,6 @@
82 - #include "InetdProbe.h"
83 -
84 - #include "PartitionProbe.h"
85 --#include "SelinuxSecurityContextProbe.h"
86 --#include "SelinuxBooleanProbe.h"
87 - #include "IfListenersProbe.h"
88 -
89 - class AbsProbe;
90 ---- src/probes/unix/Process58Probe.cpp.old 2012-05-22 10:09:52.980828398 +0200
91 -+++ src/probes/unix/Process58Probe.cpp 2012-05-22 10:11:06.266468168 +0200
92 -@@ -29,10 +29,10 @@
93 - //****************************************************************************************//
94 -
95 - #ifdef LINUX
96 --# include <selinux/selinux.h>
97 --# include <selinux/context.h>
98 -+/*# include <selinux/selinux.h>
99 -+# include <selinux/context.h>*/
100 - # include <sys/capability.h>
101 --# include <SecurityContextGuard.h>
102 -+/*# include <SecurityContextGuard.h>*/
103 - #endif
104 -
105 - #include <fstream>
106 -@@ -328,7 +328,7 @@
107 - pid_t sessionId;
108 - uid_t loginuid;
109 - uint64_t effCap, *effCapp=&effCap;
110 -- string selinuxDomainLabel;
111 -+/* string selinuxDomainLabel;*/
112 -
113 - Process58Probe::ProcStatus statStatus, statusStatus, ttyStatus, loginuidStatus;
114 -
115 -@@ -423,10 +423,10 @@
116 - }
117 -
118 - // this one doesn't require reading anything in /proc
119 -- if (!RetrieveSelinuxDomainLabel(pid, &selinuxDomainLabel, &errMsg)) {
120 -+/* if (!RetrieveSelinuxDomainLabel(pid, &selinuxDomainLabel, &errMsg)) {
121 - item->AppendMessage(new OvalMessage(errMsg, OvalEnum::LEVEL_ERROR));
122 - item->SetStatus(OvalEnum::STATUS_ERROR);
123 -- }
124 -+ }*/
125 -
126 - // The Linux start time is represented as the number of jiffies (1/100 sec)
127 - // that the application was started after the last system reboot. To get an
128 -@@ -491,10 +491,10 @@
129 - // aren't any.
130 - item->AppendElement(new ItemEntity("posix_capability", "", OvalEnum::DATATYPE_STRING, false, OvalEnum::STATUS_ERROR));
131 -
132 -- if (selinuxDomainLabel.empty())
133 -+/* if (selinuxDomainLabel.empty())*/
134 - item->AppendElement(new ItemEntity("selinux_domain_label", "", OvalEnum::DATATYPE_STRING, false, OvalEnum::STATUS_ERROR));
135 -- else
136 -- item->AppendElement(new ItemEntity("selinux_domain_label", selinuxDomainLabel));
137 -+/* else
138 -+ item->AppendElement(new ItemEntity("selinux_domain_label", selinuxDomainLabel));*/
139 -
140 - if (statStatus == PROC_OK)
141 - item->AppendElement(new ItemEntity("session_id", Common::ToString(sessionId), OvalEnum::DATATYPE_INTEGER));
142 -@@ -709,7 +709,7 @@
143 - capMap[capEnum]));
144 - }
145 - }
146 --
147 -+/*
148 - bool Process58Probe::RetrieveSelinuxDomainLabel(pid_t pid, string *label, string *err) {
149 - security_context_t sctx;
150 - int ec = getpidcon(pid, &sctx);
151 -@@ -732,7 +732,7 @@
152 - *label = tmp;
153 - return true;
154 - }
155 --
156 -+*/
157 - #elif defined SUNOS
158 -
159 - void Process58Probe::GetPSInfo(string command, string pidStr, ItemVector* items) {
160
161 diff --git a/app-forensics/ovaldi/files/ovaldi-5.10.1.2-missing-memory-header.patch b/app-forensics/ovaldi/files/ovaldi-5.10.1.2-missing-memory-header.patch
162 deleted file mode 100644
163 index 3f5fcdba245..00000000000
164 --- a/app-forensics/ovaldi/files/ovaldi-5.10.1.2-missing-memory-header.patch
165 +++ /dev/null
166 @@ -1,20 +0,0 @@
167 ---- src/CountFunction.cpp.old 2012-01-02 11:37:27.113604532 +0100
168 -+++ src/CountFunction.cpp 2012-01-02 11:37:39.624998573 +0100
169 -@@ -29,6 +29,7 @@
170 - //****************************************************************************************//
171 -
172 - #include <cstddef>
173 -+#include <memory>
174 - #include "CountFunction.h"
175 - #include "ComponentFactory.h"
176 -
177 ---- src/UniqueFunction.cpp.orig 2012-01-02 11:39:58.564269070 +0100
178 -+++ src/UniqueFunction.cpp 2012-01-02 11:40:12.057615550 +0100
179 -@@ -29,6 +29,7 @@
180 - //****************************************************************************************//
181 -
182 - #include <set>
183 -+#include <memory>
184 - #include "Common.h"
185 - #include "ComponentFactory.h"
186 - #include "UniqueFunction.h"
187
188 diff --git a/app-forensics/ovaldi/files/ovaldi-5.10.1.2-strnicmp.patch b/app-forensics/ovaldi/files/ovaldi-5.10.1.2-strnicmp.patch
189 deleted file mode 100644
190 index fc127efd3cd..00000000000
191 --- a/app-forensics/ovaldi/files/ovaldi-5.10.1.2-strnicmp.patch
192 +++ /dev/null
193 @@ -1,11 +0,0 @@
194 ---- src/Main.h.old 2010-10-22 14:59:13.000000000 +0200
195 -+++ src/Main.h 2010-10-22 14:59:38.000000000 +0200
196 -@@ -38,7 +38,7 @@
197 - #endif
198 -
199 - #ifdef LINUX
200 --# define STRNICMP strnicmp
201 -+# define STRNICMP strncasecmp
202 - #elif defined SUNOS
203 - # define STRNICMP strncasecmp
204 - #elif defined DARWIN
205
206 diff --git a/app-forensics/ovaldi/files/ovaldi-5.10.1.2-xerces3.patch b/app-forensics/ovaldi/files/ovaldi-5.10.1.2-xerces3.patch
207 deleted file mode 100644
208 index b127ee44ed4..00000000000
209 --- a/app-forensics/ovaldi/files/ovaldi-5.10.1.2-xerces3.patch
210 +++ /dev/null
211 @@ -1,306 +0,0 @@
212 ---- src/XmlProcessor.cpp.old 2011-08-18 14:51:20.311616357 +0200
213 -+++ src/XmlProcessor.cpp 2011-08-18 14:51:47.214381144 +0200
214 -@@ -35,7 +35,6 @@
215 - // for dom Writer
216 - #include <xercesc/dom/DOMImplementation.hpp>
217 - #include <xercesc/dom/DOMImplementationLS.hpp>
218 --#include <xercesc/dom/DOMWriter.hpp>
219 - #include <xercesc/framework/StdOutFormatTarget.hpp>
220 - #include <xercesc/framework/LocalFileFormatTarget.hpp>
221 - #include <xercesc/util/XMLUni.hpp>
222 -@@ -53,8 +52,17 @@
223 - //****************************************************************************************//
224 - // DataDirResolver Class //
225 - //****************************************************************************************//
226 --
227 -+#if XERCES_VERSION_MAJOR < 3
228 - DOMInputSource* DataDirResolver::resolveEntity (const XMLCh *const /*publicId*/, const XMLCh *const systemId, const XMLCh *const /*baseURI*/) {
229 -+#else
230 -+InputSource* DataDirResolver::resolveEntity(const XMLCh* publicId, const XMLCh* systemId)
231 -+{
232 -+ return NULL;
233 -+ //return DataDirResolver::resolveEntity (publicId, systemId, NULL);
234 -+}
235 -+
236 -+DOMLSInput* DataDirResolver::resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId, const XMLCh *const baseURI) {
237 -+#endif
238 - string path = "";
239 - size_t last;
240 - string schemapath = Common::GetSchemaPath();
241 -@@ -104,13 +112,19 @@
242 -
243 - try {
244 - XMLPlatformUtils::Initialize();
245 -+#if XERCES_VERSION_MAJOR < 3
246 -+#define SetParameter(parser,n,v) parser->setFeature(n,v)
247 -+#else
248 -+#define SetParameter(parser,n,v) parser->getDomConfig()->setParameter(n,v)
249 -+#endif
250 -
251 - parser = makeParser();
252 - parserWithCallerAdoption = makeParser();
253 - // add one extra feature on this parser to prevent it from
254 - // taking ownership of its documents.
255 -- parserWithCallerAdoption->setFeature(XMLUni::fgXercesUserAdoptsDOMDocument, true);
256 -+ SetParameter(parserWithCallerAdoption, XMLUni::fgXercesUserAdoptsDOMDocument, true);
257 -
258 -+#undef SetParameter
259 - } catch (const XMLException& toCatch) {
260 - string errMsg = "Error: An error occured durring initialization of the xml utilities:\n";
261 - errMsg.append(XmlCommon::ToString(toCatch.getMessage()));
262 -@@ -137,32 +151,55 @@
263 -
264 - }
265 -
266 -+#if XERCES_VERSION_MAJOR < 3
267 - DOMBuilder *XmlProcessor::makeParser() {
268 -+#else
269 -+DOMLSParser *XmlProcessor::makeParser() {
270 -+#endif
271 - // Instantiate the DOM parser.
272 - static const XMLCh gLS[] = { chLatin_L, chLatin_S, chNull };
273 - DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(gLS);
274 -
275 -+#if XERCES_VERSION_MAJOR < 3
276 - DOMBuilder *parser = ((DOMImplementationLS*)impl)->createDOMBuilder(DOMImplementationLS::MODE_SYNCHRONOUS, 0);
277 -+#else
278 -+ DOMLSParser *parser = ((DOMImplementationLS*)impl)->createLSParser(DOMImplementationLS::MODE_SYNCHRONOUS, 0);
279 -+#endif
280 -
281 - ///////////////////////////////////////////////////////
282 - // Set features on the builder
283 - ///////////////////////////////////////////////////////
284 -
285 -- parser->setFeature(XMLUni::fgDOMComments, false); // Discard Comment nodes in the document.
286 -- parser->setFeature(XMLUni::fgDOMDatatypeNormalization, true); // Let the validation process do its datatype normalization that is defined in the used schema language.
287 -- parser->setFeature(XMLUni::fgDOMNamespaces, true); // Perform Namespace processing
288 -- parser->setFeature(XMLUni::fgDOMValidation, true); // Report all validation errors.
289 -- parser->setFeature(XMLUni::fgXercesSchema, true); // Enable the parser's schema support.
290 -- parser->setFeature(XMLUni::fgXercesSchemaFullChecking, true); // Enable full schema constraint checking, including checking which may be time-consuming or memory intensive. Currently, particle unique attribution constraint checking and particle derivation restriction checking are controlled by this option.
291 -- parser->setFeature(XMLUni::fgXercesValidationErrorAsFatal, true); // The parser will treat validation error as fatal and will exit
292 -- parser->setFeature(XMLUni::fgXercesDOMHasPSVIInfo, true); // Enable storing of PSVI information in element and attribute nodes.
293 -+#if XERCES_VERSION_MAJOR < 3
294 -+#define SetParameter(parser,n,v) parser->setFeature(n,v)
295 -+#else
296 -+#define SetParameter(parser,n,v) parser->getDomConfig()->setParameter(n,v)
297 -+#endif
298 -+
299 -+ SetParameter(parser, XMLUni::fgDOMComments, false); // Discard Comment nodes in the document.
300 -+ SetParameter(parser, XMLUni::fgDOMDatatypeNormalization, true); // Let the validation process do its datatype normalization that is defined in the used schema language.
301 -+ SetParameter(parser, XMLUni::fgDOMNamespaces, true); // Perform Namespace processing
302 -+#if XERCES_VERSION_MAJOR < 3
303 -+ SetParameter(parser, XMLUni::fgDOMValidation, true); // Report all validation errors.
304 -+#else
305 -+ SetParameter(parser, XMLUni::fgDOMValidate, true); // Report all validation errors.
306 -+#endif
307 -+ SetParameter(parser, XMLUni::fgXercesSchema, true); // Enable the parser's schema support.
308 -+ SetParameter(parser, XMLUni::fgXercesSchemaFullChecking, true); // Enable full schema constraint checking, including checking which may be time-consuming or memory intensive. Currently, particle unique attribution constraint checking and particle derivation restriction checking are controlled by this option.
309 -+ SetParameter(parser, XMLUni::fgXercesValidationErrorAsFatal, true); // The parser will treat validation error as fatal and will exit
310 -+ SetParameter(parser, XMLUni::fgXercesDOMHasPSVIInfo, true); // Enable storing of PSVI information in element and attribute nodes.
311 -+#undef SetParameter
312 -
313 - ///////////////////////////////////////////////////////
314 - //****************************************************************************************//
315 - // The following code was added to handle air-gap operation //
316 - //****************************************************************************************//
317 - /* Look for XML schemas in local directory instead of Internet */
318 -+#if XERCES_VERSION_MAJOR < 3
319 - parser->setEntityResolver (&resolver);
320 -+#else
321 -+ parser->getDomConfig()->setParameter(XMLUni::fgXercesEntityResolver, &resolver);
322 -+#endif
323 - //****************************************************************************************//
324 - // End of air-gap code //
325 - //****************************************************************************************//
326 -@@ -170,7 +207,11 @@
327 - ///////////////////////////////////////////////////////
328 - // Add an Error Handler
329 - ///////////////////////////////////////////////////////
330 -+#if XERCES_VERSION_MAJOR < 3
331 - parser->setErrorHandler(&errHandler);
332 -+#else
333 -+ parser->getDomConfig()->setParameter(XMLUni::fgDOMErrorHandler, &errHandler);
334 -+#endif
335 -
336 - return parser;
337 - }
338 -@@ -250,24 +291,26 @@
339 - XMLCh tempStr[100];
340 - XMLString::transcode("LS", tempStr, 99);
341 - DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(tempStr);
342 -+#if XERCES_VERSION_MAJOR < 3
343 - DOMWriter *theSerializer = ((DOMImplementationLS*)impl)->createDOMWriter();
344 -+#else
345 -+ DOMLSSerializer *theSerializer = ((DOMImplementationLS*)impl)->createLSSerializer();
346 -+#endif
347 -+
348 -+#if XERCES_VERSION_MAJOR < 3
349 -+#define SetParameter(serializer,n,v) if (serializer->canSetFeature(n,v)) serializer->setFeature(n,v)
350 -+#else
351 -+#define SetParameter(serializer,n,v) if (serializer->getDomConfig()->canSetParameter(n,v)) serializer->getDomConfig()->setParameter(n,v)
352 -+#endif
353 -
354 - // set feature if the serializer supports the feature/mode
355 -- if (theSerializer->canSetFeature(XMLUni::fgDOMWRTSplitCdataSections, true))
356 -- theSerializer->setFeature(XMLUni::fgDOMWRTSplitCdataSections, true);
357 --
358 -- if (theSerializer->canSetFeature(XMLUni::fgDOMWRTDiscardDefaultContent, true))
359 -- theSerializer->setFeature(XMLUni::fgDOMWRTDiscardDefaultContent, true);
360 --
361 -- if (theSerializer->canSetFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true))
362 -- theSerializer->setFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true);
363 --
364 -- if (theSerializer->canSetFeature(XMLUni::fgDOMWRTBOM, false))
365 -- theSerializer->setFeature(XMLUni::fgDOMWRTBOM, false);
366 --
367 -- //if (theSerializer->canSetFeature(XMLUni::fgDOMWRTDiscardDefaultContent, true))
368 -- // theSerializer->setFeature(XMLUni::fgDOMWRTBOM, true);
369 -+ SetParameter(theSerializer, XMLUni::fgDOMWRTSplitCdataSections, true);
370 -+ SetParameter(theSerializer, XMLUni::fgDOMWRTDiscardDefaultContent, true);
371 -+ SetParameter(theSerializer, XMLUni::fgDOMWRTFormatPrettyPrint, true);
372 -+ SetParameter(theSerializer, XMLUni::fgDOMWRTBOM, false);
373 -+ //SetParameter(theSerializer, XMLUni::fgDOMWRTBOM, true);
374 -
375 -+#undef SetParameter
376 - //
377 - // Plug in a format target to receive the resultant
378 - // XML stream from the serializer.
379 -@@ -284,7 +327,13 @@
380 - //
381 - // do the serialization through DOMWriter::writeNode();
382 - //
383 -+#if XERCES_VERSION_MAJOR < 3
384 - theSerializer->writeNode(myFormTarget, *doc);
385 -+#else
386 -+ DOMLSOutput *output = ((DOMImplementationLS*)impl)->createLSOutput();
387 -+ output->setByteStream(myFormTarget);
388 -+ theSerializer->write(doc, output);
389 -+#endif
390 -
391 - theSerializer->release();
392 - delete myFormTarget;
393 ---- src/XmlProcessor.h.old 2011-08-18 14:35:41.608703233 +0200
394 -+++ src/XmlProcessor.h 2011-08-18 14:39:21.835597094 +0200
395 -@@ -38,14 +38,17 @@
396 - #include <string>
397 -
398 - // required xerces includes
399 --#include <xercesc/dom/DOMBuilder.hpp>
400 - #include <xercesc/dom/DOMDocument.hpp>
401 - #include <xercesc/dom/DOMErrorHandler.hpp>
402 - #include <xercesc/dom/DOMError.hpp>
403 -
404 - // for entity resolver
405 --#include <xercesc/dom/DOMEntityResolver.hpp>
406 --#include <xercesc/dom/DOMInputSource.hpp>
407 -+
408 -+#include <xercesc/dom/DOMImplementationRegistry.hpp>
409 -+#include <xercesc/dom/DOMLSParser.hpp>
410 -+#include <xercesc/sax/EntityResolver.hpp>
411 -+#include <xercesc/sax/InputSource.hpp>
412 -+#include <xercesc/sax2/SAX2XMLReader.hpp>
413 -
414 - #include "Exception.h"
415 -
416 -@@ -53,12 +56,14 @@
417 - This class extends the default DOMEntityResolver and implments the resolve entity method
418 - to support
419 - */
420 --class DataDirResolver : public xercesc::DOMEntityResolver {
421 -+class DataDirResolver : public xercesc::EntityResolver {
422 - public:
423 - /**
424 - *
425 - */
426 -- xercesc::DOMInputSource *resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId, const XMLCh *const baseURI);
427 -+// xercesc::DOMInputSource *resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId, const XMLCh *const baseURI);
428 -+ xercesc::InputSource *resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId);
429 -+ xercesc::DOMLSInput *resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId, const XMLCh *const baseURI);
430 - };
431 -
432 - /**
433 -@@ -135,7 +140,7 @@
434 - /**
435 - * Has the common code for creating an XML parser.
436 - */
437 -- xercesc::DOMBuilder *makeParser();
438 -+ xercesc::DOMLSParser *makeParser();
439 -
440 - static XmlProcessor* instance;
441 -
442 -@@ -144,7 +149,7 @@
443 - * owns the documents it builds. Users must manually destroy
444 - * those documents.
445 - */
446 -- xercesc::DOMBuilder *parserWithCallerAdoption;
447 -+ xercesc::DOMLSParser *parserWithCallerAdoption;
448 -
449 - /**
450 - * This parser doesn't have user-adoption switched on, so it
451 -@@ -156,7 +161,7 @@
452 - * appear to ever be switched off. So to make sure this isn't
453 - * leaking memory, I have created separate parsers.
454 - */
455 -- xercesc::DOMBuilder *parser;
456 -+ xercesc::DOMLSParser *parser;
457 -
458 - /** The entity resolver for both parsers. */
459 - DataDirResolver resolver;
460 ---- src/probes/independent/XmlFileContentProbe.cpp.old 2010-10-22 14:49:22.000000000 +0200
461 -+++ src/probes/independent/XmlFileContentProbe.cpp 2010-10-22 14:51:39.000000000 +0200
462 -@@ -419,12 +419,24 @@
463 - return new DummyEntityResolver::DoNothingBinInputStream();
464 - }
465 -
466 -+#if XERCES_VERSION_MAJOR < 3
467 - unsigned int DummyEntityResolver::DoNothingBinInputStream::curPos() const
468 -+#else
469 -+const XMLCh* DummyEntityResolver::DoNothingBinInputStream::getContentType() const
470 -+{
471 -+ return NULL;
472 -+}
473 -+XMLFilePos DummyEntityResolver::DoNothingBinInputStream::curPos() const
474 -+#endif
475 - {
476 - return 0;
477 - }
478 -
479 -+#if XERCES_VERSION_MAJOR < 3
480 - unsigned int DummyEntityResolver::DoNothingBinInputStream::readBytes(XMLByte *const /*toFill*/, const unsigned int /*maxToRead*/)
481 -+#else
482 -+XMLSize_t DummyEntityResolver::DoNothingBinInputStream::readBytes(XMLByte *const toFill, XMLSize_t maxToRead)
483 -+#endif
484 - {
485 - return 0;
486 - }
487 ---- src/probes/independent/XmlFileContentProbe.h.old 2010-10-22 14:55:47.000000000 +0200
488 -+++ src/probes/independent/XmlFileContentProbe.h 2010-10-22 14:57:00.000000000 +0200
489 -@@ -134,8 +134,14 @@
490 - class DoNothingBinInputStream : public BinInputStream
491 - {
492 - public:
493 -+#if XERCES_VERSION_MAJOR < 3
494 - virtual unsigned int curPos() const;
495 - virtual unsigned int readBytes(XMLByte *const toFill, const unsigned int maxToRead);
496 -+#else
497 -+ virtual XMLFilePos curPos() const;
498 -+ virtual const XMLCh* getContentType() const;
499 -+ virtual XMLSize_t readBytes(XMLByte *const toFill, XMLSize_t maxToRead);
500 -+#endif
501 - };
502 - };
503 -
504 ---- src/XmlCommon.cpp.old
505 -+++ src/XmlCommon.cpp
506 -@@ -546,7 +546,11 @@ void XmlCommon::AddSchemaLocation(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *do
507 - string XmlCommon::GetNamespace(DOMElement *element) {
508 -
509 - string xmlns = "";
510 -+#if XERCES_VERSION_MAJOR < 3
511 - xmlns = XmlCommon::ToString(element->getTypeInfo()->getNamespace());
512 -+#else
513 -+ xmlns = XmlCommon::ToString(element->getSchemaTypeInfo()->getTypeNamespace());
514 -+#endif
515 - if (xmlns.compare("") == 0) {
516 - xmlns = "";
517 - }
518
519 diff --git a/app-forensics/ovaldi/files/ovaldi-5.9.1-disable-ldap-probes.patch b/app-forensics/ovaldi/files/ovaldi-5.9.1-disable-ldap-probes.patch
520 deleted file mode 100644
521 index 1f59b02b699..00000000000
522 --- a/app-forensics/ovaldi/files/ovaldi-5.9.1-disable-ldap-probes.patch
523 +++ /dev/null
524 @@ -1,32 +0,0 @@
525 ---- src/linux/ProbeFactory.cpp 2010-12-10 13:37:00.019140703 +0100
526 -+++ src/linux/ProbeFactory.cpp 2010-08-27 21:23:41.000000000 +0200
527 -@@ -61,8 +61,6 @@
528 - probe = XmlFileContentProbe::Instance();
529 - } else if(objectName.compare("textfilecontent54_object") == 0) {
530 - probe = TextFileContent54Probe::Instance();
531 -- } else if(objectName.compare("ldap_object") == 0) {
532 -- probe = LDAPProbe::Instance();
533 -
534 - // here are the objects defined in the unix schema
535 - } else if(objectName.compare("file_object") == 0) {
536 ---- src/linux/ProbeFactory.h 2010-12-10 13:36:50.315386197 +0100
537 -+++ src/linux/ProbeFactory.h 2010-08-27 21:23:41.000000000 +0200
538 -@@ -68,7 +68,6 @@
539 - #include "RunLevelProbe.h"
540 - #include "XinetdProbe.h"
541 - #include "InetdProbe.h"
542 --#include "LDAPProbe.h"
543 -
544 -
545 -
546 ---- project/linux/Makefile 2010-12-10 13:49:06.655143160 +0100
547 -+++ project/linux/Makefile 2010-12-10 13:47:37.247382096 +0100
548 -@@ -49,7 +49,7 @@
549 - LIBDIR = -L/usr/local/lib -L/usr/lib
550 -
551 - # What libraries do we need?
552 --LIBS = -lxerces-c -lxalan-c -lpcre -lpopt -lgcrypt -lldap
553 -+LIBS = -lxerces-c -lxalan-c -lpcre -lpopt -lgcrypt
554 -
555 - # Determine what package management system is being used
556 - PACKAGE_RPM = $(shell /usr/bin/env rpm --version 2>/dev/null)
557
558 diff --git a/app-forensics/ovaldi/files/ovaldi-5.9.1-strnicmp.patch b/app-forensics/ovaldi/files/ovaldi-5.9.1-strnicmp.patch
559 deleted file mode 100644
560 index fc127efd3cd..00000000000
561 --- a/app-forensics/ovaldi/files/ovaldi-5.9.1-strnicmp.patch
562 +++ /dev/null
563 @@ -1,11 +0,0 @@
564 ---- src/Main.h.old 2010-10-22 14:59:13.000000000 +0200
565 -+++ src/Main.h 2010-10-22 14:59:38.000000000 +0200
566 -@@ -38,7 +38,7 @@
567 - #endif
568 -
569 - #ifdef LINUX
570 --# define STRNICMP strnicmp
571 -+# define STRNICMP strncasecmp
572 - #elif defined SUNOS
573 - # define STRNICMP strncasecmp
574 - #elif defined DARWIN
575
576 diff --git a/app-forensics/ovaldi/files/ovaldi-5.9.1-xerces3.patch b/app-forensics/ovaldi/files/ovaldi-5.9.1-xerces3.patch
577 deleted file mode 100644
578 index a5269cbb5ea..00000000000
579 --- a/app-forensics/ovaldi/files/ovaldi-5.9.1-xerces3.patch
580 +++ /dev/null
581 @@ -1,270 +0,0 @@
582 ---- src/XmlProcessor.cpp.old 2010-10-25 15:13:58.000000000 +0200
583 -+++ src/XmlProcessor.cpp 2010-10-26 09:14:46.000000000 +0200
584 -@@ -34,8 +34,17 @@
585 - //****************************************************************************************//
586 - // DataDirResolver Class //
587 - //****************************************************************************************//
588 --
589 -+#if XERCES_VERSION_MAJOR < 3
590 - DOMInputSource* DataDirResolver::resolveEntity (const XMLCh *const /*publicId*/, const XMLCh *const systemId, const XMLCh *const /*baseURI*/) {
591 -+#else
592 -+InputSource* DataDirResolver::resolveEntity(const XMLCh* publicId, const XMLCh* systemId)
593 -+{
594 -+ return NULL;
595 -+ //return DataDirResolver::resolveEntity (publicId, systemId, NULL);
596 -+}
597 -+
598 -+DOMLSInput* DataDirResolver::resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId, const XMLCh *const baseURI) {
599 -+#endif
600 - string path = "";
601 - size_t last;
602 - string schemapath = Common::GetSchemaPath();
603 -@@ -111,21 +120,35 @@
604 - // Instantiate the DOM parser.
605 - static const XMLCh gLS[] = { chLatin_L, chLatin_S, chNull };
606 - DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(gLS);
607 -+#if XERCES_VERSION_MAJOR < 3
608 - parser = ((DOMImplementationLS*)impl)->createDOMBuilder(DOMImplementationLS::MODE_SYNCHRONOUS, 0);
609 -+#else
610 -+ parser = ((DOMImplementationLS*)impl)->createLSParser(DOMImplementationLS::MODE_SYNCHRONOUS, 0);
611 -+#endif
612 -
613 - ///////////////////////////////////////////////////////
614 - // Set fetuares on the builder
615 - ///////////////////////////////////////////////////////
616 -
617 -+#if XERCES_VERSION_MAJOR < 3
618 -+#define SetParameter(parser,n,v) parser->setFeature(n,v)
619 -+#else
620 -+#define SetParameter(parser,n,v) parser->getDomConfig()->setParameter(n,v)
621 -+#endif
622 -+ SetParameter(parser, XMLUni::fgDOMComments, false); // Discard Comment nodes in the document.
623 -+ SetParameter(parser, XMLUni::fgDOMDatatypeNormalization, true); // Let the validation process do its datatype normalization that is defined in the used schema language.
624 -+ SetParameter(parser, XMLUni::fgDOMNamespaces, true); // Perform Namespace processing
625 -+#if XERCES_VERSION_MAJOR < 3
626 -+ SetParameter(parser, XMLUni::fgDOMValidation, true); // Report all validation errors.
627 -+#else
628 -+ SetParameter(parser, XMLUni::fgDOMValidate, true); // Report all validation errors.
629 -+#endif
630 -+ SetParameter(parser, XMLUni::fgXercesSchema, true); // Enable the parser's schema support.
631 -+ SetParameter(parser, XMLUni::fgXercesSchemaFullChecking, true); // Enable full schema constraint checking, including checking which may be time-consuming or memory intensive. Currently, particle unique attribution constraint checking and particle derivation restriction checking are controlled by this option.
632 -+ SetParameter(parser, XMLUni::fgXercesValidationErrorAsFatal, true); // The parser will treat validation error as fatal and will exit
633 -+ SetParameter(parser, XMLUni::fgXercesDOMHasPSVIInfo, true); // Enable storing of PSVI information in element and attribute nodes.
634 -
635 -- parser->setFeature(XMLUni::fgDOMComments, false); // Discard Comment nodes in the document.
636 -- parser->setFeature(XMLUni::fgDOMDatatypeNormalization, true); // Let the validation process do its datatype normalization that is defined in the used schema language.
637 -- parser->setFeature(XMLUni::fgDOMNamespaces, true); // Perform Namespace processing
638 -- parser->setFeature(XMLUni::fgDOMValidation, true); // Report all validation errors.
639 -- parser->setFeature(XMLUni::fgXercesSchema, true); // Enable the parser's schema support.
640 -- parser->setFeature(XMLUni::fgXercesSchemaFullChecking, true); // Enable full schema constraint checking, including checking which may be time-consuming or memory intensive. Currently, particle unique attribution constraint checking and particle derivation restriction checking are controlled by this option.
641 -- parser->setFeature(XMLUni::fgXercesValidationErrorAsFatal, true); // The parser will treat validation error as fatal and will exit
642 -- parser->setFeature(XMLUni::fgXercesDOMHasPSVIInfo, true); // Enable storing of PSVI information in element and attribute nodes.
643 -+#undef SetParameter
644 -
645 - ///////////////////////////////////////////////////////
646 - //****************************************************************************************//
647 -@@ -133,7 +156,11 @@
648 - //****************************************************************************************//
649 - /* Look for XML schemas in local directory instead of Internet */
650 - DataDirResolver resolver;
651 -+#if XERCES_VERSION_MAJOR < 3
652 - parser->setEntityResolver (&resolver);
653 -+#else
654 -+ parser->getDomConfig()->setParameter(XMLUni::fgXercesEntityResolver, &resolver);
655 -+#endif
656 - //****************************************************************************************//
657 - // End of air-gap code //
658 - //****************************************************************************************//
659 -@@ -144,7 +171,11 @@
660 - // Create a new DOMErrorHandler
661 - // and set it to the builder
662 - XmlProcessorErrorHandler *errHandler = new XmlProcessorErrorHandler();
663 -+#if XERCES_VERSION_MAJOR < 3
664 - parser->setErrorHandler(errHandler);
665 -+#else
666 -+ parser->getDomConfig()->setParameter(XMLUni::fgDOMErrorHandler, errHandler);
667 -+#endif
668 -
669 - try {
670 - // reset document pool
671 -@@ -215,24 +246,26 @@
672 - XMLCh tempStr[100];
673 - XMLString::transcode("LS", tempStr, 99);
674 - DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(tempStr);
675 -+#if XERCES_VERSION_MAJOR < 3
676 - DOMWriter *theSerializer = ((DOMImplementationLS*)impl)->createDOMWriter();
677 -+#else
678 -+ DOMLSSerializer *theSerializer = ((DOMImplementationLS*)impl)->createLSSerializer();
679 -+#endif
680 -+
681 -+#if XERCES_VERSION_MAJOR < 3
682 -+#define SetParameter(serializer,n,v) if (serializer->canSetFeature(n,v)) serializer->setFeature(n,v)
683 -+#else
684 -+#define SetParameter(serializer,n,v) if (serializer->getDomConfig()->canSetParameter(n,v)) serializer->getDomConfig()->setParameter(n,v)
685 -+#endif
686 -
687 - // set feature if the serializer supports the feature/mode
688 -- if (theSerializer->canSetFeature(XMLUni::fgDOMWRTSplitCdataSections, true))
689 -- theSerializer->setFeature(XMLUni::fgDOMWRTSplitCdataSections, true);
690 --
691 -- if (theSerializer->canSetFeature(XMLUni::fgDOMWRTDiscardDefaultContent, true))
692 -- theSerializer->setFeature(XMLUni::fgDOMWRTDiscardDefaultContent, true);
693 --
694 -- if (theSerializer->canSetFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true))
695 -- theSerializer->setFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true);
696 --
697 -- if (theSerializer->canSetFeature(XMLUni::fgDOMWRTBOM, false))
698 -- theSerializer->setFeature(XMLUni::fgDOMWRTBOM, false);
699 --
700 -- //if (theSerializer->canSetFeature(XMLUni::fgDOMWRTDiscardDefaultContent, true))
701 -- // theSerializer->setFeature(XMLUni::fgDOMWRTBOM, true);
702 -+ SetParameter(theSerializer, XMLUni::fgDOMWRTSplitCdataSections, true);
703 -+ SetParameter(theSerializer, XMLUni::fgDOMWRTDiscardDefaultContent, true);
704 -+ SetParameter(theSerializer, XMLUni::fgDOMWRTFormatPrettyPrint, true);
705 -+ SetParameter(theSerializer, XMLUni::fgDOMWRTBOM, false);
706 -+ //SetParameter(theSerializer, XMLUni::fgDOMWRTBOM, true);
707 -
708 -+#undef SetParameter
709 - //
710 - // Plug in a format target to receive the resultant
711 - // XML stream from the serializer.
712 -@@ -249,7 +282,13 @@
713 - //
714 - // do the serialization through DOMWriter::writeNode();
715 - //
716 -+#if XERCES_VERSION_MAJOR < 3
717 - theSerializer->writeNode(myFormTarget, *doc);
718 -+#else
719 -+ DOMLSOutput *output = ((DOMImplementationLS*)impl)->createLSOutput();
720 -+ output->setByteStream(myFormTarget);
721 -+ theSerializer->write(doc, output);
722 -+#endif
723 -
724 - delete theSerializer;
725 - delete myFormTarget;
726 ---- src/XmlProcessor.h.old 2010-10-22 12:06:05.000000000 +0200
727 -+++ src/XmlProcessor.h 2010-10-22 12:06:20.000000000 +0200
728 -@@ -40,7 +40,7 @@
729 -
730 - // required xerces includes
731 - #include <xercesc/dom/DOMImplementationRegistry.hpp>
732 --#include <xercesc/dom/DOMBuilder.hpp>
733 -+//#include <xercesc/dom/DOMBuilder.hpp>
734 - #include <xercesc/dom/DOMException.hpp>
735 - #include <xercesc/dom/DOMErrorHandler.hpp>
736 - #include <xercesc/dom/DOMError.hpp>
737 ---- src/XmlProcessor.h.old 2010-10-22 14:40:45.000000000 +0200
738 -+++ src/XmlProcessor.h 2010-10-22 14:42:00.000000000 +0200
739 -@@ -50,18 +50,23 @@
740 - // for dom Writer
741 - #include <xercesc/dom/DOMImplementation.hpp>
742 - #include <xercesc/dom/DOMImplementationLS.hpp>
743 --#include <xercesc/dom/DOMWriter.hpp>
744 -+//#include <xercesc/dom/DOMWriter.hpp>
745 - #include <xercesc/framework/StdOutFormatTarget.hpp>
746 - #include <xercesc/framework/LocalFileFormatTarget.hpp>
747 - #include <xercesc/parsers/XercesDOMParser.hpp>
748 - #include <xercesc/util/XMLUni.hpp>
749 -
750 - // for entity resolver
751 --#include <xercesc/dom/DOMEntityResolver.hpp>
752 --#include <xercesc/dom/DOMInputSource.hpp>
753 -+//#include <xercesc/dom/DOMEntityResolver.hpp>
754 -+//#include <xercesc/dom/DOMInputSource.hpp>
755 - #include <xercesc/framework/LocalFileInputSource.hpp>
756 - #include <xercesc/framework/Wrapper4InputSource.hpp>
757 -
758 -+#include <xercesc/dom/DOMImplementationRegistry.hpp>
759 -+#include <xercesc/sax/EntityResolver.hpp>
760 -+#include <xercesc/sax/InputSource.hpp>
761 -+#include <xercesc/sax2/SAX2XMLReader.hpp>
762 -+
763 -
764 - XERCES_CPP_NAMESPACE_USE
765 -
766 ---- src/XmlProcessor.h.old 2010-10-22 14:43:06.000000000 +0200
767 -+++ src/XmlProcessor.h 2010-10-22 14:44:16.000000000 +0200
768 -@@ -75,12 +75,14 @@
769 - This class extends the default DOMEntityResolver and implments the resolve entity method
770 - to support
771 - */
772 --class DataDirResolver : public DOMEntityResolver {
773 -+class DataDirResolver : public EntityResolver {
774 - public:
775 - /**
776 - *
777 - */
778 -- DOMInputSource *resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId, const XMLCh *const baseURI);
779 -+// DOMInputSource *resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId, const XMLCh *const baseURI);
780 -+ InputSource *resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId);
781 -+ DOMLSInput *resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId, const XMLCh *const baseURI);
782 - };
783 -
784 - /**
785 -@@ -120,7 +122,7 @@
786 -
787 - static XmlProcessor* instance;
788 -
789 -- DOMBuilder *parser;
790 -+ DOMLSParser *parser;
791 - };
792 -
793 - /**
794 ---- src/probes/independent/XmlFileContentProbe.cpp.old 2010-10-22 14:49:22.000000000 +0200
795 -+++ src/probes/independent/XmlFileContentProbe.cpp 2010-10-22 14:51:39.000000000 +0200
796 -@@ -419,12 +419,24 @@
797 - return new DummyEntityResolver::DoNothingBinInputStream();
798 - }
799 -
800 -+#if XERCES_VERSION_MAJOR < 3
801 - unsigned int DummyEntityResolver::DoNothingBinInputStream::curPos() const
802 -+#else
803 -+const XMLCh* DummyEntityResolver::DoNothingBinInputStream::getContentType() const
804 -+{
805 -+ return NULL;
806 -+}
807 -+XMLFilePos DummyEntityResolver::DoNothingBinInputStream::curPos() const
808 -+#endif
809 - {
810 - return 0;
811 - }
812 -
813 -+#if XERCES_VERSION_MAJOR < 3
814 - unsigned int DummyEntityResolver::DoNothingBinInputStream::readBytes(XMLByte *const /*toFill*/, const unsigned int /*maxToRead*/)
815 -+#else
816 -+XMLSize_t DummyEntityResolver::DoNothingBinInputStream::readBytes(XMLByte *const toFill, XMLSize_t maxToRead)
817 -+#endif
818 - {
819 - return 0;
820 - }
821 ---- src/probes/independent/XmlFileContentProbe.h.old 2010-10-22 14:55:47.000000000 +0200
822 -+++ src/probes/independent/XmlFileContentProbe.h 2010-10-22 14:57:00.000000000 +0200
823 -@@ -134,8 +134,14 @@
824 - class DoNothingBinInputStream : public BinInputStream
825 - {
826 - public:
827 -+#if XERCES_VERSION_MAJOR < 3
828 - virtual unsigned int curPos() const;
829 - virtual unsigned int readBytes(XMLByte *const toFill, const unsigned int maxToRead);
830 -+#else
831 -+ virtual XMLFilePos curPos() const;
832 -+ virtual const XMLCh* getContentType() const;
833 -+ virtual XMLSize_t readBytes(XMLByte *const toFill, XMLSize_t maxToRead);
834 -+#endif
835 - };
836 - };
837 -
838 ---- src/XmlCommon.cpp.old
839 -+++ src/XmlCommon.cpp
840 -@@ -546,7 +546,11 @@ void XmlCommon::AddSchemaLocation(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *do
841 - string XmlCommon::GetNamespace(DOMElement *element) {
842 -
843 - string xmlns = "";
844 -+#if XERCES_VERSION_MAJOR < 3
845 - xmlns = XmlCommon::ToString(element->getTypeInfo()->getNamespace());
846 -+#else
847 -+ xmlns = XmlCommon::ToString(element->getSchemaTypeInfo()->getTypeNamespace());
848 -+#endif
849 - if (xmlns.compare("") == 0) {
850 - xmlns = "";
851 - }