forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-forensics/ovaldi: Port to EAPI 7
* GCC 11 fixes * Respect LDFLAGS Closes: https://bugs.gentoo.org/722198 Closes: https://bugs.gentoo.org/786660 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: David Seifert <[email protected]>
- Loading branch information
1 parent
28d806d
commit 99ffb10
Showing
4 changed files
with
104 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
app-forensics/ovaldi/files/ovaldi-5.10.1.7-disable_RetrieveSelinuxDomainLabel.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- a/src/AbsProbe.cpp | ||
+++ b/src/AbsProbe.cpp | ||
@@ -52,7 +52,7 @@ | ||
// use const wherever it makes sense, to ensure const-correctness?? | ||
// Or maybe I should have implemented operator<() for items and | ||
// used the default std::less template...? | ||
- typedef set<Item*, std::less<const Item*> > ItemCache; | ||
+ typedef set<Item*, std::less<Item*> > ItemCache; | ||
ItemCache globalItemCache; | ||
} | ||
|
||
--- a/src/ErrnoException.h | ||
+++ b/src/ErrnoException.h | ||
@@ -49,10 +49,10 @@ | ||
SetErrorMessage(syscall+": "+std::strerror(errnoVal)); | ||
} | ||
|
||
- virtual ~ErrnoException() throw () { | ||
+ virtual ~ErrnoException() { | ||
} | ||
|
||
- virtual const char* what() const throw() { | ||
+ virtual const char* what() const noexcept { | ||
return errorMessage.c_str(); | ||
} | ||
}; | ||
--- a/src/OutOfMemoryException.h | ||
+++ b/src/OutOfMemoryException.h | ||
@@ -47,10 +47,10 @@ | ||
: Exception(msg, severity, cause) { | ||
} | ||
|
||
- virtual ~OutOfMemoryException() throw () { | ||
+ virtual ~OutOfMemoryException() { | ||
} | ||
|
||
- virtual const char* what() const throw() { | ||
+ virtual const char* what() const noexcept { | ||
return errorMessage.c_str(); | ||
} | ||
}; | ||
--- a/src/probes/unix/RunLevelProbe.cpp | ||
+++ b/src/probes/unix/RunLevelProbe.cpp | ||
@@ -125,7 +125,7 @@ | ||
|
||
|
||
void | ||
-RunLevelProbe::_verifyRunlevelObjectAttr( ObjectEntity * service_name, ObjectEntity * runlevel ) const throw( ProbeException ) { | ||
+RunLevelProbe::_verifyRunlevelObjectAttr( ObjectEntity * service_name, ObjectEntity * runlevel ) const { | ||
|
||
// check datatypes - only allow string | ||
if( service_name->GetDatatype() != OvalEnum::DATATYPE_STRING ){ | ||
--- a/src/probes/unix/RunLevelProbe.h | ||
+++ b/src/probes/unix/RunLevelProbe.h | ||
@@ -76,7 +76,7 @@ | ||
*/ | ||
struct ltrunlevel_item_comparator | ||
{ | ||
- bool operator() ( const runlevel_item &r1, const runlevel_item &r2 ) | ||
+ bool operator() ( const runlevel_item &r1, const runlevel_item &r2 ) const | ||
{ | ||
return r1.service_name.compare(r2.service_name) < 0; | ||
} | ||
@@ -115,7 +115,7 @@ | ||
@param runlevel the runlevel runlevel_object entity | ||
@throws ProbeException if invalid operations or datatypes are encountered | ||
*/ | ||
- void _verifyRunlevelObjectAttr( ObjectEntity * service_name, ObjectEntity * runlevel ) const throw( ProbeException ); | ||
+ void _verifyRunlevelObjectAttr( ObjectEntity * service_name, ObjectEntity * runlevel ) const; | ||
|
||
/** | ||
Checks to see if the given filename is either "." or ".." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters